diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/LiSaX.ck | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/LiSaX.ck b/lib/LiSaX.ck new file mode 100644 index 0000000..7881c78 --- /dev/null +++ b/lib/LiSaX.ck @@ -0,0 +1,16 @@ +/* + * Version of LiSa that supports reading in files (like a SndBuf) + */ +public class LiSaX extends LiSa { + fun void + read(string file) + { + SndBuf buf; + + file => buf.read; + buf.samples()::samp => duration; + + for (0 => int i; i < buf.samples(); i++) + valueAt(i => buf.valueAt, i::samp); + } +} |