Csound Csound-dev Csound-tekno Search About

[Csnd] oscil1

Date2011-01-10 19:36
Fromfrancesco
Subject[Csnd] oscil1
Hi all,
i have a table (gen 2) of 4096 size.
I was try to read the value with oscil1 that read the entire table in idur
seconds.
Then, for example, if i want 10 values/sec i need idur near 409 (no?).
But any value of idur major of 190 it block the output value at the first.

Maybe i have not understand how oscil1 work?

Thanks,
ciao,
francesco.

Date2011-01-10 20:25
FromRory Walsh
Subject[Csnd] Re: oscil1
I don't really understand the second part of your question but the
first part is correct. If your table is 4096 and you want 4096 values
a second idur will be 1. If you want 1 value a second idur will be
4096. If you want 10 values a second idur will be 409.6 (4096/number
of values). I'm not sure what you mean with regards to a value major
of 190? Also I must ask, how are you filling a gen2 with 4096 points!
You must be using a script or something? For what it's worth I always
end up using a phasor and a tab when working with gen2 rather than
oscil1. I find it more intuitive.

Rory.


On 10 January 2011 19:36, francesco  wrote:
>
> Hi all,
> i have a table (gen 2) of 4096 size.
> I was try to read the value with oscil1 that read the entire table in idur
> seconds.
> Then, for example, if i want 10 values/sec i need idur near 409 (no?).
> But any value of idur major of 190 it block the output value at the first.
>
> Maybe i have not understand how oscil1 work?
>
> Thanks,
> ciao,
> francesco.
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/oscil1-tp3335319p3335319.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-01-10 20:48
Fromfrancesco
Subject[Csnd] Re: oscil1
Yes, thanks Mr. Rory,
You are right. I created the table by a script (in Lua), and using tab
opcode all
is ok.
Only i don't understand this: using oscil1 (and oscil1i), if idur is > 190 i
get only
the first table value at the output.

But like You said, there are others way to do same things.

Thank You,
ciao,
francesco.

Date2011-01-10 20:53
Fromfrancesco
Subject[Csnd] Re: oscil1
... what i mean is:
i have tryed some different value for idur, but when i set idur at any value
> of 190
i do not get the result expected, i.e only the first value is at output and
no more.

ciao,
francesco

Date2011-01-10 20:59
FromRory Walsh
Subject[Csnd] Re: Re: oscil1
I've tried to recreate your problem here but everything works fine.
I'm not using gen2 but a gen10 table with a size of 4096. Can you post
a simplified instrument that illustrates the problem?


On 10 January 2011 20:48, francesco  wrote:
>
> Yes, thanks Mr. Rory,
> You are right. I created the table by a script (in Lua), and using tab
> opcode all
> is ok.
> Only i don't understand this: using oscil1 (and oscil1i), if idur is > 190 i
> get only
> the first table value at the output.
>
> But like You said, there are others way to do same things.
>
> Thank You,
> ciao,
> francesco.
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/oscil1-tp3335319p3335424.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-01-10 21:15
Fromfrancesco
Subject[Csnd] Re: Re: oscil1
Yes, it is trivial because it only read and show values with printk2,
anyway this is my really long csd (if You really want to try!) :

http://csound.1045644.n5.nabble.com/file/n3335458/test.csd test.csd 

ciao,
francesco.

Date2011-01-10 21:28
FromRory Walsh
Subject[Csnd] Re: Re: Re: oscil1
It's to do with the value of ksmps. You'll need to give me a minute to
think about it though...

On 10 January 2011 21:15, francesco  wrote:
>
> Yes, it is trivial because it only read and show values with printk2,
> anyway this is my really long csd (if You really want to try!) :
>
> http://csound.1045644.n5.nabble.com/file/n3335458/test.csd test.csd
>
> ciao,
> francesco.
> --
> View this message in context: http://csound.1045644.n5.nabble.com/oscil1-tp3335319p3335458.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-01-10 21:29
FromRory Walsh
Subject[Csnd] Re: Re: Re: oscil1
Oh, and here it's not 190 but more like 400 which seems to be the magic number..

On 10 January 2011 21:28, Rory Walsh  wrote:
> It's to do with the value of ksmps. You'll need to give me a minute to
> think about it though...
>
> On 10 January 2011 21:15, francesco  wrote:
>>
>> Yes, it is trivial because it only read and show values with printk2,
>> anyway this is my really long csd (if You really want to try!) :
>>
>> http://csound.1045644.n5.nabble.com/file/n3335458/test.csd test.csd
>>
>> ciao,
>> francesco.
>> --
>> View this message in context: http://csound.1045644.n5.nabble.com/oscil1-tp3335319p3335458.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-01-10 21:35
Fromfrancesco
Subject[Csnd] Re: Re: Re: oscil1
yes, apologies, the exact value is 380 with sr 44100.
In my first try i used sr 88200 and the value was 190.

ciao,
francesco.

Date2011-01-10 21:39
FromRory Walsh
Subject[Csnd] Re: Re: Re: oscil1
Do you get strange messages about your table when you run it?? I do
here but can't copy and paste them from winxound...

