[sc-users] playing wavetable problems
Andre Castro
andre_castro83 at hotmail.com
Fri Oct 5 12:29:49 PDT 2007
Hello again.
Still with problems with wavetables. Now in playing them.
Can anyone please see what am I doing wrong?
So:
//load table of values
g = TabFileReader.readInterpret("mysheet.txt", true).postcs;
h = g.flop; //flot columns
(a=Signal.new(512);
a.addAll(h[0]);
a.normalize;
a.plot) //create signal from collum of values
//the values are more then 512, but i seems only to introduce into
signal the first 152 values
b=a.copy
b.asWavetable;
b //STILL REPLIES AS SIGNAL
//So when I try to play it
{Osc.ar(a, 200) }.play
//IT REPLIES 'Osc arg: 'bufnum' has bad input: Signal"
//Also if I try to write
a.asWavetable.write("sounds/clickTemp.wav"); // WORKS FINE, SC replies
Wavetable[0.9895,...values...]
//but if i go to open
c = Buffer.read(s, "sounds/clickTemp.wav");
//IT REPLIES:
// Buffer(0, nil, nil, nil, sounds/clickTemp.wav)
// File 'sounds/clickTemp.wav' could not be opened.
And also I can't make a preview of the sound file. Can only open it with
Audacity's "Import Raw Data".
Can anyone help in this?
Thanks loads
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
More information about the sc-users
mailing list