yes, actually i tryed to use WvIn to do the job. I didnt figure out
how to do it, just got some errors, like unknown parameter or file
type errors. i ended up assuming WvIn is not able to open an arbitrary
file as raw audio.
2009/10/3 Andrew C. Smith
I think I understand what you're trying to do here. Have you tried WavIn at all, though? It's more general than SndBuf.
Mike Clemow did something like this with SPEAR files, and he had to write a Python script to do the string parsing and everything. Just because of ChucK's limited string functionality, this may be the best way to go. If you get it synchronized with OSC it would make it even smoother.
Andrew
On Sat, Oct 3, 2009 at 7:40 PM, Renato Fabbri
wrote: i beg for a clue. here is the thing i've playing with, its a "python macro interpreter -- rythmic chuck sample player":
svn co http://svn.assembla.com/svn/audioexperiments/ABeatDetector
(browser: http://trac.assembla.com/audioexperiments/browser/ABeatDetector )
And now i've been wishing to play some raw audio files (actually, i want to read system files as raw audio).
I will write a python scritpt to open raw and write as .wav files for chuck to open for i am not able to open this files as audio directly in chuck.
any idea? ciao, rf
2009/10/2 Renato Fabbri
Hi List,
I didnt figure out how to read/play raw audio files in chuck, and didn't find any doc either.
say i want to read a mono "rawsound.raw" as 16bit samples and 8kHz sample rate (say playback sample rate is determined beforehand).
Is there a way to read and play such a raw audioo data or should i need to convert to wav or similar?
best, rf
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users