Csound Csound-dev Csound-tekno Search About

[Csnd] Gen 23

Date2009-08-27 09:28
Fromfrancibal
Subject[Csnd] Gen 23
Dear Mr. List,
i have some trouble with Gen 23, that reads value from an external txt file.
I'm not able to read all values, and i don't understand what is wrong.
Also, it seems that gen 23 do NOT read values separated by spaces.

I'm using some plain txt file (I believe).

Here all my files http://www.nabble.com/file/p25167255/gen23-28.zip
gen23-28.zip 

Date2009-08-27 10:17
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: Gen 23
As the table is 8 long one cannot really expect 16 values to be stored! 
Looking at the other oddities.  It is supposed to read numbers separated
by any non-number component (0-9, + - e E .)
==John


>
> Dear Mr. List,
> i have some trouble with Gen 23, that reads value from an external txt
> file.
> I'm not able to read all values, and i don't understand what is wrong.
> Also, it seems that gen 23 do NOT read values separated by spaces.
>
> I'm using some plain txt file (I believe).
>
> Here all my files http://www.nabble.com/file/p25167255/gen23-28.zip
> gen23-28.zip
> --
> View this message in context:
> http://www.nabble.com/Gen-23-tp25167255p25167255.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
>




Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-08-27 10:24
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: Gen 23
Reading the code it does not like blank lines much; nor unterminated
lines.  I will look at it again

>
> Dear Mr. List,
> i have some trouble with Gen 23, that reads value from an external txt
> file.
> I'm not able to read all values, and i don't understand what is wrong.
> Also, it seems that gen 23 do NOT read values separated by spaces.
>
> I'm using some plain txt file (I believe).
>
> Here all my files http://www.nabble.com/file/p25167255/gen23-28.zip
> gen23-28.zip
> --
> View this message in context:
> http://www.nabble.com/Gen-23-tp25167255p25167255.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
>




Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-08-27 11:07
Fromfrancibal
Subject[Csnd] Re: Gen 23
Yes, Mr. Ffitch,
i'm wrong csd (i'm experimenting). I had f table 16 points long, also.
In my precedent try i had a txt with one value for line with end line
character, and it seems working correct, but, at this point, i'm not so
sure.
I would like read a graphic of 2048 point, or so, like a wavetable, and it
seems to me that i can only use this way via gen 23 or 28. I'm right or i
can use others ways ?

Many thanks,
ciao,
fran.

Date2009-08-27 11:34
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: Re: Gen 23
I have rewritten GEN23 and not I think it does what I expect.  I can add
to CVBS but there are the problems of the PMAX rewrite that I am waiting
comments on that
==John ff



>
> Yes, Mr. Ffitch,
> i'm wrong csd (i'm experimenting). I had f table 16 points long, also.
> In my precedent try i had a txt with one value for line with end line
> character, and it seems working correct, but, at this point, i'm not so
> sure.
> I would like read a graphic of 2048 point, or so, like a wavetable, and it
> seems to me that i can only use this way via gen 23 or 28. I'm right or i
> can use others ways ?
>
> Many thanks,
> ciao,
> fran.
>
> --
> View this message in context:
> http://www.nabble.com/Gen-23-tp25167255p25167499.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
>




Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-08-27 13:05
Fromjoachim heintz
Subject[Csnd] Re: Re: Gen 23
Thanks for bringing this out, Francibal. I think your code was in  
general totally correct, and obviously there is a problem with gen23.  
Surely John will find a way. It's very important to be able to  
transfer data from a file to a function table.
As to your question, I see two other possibilities:
1) You can use ftload. But obviously it needs a very special syntax.  
You should try saving the content of a ftable with ftsave (as text),  
and then you can see what it produces. This is what ftload understands.
2) If you can save your graphic data with a soundfile header, you can  
also use gen01.
Ciao -

	joachim


Am 27.08.2009 um 12:07 schrieb francibal:

