[sc-users] wavetables fill
Andre Castro
andre_castro83 at hotmail.com
Wed Oct 3 19:41:50 PDT 2007
Thank you Josh,
Yes, I have been saving the excel sheets as Tab delimited(txt) files and
able to open them in SC both with TabFileReader and FileReader, but I'm
struggling to make the values of a column to go into the wavetable...
This how I have been trying to do it:
f = FileReader.read("mysheet.txt",true,true).postcs; //sheet in the end of
email
//only use one of collumns' [7] values as wavetable sample values
{512.do{arg i;f[i].at([7]).postln;}}.fork //test
s=Signal.newClear(512).fill({512.do{arg i;f[i].at([7]).postln;}}.fork);
s.plot; //Message 'plot' not understood.
s=Signal({512.do{arg i;f[i].at([7]).postln;}}.fork);
s.asWavetable.plot //Message 'asWavetable' not understood
If anyway could tell me what is the best way to do it would be great.
[ "2005-05-01_00:00:", "101007.020", "14.015", "1.867", "4.761", "18.410",
"100.000", "0.000" ], [ "2005-05-01_01:00:", "100784.640", "13.137",
"-0.011", "2.986", "10.750", "76.877", "0.000" ], [ "2005-05-01_02:00:",
"100869.690", "12.684", "-0.903", "2.975", "11.194", "70.007", "0.000" ], [
"2005-05-01_03:00:", "100824.520", "12.429", "-1.475", "3.310", "13.045",
"63.510", "0.000" ], [ "2005-05-01_04:00:", "100782.410", "12.070",
"-1.356", "3.436", "13.296", "34.124", "0.000" ], [ "2005-05-01_05:00:",
"100828.410", "12.264", "-1.229", "3.964", "14.941", "38.206", "0.000" ],
>
>Message: 3
>Date: Wed, 3 Oct 2007 10:32:37 -0700
>From: Joshua Parmenter <josh at realizedsound.net>
>Subject: Re: [sc-users] wavetables fill
>To: SuperCollider users mailing list <sc-users at create.ucsb.edu>
>Message-ID: <01DC3DC2-839D-498B-81BE-45BEB45B5F0D at realizedsound.net>
>Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes;
> format=flowed
>
>can you save the excel file as Tab, comma or semi-colon delimited
>file? If so... you can use TabFileReader, CSVFileReader or
>SemiColonFileReader to get the data into SC.
>
>Best,
>
>Josh
>
>On Oct 3, 2007, at 8:08 AM, Andre Castro wrote:
>
> > Hello all
> >
> > I'm trying to use a bunch of values stored in excel columns to fill
> > wavetables. Each table item to a sample.
> > Can anyone help me in how to do this? Been looking at Signal.fill
> > but don't know how to "bring" the values from into Signal.fill (as
> > an array).
> >
> > Thank you very much
> >
> > _________________________________________________________________
> > Express yourself instantly with MSN Messenger! Download today it's
> > FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> >
> > _______________________________________________
> > sc-users mailing list
> > sc-users at create.ucsb.edu
> > http://www.create.ucsb.edu/mailman/listinfo/sc-users
>
>******************************************
>/* Joshua D. Parmenter
>http://www.realizedsound.net/josh/
>
>Every composer at all times and in all cases gives his own
>interpretation of how modern society is structured: whether actively
>or passively, consciously or unconsciously, he makes choices in this
>regard. He may be conservative or he may subject himself to continual
>renewal; or he may strive for a revolutionary, historical or social
>palingenesis." - Luigi Nono
>*/
>
>
>
>------------------------------
>
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
More information about the sc-users
mailing list