Csound Csound-dev Csound-tekno Search About

[Csnd] index to tab and tabw...

Date2011-03-21 15:39
FromRory Walsh
Subject[Csnd] index to tab and tabw...
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"

Date2011-03-21 15:58
FromVictor Lazzarini
SubjectRe: [Csnd] index to tab and tabw...
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"

Date2011-03-21 16:28
FromRory Walsh
SubjectRe: [Csnd] index to tab and tabw...
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"


Date2011-03-21 17:04
FromVictor Lazzarini
SubjectRe: [Csnd] index to tab and tabw...
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"

Date2011-03-21 18:04
FromVictor Lazzarini
SubjectRe: [Csnd] index to tab and tabw...
The problem might be in some rounding that tab does, because as I said  
before and now
confirm, phasor will not go to 1.0 at all. Here is the code excerpt  
that tells us that (ugens2.c, 147):

         if (UNLIKELY(phase >= 1.0))
           phase -= 1.0;
         else if (UNLIKELY(phase < 0.0))
           phase += 1.0;

Victor

On 21 Mar 2011, at 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"
>

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"

Date2011-03-21 18:10
Frompeiman khosravi
SubjectRe: [Csnd] index to tab and tabw...
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"


Date2011-03-21 18:24
FromVictor Lazzarini
SubjectRe: [Csnd] index to tab and tabw...
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"

Date2011-03-21 18:28
FromVictor Lazzarini
SubjectRe: [Csnd] index to tab and tabw...
Which seems to solve the problem. I'll commit this and if problems  
emerge, we can revert.

Victor
On 21 Mar 2011, at 18:24, Victor Lazzarini wrote:

> Nothing to do, except maybe convert phase to MYFLT in the  
> conditional expression.

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"

Date2011-03-21 20:35
FromRory Walsh
SubjectRe: [Csnd] index to tab and tabw...
Great detective work! Thanks.

Rory.



On 21 March 2011 18:28, Victor Lazzarini  wrote:
> Which seems to solve the problem. I'll commit this and if problems emerge,
> we can revert.
>
> Victor
> On 21 Mar 2011, at 18:24, Victor Lazzarini wrote:
>
>> Nothing to do, except maybe convert phase to MYFLT in the conditional
>> expression.
>
> 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"