Re: [LAU] Library for simple audio programming

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Kjetil Matheussen <k.s.matheussen@...>
Cc: <linux-audio-user@...>
Date: Thursday, January 17, 2013 - 3:10 am

On 01/16/2013 07:28 PM, Kjetil Matheussen wrote:

I would debate that SND is "easier." Mine appeared to be more verbose
because I commented heavily to explain everything. Without comments:

f = SoundFile.openRead(Platform.resourceDir +/+ "sounds/a11wlk01.wav");; // 0.1 seconds in
f.readData(d = FloatArray.newClear(50));
o = File("~/samples.txt", "w"); { |sample| o << sample << };

... SC actually clocks in with one less line.

Not many people use SC for commandline scripting, but it is possible

sclang sf-to-text.scd ~/share/SC/sounds/drums/kix/aphexbd.aif
~/tmp/testout.txt 100 50


Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [LAU] Library for simple audio programming, Kjetil Matheussen, (Wed Jan 16, 11:28 am)
Re: [LAU] Library for simple audio programming, James Harkins, (Thu Jan 17, 3:10 am)