| I think this a float conversion issue from double that is rounded up
to 1.0.
It does not happen here with doubles csound.
The phasor phase is kept as double, then it is checked against 1.0 and
then at the output it is
converted to float, when the rounding occurs, and the output becomes
1.0.
That seems to be also the reason why pow of two lengths do not have
this issue.
Nothing to do, except maybe convert phase to MYFLT in the conditional
expression.
Victor
On 21 Mar 2011, at 18:10, peiman khosravi wrote:
> Yes that's what I ended up doing (ftlen(1)-1).
>
> Best,
>
> Peiman
>
> On 21 March 2011 17:04, Victor Lazzarini
> wrote:
>> It seems to break in non-pow-2 tables, but ok with pow/2. One
>> solution is
>> to use sr/(ftlen(1)-1) as phasor frequency.
>>
>> Maybe phasor needs to be looked at.
>>
>> Victor
>>
>>
>>
>> On 21 Mar 2011, at 16:28, Rory Walsh wrote:
>>
>>> The following instrument gives me a "perf error: taw off end" on
>>> Ubuntu but not on OSX.
>>>
>>> instr 1
>>> a2 inch 1
>>> a1 phasor sr/ftlen(1)
>>> tabw a2, a1, 1, 1
>>> endin
>>>
>>> Could it be anything to do with how I build Csound? Both version
>>> are 5.12.
>>>
>>> Rory.
>>>
>>>
>>>
>>>
>>> On 21 March 2011 15:58, Victor Lazzarini
>>> wrote:
>>>>
>>>> I don't think it does; phasor should not really get to 1.
>>>>
>>>> Victor
>>>> On 21 Mar 2011, at 15:39, Rory Walsh wrote:
>>>>
>>>>> This is related to a question Pieman asked last week but I deleted
>>>>> those mails so I've had to start a new, albeit related thread.
>>>>> Passing
>>>>> the output of a phasor to a tabw with ixmode set 1 causes a perf
>>>>> error? I can't ever remember this happening before? It doesn't
>>>>> happen
>>>>> with tab? I'm using 5.12 and I'm on Linux. FOr some reasons I
>>>>> don't
>>>>> get the error at all when working in Windows.
>>>>>
>>>>> Rory.
>>>>>
>>>>>
>>>>> 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"
>>>>>
>>>>
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> 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"
>>>
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>>
>> 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"
>
Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie
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"
|