Routine & TempoClock - Week 6 Fall 2024 MUS 499C - Creative Audio Coding with SuperCollider
Автор: Eli Fieldsteel
Загружено: 2025-01-13
Просмотров: 654
Introduces simple sequencing and timing techniques using Routine and TempoClock.
Homework Assignments: https://uofi.box.com/s/f1s2qhazrutsj2...
A clarification on Routines: To my knowledge, Routines cannot be paused and resumed. They can be stopped, but once stopped they cannot be resumed unless they are first reset (or created anew). I was probably confusing Routine with Task, a similar class which has this pause/resume capability. In the past I've painted these two classes as being nearly interchangeable, but I had been overlooking this distinction.
(
SynthDef(\tri, {
var sig, env;
env = Env.perc(\atk.ir(0.001), \rel.ir(0.5)).ar(2);
sig = LFTri.ar(\freq.ir(400) * ({Rand(-0.12, 0.12).midiratio} ! 5));
sig = Splay.ar(sig);
sig = LPF.ar(sig, \lpf.ir(3000).clip(20, 20000));
sig = sig * env * \amp.ir(0.1);
Out.ar(\out.ir(0), sig);
}).add;
)
(
t = Task{
loop{
Synth(\tri, [freq: 60.midicps]);
0.25.wait;
Synth(\tri, [freq: 64.midicps]);
0.25.wait;
Synth(\tri, [freq: [67, 69].choose.midicps]);
0.25.wait;
}
}.play;
)
t.stop;
t.resume;
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: