Playing C-major scale with a task
This commit is contained in:
parent
3ec940da72
commit
5d507f94a7
@ -859,3 +859,29 @@
|
||||
r.stop;
|
||||
)
|
||||
// }-------------------------------------------------------------------------
|
||||
|
||||
|
||||
// {-------------------------------------------------------------------------
|
||||
(
|
||||
t = Task({
|
||||
loop {
|
||||
[60, 62, 64, 65, 67, 69, 71, 72].do({
|
||||
|midi|
|
||||
Synth(
|
||||
\singrain,
|
||||
[
|
||||
freq: midi.midicps,
|
||||
amp: 0.2,
|
||||
sustain: 0.2
|
||||
]
|
||||
);
|
||||
0.125.wait;
|
||||
});
|
||||
}
|
||||
}).play;
|
||||
)
|
||||
|
||||
(
|
||||
t.stop;
|
||||
)
|
||||
// }-------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user