| I'm sorry, John; I misspoke. What I meant to say (and what my example used)
was *power* of two. Thus, "Basically, Csound floats allows for a GEN16
length of either a power of 2 *or* power of 2 + 1. Doubles allows only for
power of 2."
I presume you meant power of 2 rather than power of 3.
So are you saying that my example works (with doubles) with table lengths of
8193 and tab values through 1? (This does not work for me.) What does not
work for me is specifically reproduced below; I do not understand why it
works with floats but not double precision.
Art Hunkins
-odac --displays -b128 -B2048
sr = 44100
ksmps = 100
nchnls = 2
instr 1
k1 linseg 0, 4, 1, 2, 1, 4, 0
kscale tab k1, 1, 1
k2 tab k1, 3, 1
aout poscil 10000 * k1, 400, 2
a1,a2,a3,a4 pan aout, kscale, 1, 4, 1, 0
outs a1, a2
endin
f1 0 8193 16 0 8193 9 1; (with doubles - "segmentation violation")
f2 0 16384 10 1
f3 0 8193 16 0 8193 .7 1
f4 0 8193 9 .25 1 0
i1 0 10
----- Original Message -----
From:
To:
Sent: Monday, January 16, 2012 2:54 AM
Subject: Re: [Csnd] GEN16 strangeness
> not multiple of 2, power of 3
>
>>
>> Basically, Csound floats allows for a GEN16 length of either a multiple
>> of
>> 2
>> *or* multiple of 2 + 1. Doubles allows only for multiple of two.
>> Therefore,
>> a tab value of 1 (scaled) is possible with floats (using multiple of 2 +
>> 1),
>> but not with doubles.
>
>
>
>
> 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"
|