On 10 January 2011 21:29, Rory Walsh  wrote:
> Oh, and here it's not 190 but more like 400 which seems to be the magic number..
>
> On 10 January 2011 21:28, Rory Walsh  wrote:
>> It's to do with the value of ksmps. You'll need to give me a minute to
>> think about it though...
>>
>> On 10 January 2011 21:15, francesco  wrote:
>>>
>>> Yes, it is trivial because it only read and show values with printk2,
>>> anyway this is my really long csd (if You really want to try!) :
>>>
>>> http://csound.1045644.n5.nabble.com/file/n3335458/test.csd test.csd
>>>
>>> ciao,
>>> francesco.
>>> --
>>> View this message in context: http://csound.1045644.n5.nabble.com/oscil1-tp3335319p3335458.html
>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>>
>>>
>>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-01-10 21:43
FromRory Walsh
Subject[Csnd] Re: Re: Re: oscil1
Hmm, I don't think it's to do with ksmps, it's something else I think..

On 10 January 2011 21:39, Rory Walsh  wrote:
> Do you get strange messages about your table when you run it?? I do
> here but can't copy and paste them from winxound...
>
> On 10 January 2011 21:29, Rory Walsh  wrote:
>> Oh, and here it's not 190 but more like 400 which seems to be the magic number..
>>
>> On 10 January 2011 21:28, Rory Walsh  wrote:
>>> It's to do with the value of ksmps. You'll need to give me a minute to
>>> think about it though...
>>>
>>> On 10 January 2011 21:15, francesco  wrote:
>>>>
>>>> Yes, it is trivial because it only read and show values with printk2,
>>>> anyway this is my really long csd (if You really want to try!) :
>>>>
>>>> http://csound.1045644.n5.nabble.com/file/n3335458/test.csd test.csd
>>>>
>>>> ciao,
>>>> francesco.
>>>> --
>>>> View this message in context: http://csound.1045644.n5.nabble.com/oscil1-tp3335319p3335458.html
>>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>>>
>>>>
>>>
>>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-01-10 21:49
Fromfrancesco
Subject[Csnd] Re: Re: Re: oscil1
only this (if this are what You means):

Extra p-fields (1 0 4096 -2)
and more extra p-fields [1997](1996)31952
ftable 1:
WARNING: using extended arguments

and, if i remember correct, are from the change to table by Mr. Ffitch
to allow more arguments than the limit fixed in the past.

No other messages (in scite and in Winxound, and i'm oon ubuntu)

ciao,
francesco

Date2011-01-10 21:55
FromRory Walsh
Subject[Csnd] Re: Re: Re: Re: oscil1
I get a more sinister message, something along the lines of:

Extra p-fields (1 0 4096 2)
and more extra p-fields [1997](1996)15976
T1/2(4101): x=0x9630520 memcpy from 0xbfc9396c to 0x95d36e4 length 7992
ftable 1:
WARNING: using extended arguments

I'm on Linux using 5.12



On 10 January 2011 21:49, francesco  wrote:
>
> only this (if this are what You means):
>
> Extra p-fields (1 0 4096 -2)
> and more extra p-fields [1997](1996)31952
> ftable 1:
> WARNING: using extended arguments
>
> and, if i remember correct, are from the change to table by Mr. Ffitch
> to allow more arguments than the limit fixed in the past.
>
> No other messages (in scite and in Winxound, and i'm oon ubuntu)
>
> ciao,
> francesco
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/oscil1-tp3335319p3335523.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-01-10 22:02
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: Re: Re: Re: Re: oscil1
> I get a more sinister message, something along the lines of:
>
> Extra p-fields (1 0 4096 2)
> and more extra p-fields [1997](1996)15976
> T1/2(4101): x=0x9630520 memcpy from 0xbfc9396c to 0x95d36e4 length 7992
> ftable 1:
> WARNING: using extended arguments
>
> I'm on Linux using 5.12
>

All reasonably harmless




Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-01-10 22:09
FromRory Walsh
Subject[Csnd] Re: Re: Re: Re: Re: Re: oscil1
Perhaps you can shed some light on the Francesco's problem?

On 10 January 2011 22:02,   wrote:
>> I get a more sinister message, something along the lines of:
>>
>> Extra p-fields (1 0 4096 2)
>> and more extra p-fields [1997](1996)15976
>> T1/2(4101): x=0x9630520 memcpy from 0xbfc9396c to 0x95d36e4 length 7992
>> ftable 1:
>> WARNING: using extended arguments
>>
>> I'm on Linux using 5.12
>>
>
> All reasonably harmless
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-01-10 22:53
Fromfrancesco
Subject[Csnd] Re: Re: Re: Re: Re: Re: oscil1
Ok! If i use ksmps > 10 in the example all go right.
Confused.

Thank You,
ciao,
francesco.

Date2011-01-10 23:17
FromRory Walsh
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: oscil1
It'll become very obvious once someone explains it!


On 10 January 2011 22:53, francesco  wrote:
>
> Ok! If i use ksmps > 10 in the example all go right.
> Confused.
>
> Thank You,
> ciao,
> francesco.
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/oscil1-tp3335319p3335642.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-01-10 23:33
FromRory Walsh
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: oscil1
Here's a simplified version, any table size above or equal to 512
causes the same issue you originally reported, i.e. only outputs the
first value from the table. This examples uses GEN 10.



-odevaudio


sr = 44100
ksmps =	1

instr 1
k1 oscil1 0, 10000, ftlen(1), 1
printk2 k1
endin


f1 0 512 10 1
i1 0 100




Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-01-10 23:50
Fromfrancesco
Subject[Csnd] Re: oscil1
Perfect.

but with ksmps > 1 it works!

curiously waiting for someone who can explain that.
Luckly there are other way to do same thing.

Thank You Mr Rory,
it's late for me ... i'll go to sleep.
Maybe tomorrow some news.

ciao,
francesco.