[Csnd] Gen 41 42 size
Date | 2009-04-30 14:18 |
From | francibal |
Subject | [Csnd] Gen 41 42 size |
I'm trying this gen routines. In the manual, under urd and duserrnd opcodes pages, it's tell that this gen don't need have size (lenght) of power of 2 ; if I've understand, lenght it's same of size. Or not?. But i can't use a different size. They work only with power of 2 size. Does wrong the manual, or do I wrong somethings ? Thanks for any advices. fran -- View this message in context: http://www.nabble.com/Gen-41-42-size-tp23315943p23315943.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2009-04-30 19:48 |
From | joachim heintz |
Subject | [Csnd] Re: Gen 41 42 size |
can you put an example? thanks - joachim Am 30.04.2009 um 15:18 schrieb francibal: > > I'm trying this gen routines. In the manual, under urd and duserrnd > opcodes > pages, it's tell that this gen don't need have size (lenght) of > power of 2 ; > if I've understand, lenght it's same of size. Or not?. But i can't > use a > different size. They work only with power of 2 size. > Does wrong the manual, or do I wrong somethings ? > Thanks for any advices. > > fran > -- > View this message in context: http://www.nabble.com/Gen-41-42-size-tp23315943p23315943.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" > |
Date | 2009-04-30 20:07 |
From | francibal |
Subject | [Csnd] Re: Gen 41 42 size |
Yes, thanks. They are really simple, cause i want to understand their behavior. Ex_1 had table size of 1000, and tell me illegal table lenght, Ex_2 use 1024 size and go right. joachim heintz wrote: > > can you put an example? > thanks - > joachim > > > Am 30.04.2009 um 15:18 schrieb francibal: > >> >> I'm trying this gen routines. In the manual, under urd and duserrnd >> opcodes >> pages, it's tell that this gen don't need have size (lenght) of >> power of 2 ; >> if I've understand, lenght it's same of size. Or not?. But i can't >> use a >> different size. They work only with power of 2 size. >> Does wrong the manual, or do I wrong somethings ? >> Thanks for any advices. >> >> fran >> -- >> View this message in context: >> http://www.nabble.com/Gen-41-42-size-tp23315943p23315943.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" > > http://www.nabble.com/file/p23322477/Ex_01.csd Ex_01.csd http://www.nabble.com/file/p23322477/Ex_02.csd Ex_02.csd -- View this message in context: http://www.nabble.com/Gen-41-42-size-tp23315943p23322477.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2009-04-30 20:16 |
From | francibal |
Subject | [Csnd] Re: Gen 41 42 size |
Ok, wrong ex_01, it was |
Date | 2009-04-30 20:31 |
From | joachim heintz |
Subject | [Csnd] Re: Re: Gen 41 42 size |
I see ... If you want to use a non-power-of-two function table, you must give a size with a negative value. So in your case: f1 0 -1000 -42 0 1 100 1 2 100 2 3 300 3 4 500 f2 0 -1000 -41 0 100 1 100 2 300 3 500 should work. Perhaps you can test it, too. Ciao - joachim Am 30.04.2009 um 21:16 schrieb francibal: > > Ok, wrong ex_01, > it was > > |
Date | 2009-04-30 20:34 |
From | victor |
Subject | [Csnd] Re: Re: Gen 41 42 size |
Try: f1 0 -1000 -42 0 1 100 1 2 100 2 3 300 3 4 500 f2 0 -1000 -41 0 100 1 100 2 300 3 500 In order to give NP2 lengths, these have to be passed as negative p3s Victor ----- Original Message ----- From: "francibal" |
Date | 2009-04-30 21:02 |
From | francibal |
Subject | [Csnd] Re: Gen 41 42 size |
yes, now all is right. Many thanks, but... why this? If it's not many complex, i would like to understand. Anyway now it's working, and thanks for this. ciao fran -- View this message in context: http://www.nabble.com/Gen-41-42-size-tp23315943p23322596.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2009-04-30 22:28 |
From | francibal |
Subject | [Csnd] Re: Gen 41 42 size |
Ok, now all works well. Many, many thanks. I've found in manual, under f statement page, this explanation (sometimes i forget to read somethings!). I'm not able to understand why, but important thing is that now i can study. (Maybe it will be better if this would be write in gen/opcode pages). thanks e ciao, franc -- View this message in context: http://www.nabble.com/Gen-41-42-size-tp23315943p23324658.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2009-04-30 23:20 |
From | victor |
Subject | [Csnd] Re: Re: Gen 41 42 size |
That is because when reading an ordinary f-statement, csound will check if it's power-of-two (or +1) automatically, regardless of anything else. Making it negative disables this check. The check is important because many opcodes depend on tables being power of two and will be broken if they aren't. Victor ----- Original Message ----- From: "francibal" |