>
> Yes, Mr. Ffitch,
> i'm wrong csd (i'm experimenting). I had f table 16 points long, also.
> In my precedent try i had a txt with one value for line with end line
> character, and it seems working correct, but, at this point, i'm not  
> so
> sure.
> I would like read a graphic of 2048 point, or so, like a wavetable,  
> and it
> seems to me that i can only use this way via gen 23 or 28. I'm right  
> or i
> can use others ways ?
>
> Many thanks,
> ciao,
> fran.
>
> -- 
> View this message in context: http://www.nabble.com/Gen-23-tp25167255p25167499.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-08-27 13:14
FromVictor Lazzarini
Subject[Csnd] Re: Re: Re: Gen 23
2) Is not quite correct: you can actually read any sequence of samples into a
table as raw data with gen01, no strict need for a header. You will 
need to tell csound what kind
of data it is, just that. I am also thinking (but gave no tested) that if
you give it a negative size (eg. -1000) you will also get around having
to fit to a power of two size.

At 13:05 27/08/2009, you wrote:
>Thanks for bringing this out, Francibal. I think your code was in
>general totally correct, and obviously there is a problem with gen23.
>Surely John will find a way. It's very important to be able to
>transfer data from a file to a function table.
>As to your question, I see two other possibilities:
>1) You can use ftload. But obviously it needs a very special syntax.
>You should try saving the content of a ftable with ftsave (as text),
>and then you can see what it produces. This is what ftload understands.
>2) If you can save your graphic data with a soundfile header, you can
>also use gen01.
>Ciao -
>
>         joachim
>
>
>Am 27.08.2009 um 12:07 schrieb francibal:
>
>>
>>Yes, Mr. Ffitch,
>>i'm wrong csd (i'm experimenting). I had f table 16 points long, also.
>>In my precedent try i had a txt with one value for line with end line
>>character, and it seems working correct, but, at this point, i'm not
>>so
>>sure.
>>I would like read a graphic of 2048 point, or so, like a wavetable,
>>and it
>>seems to me that i can only use this way via gen 23 or 28. I'm right
>>or i
>>can use others ways ?
>>
>>Many thanks,
>>ciao,
>>fran.
>>
>>--
>>View this message in context: 
>>http://www.nabble.com/Gen-23-tp25167255p25167499.html
>>Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>>
>>Send bugs reports to this list.
>>To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>"unsubscribe csound"
>
>
>
>Send bugs reports to this list.
>To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>"unsubscribe csound"

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-08-27 13:27
Fromjoachim heintz
Subject[Csnd] Re: Re: Re: Re: Gen 23
Even better ...
But how can you tell Csound what kind of data it is? In the manual at  
least I can't see how to tell gen01 to use an ascii file.
As to the table size: could this not simply done by setting the size  
to 0?
Best -
	joachim


Am 27.08.2009 um 14:14 schrieb Victor Lazzarini:

> 2) Is not quite correct: you can actually read any sequence of  
> samples into a
> table as raw data with gen01, no strict need for a header. You will  
> need to tell csound what kind
> of data it is, just that. I am also thinking (but gave no tested)  
> that if
> you give it a negative size (eg. -1000) you will also get around  
> having
> to fit to a power of two size.
>
> At 13:05 27/08/2009, you wrote:
>> Thanks for bringing this out, Francibal. I think your code was in
>> general totally correct, and obviously there is a problem with gen23.
>> Surely John will find a way. It's very important to be able to
>> transfer data from a file to a function table.
>> As to your question, I see two other possibilities:
>> 1) You can use ftload. But obviously it needs a very special syntax.
>> You should try saving the content of a ftable with ftsave (as text),
>> and then you can see what it produces. This is what ftload  
>> understands.
>> 2) If you can save your graphic data with a soundfile header, you can
>> also use gen01.
>> Ciao -
>>
>>        joachim
>>
>>
>> Am 27.08.2009 um 12:07 schrieb francibal:
>>
>>>
>>> Yes, Mr. Ffitch,
>>> i'm wrong csd (i'm experimenting). I had f table 16 points long,  
>>> also.
>>> In my precedent try i had a txt with one value for line with end  
>>> line
>>> character, and it seems working correct, but, at this point, i'm not
>>> so
>>> sure.
>>> I would like read a graphic of 2048 point, or so, like a wavetable,
>>> and it
>>> seems to me that i can only use this way via gen 23 or 28. I'm right
>>> or i
>>> can use others ways ?
>>>
>>> Many thanks,
>>> ciao,
>>> fran.
>>>
>>> --
>>> View this message in context: http://www.nabble.com/Gen-23-tp25167255p25167499.html
>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>> "unsubscribe csound"
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>
> Victor Lazzarini
> Music Technology Laboratory
> Music Department
> National University of Ireland, Maynooth
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-08-27 14:14
FromVictor Lazzarini
Subject[Csnd] Re: Re: Re: Re: Re: Gen 23
No it has to be a binary file, but the encoding can be integer-based
or floats.

