ephemeral-garden/sc3-test.sc

44 lines
677 B
Python
Raw Normal View History

2018-04-17 13:53:57 +00:00
///// // / / / / / / /
//
// supercollider tests
//
////// / /
2018-04-26 17:40:40 +00:00
2018-04-17 13:53:57 +00:00
"e p h e m e r a l g a r d e n".postln;
2018-04-26 17:40:40 +00:00
2018-04-17 13:53:57 +00:00
// sc server
s = Server.local;
//s.options.memSize = 1024 * 1024;
//s.options.maxNodes = 1024 * 1024;
//s.options.numBuffers = 1024 * 1024 * 1024;
//s.latency = 0.05;
s.options.sampleRate = 44100;
2018-04-26 17:40:40 +00:00
s.boot;
"...".post;
s.waitForBoot {
Routine {
~snd = "/home/foam/snd/31-dawn-chorus-11m36--01.wav";
"...".post;
2018-04-17 13:53:57 +00:00
2018-04-26 17:40:40 +00:00
b = Buffer.read(s,~snd);
2018-04-17 13:53:57 +00:00
2018-04-26 17:40:40 +00:00
1.wait;
"...>>".post;
a = { (PlayBuf.ar(1, b, rate: 1, loop: 1) * 0.1).dup }.play;
}.play;
};
2018-04-17 13:53:57 +00:00
2018-04-26 17:40:40 +00:00
"<<...".post;
2018-04-17 13:53:57 +00:00
//a.free;
2018-04-26 17:40:40 +00:00
//b.free;