This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pmonophonic : Pattern { | |
embedInStream { | |
|inEvent| | |
var id, offEvent; | |
var event = inEvent.copy; | |
var cleanup = EventStreamCleanup(); | |
cleanup.addFunction(event, { | |
offEvent.play; | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s.boot | |
// BEGIN code to convert AKWF wavetables from 600 samples in length to 1024 | |
// because VOsc3 needs a buffer which is a power of two to work properly | |
// this pipes in stdout from ls | |
( | |
var p, l; | |
p = Pipe.new("find ~/Projects/sonic-pi/etc/wavetables/AKWF/AKWF_0001 -iname *.wav", "r"); // list directory contents in long format | |
l = p.getLine; // get the first line |