Table size of 0 only works with AIFF and WAV I think.

At 13:27 27/08/2009, you wrote:
>Even better ...
>But how can you tell Csound what kind of data it is? In the manual at
>least I can't see how to tell gen01 to use an ascii file.
>As to the table size: could this not simply done by setting the size
>to 0?
>Best -
>         joachim
>
>
>Am 27.08.2009 um 14:14 schrieb Victor Lazzarini:
>
>>2) Is not quite correct: you can actually read any sequence of
>>samples into a
>>table as raw data with gen01, no strict need for a header. You will
>>need to tell csound what kind
>>of data it is, just that. I am also thinking (but gave no tested)
>>that if
>>you give it a negative size (eg. -1000) you will also get around
>>having
>>to fit to a power of two size.
>>
>>At 13:05 27/08/2009, you wrote:
>>>Thanks for bringing this out, Francibal. I think your code was in
>>>general totally correct, and obviously there is a problem with gen23.
>>>Surely John will find a way. It's very important to be able to
>>>transfer data from a file to a function table.
>>>As to your question, I see two other possibilities:
>>>1) You can use ftload. But obviously it needs a very special syntax.
>>>You should try saving the content of a ftable with ftsave (as text),
>>>and then you can see what it produces. This is what ftload
>>>understands.
>>>2) If you can save your graphic data with a soundfile header, you can
>>>also use gen01.
>>>Ciao -
>>>
>>>        joachim
>>>
>>>
>>>Am 27.08.2009 um 12:07 schrieb francibal:
>>>
>>>>
>>>>Yes, Mr. Ffitch,
>>>>i'm wrong csd (i'm experimenting). I had f table 16 points long,
>>>>also.
>>>>In my precedent try i had a txt with one value for line with end
>>>>line
>>>>character, and it seems working correct, but, at this point, i'm not
>>>>so
>>>>sure.
>>>>I would like read a graphic of 2048 point, or so, like a wavetable,
>>>>and it
>>>>seems to me that i can only use this way via gen 23 or 28. I'm right
>>>>or i
>>>>can use others ways ?
>>>>
>>>>Many thanks,
>>>>ciao,
>>>>fran.
>>>>
>>>>--
>>>>View this message in context: 
>>>>http://www.nabble.com/Gen-23-tp25167255p25167499.html
>>>>Sent from the Csound - General mailing list archive at Nabble.com.
>>>>
>>>>
>>>>
>>>>Send bugs reports to this list.
>>>>To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>"unsubscribe csound"
>>>
>>>
>>>
>>>Send bugs reports to this list.
>>>To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>"unsubscribe csound"
>>
>>Victor Lazzarini
>>Music Technology Laboratory
>>Music Department
>>National University of Ireland, Maynooth
>>
>>
>>Send bugs reports to this list.
>>To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>"unsubscribe csound"
>
>
>
>Send bugs reports to this list.
>To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>"unsubscribe csound"

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"