Csound Csound-dev Csound-tekno Search About

[Csnd] Bug with turnoff2?

Date2009-11-25 00:13
FromJacob Joaquin
Subject[Csnd] Bug with turnoff2?
Attachmentsturnoff2_test.csd  
I'm trying to use turnoff2 to turn off only the instance of the
instrument that uses it. Or to put it another way, I want an instance
to turn itself off, but leave all other instances of the same
instrument number on. In the manual, it says that by setting kmode to
2, it should turnoff only the newest instance. Though this is not
what's happening.  I've attached turnoff2_test.csd to this email.  The
code in question is this (i_instr = p1):

        turnoff2 i_instr, 2, 0

The question is, is this a bug? Or am I doing something wrong?

Best,
Jake
-- 
The Csound Blog - http://csound.noisepages.com/

Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-11-25 00:17
FromSteven Yi
Subject[Csnd] Re: Bug with turnoff2?
Why not use turnoff?

On Tue, Nov 24, 2009 at 7:13 PM, Jacob Joaquin  wrote:
> I'm trying to use turnoff2 to turn off only the instance of the
> instrument that uses it. Or to put it another way, I want an instance
> to turn itself off, but leave all other instances of the same
> instrument number on. In the manual, it says that by setting kmode to
> 2, it should turnoff only the newest instance. Though this is not
> what's happening.  I've attached turnoff2_test.csd to this email.  The
> code in question is this (i_instr = p1):
>
>        turnoff2 i_instr, 2, 0
>
> The question is, is this a bug? Or am I doing something wrong?
>
> Best,
> Jake
> --
> The Csound Blog - http://csound.noisepages.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"

Date2009-11-25 00:23
FromJacob Joaquin
Subject[Csnd] Re: Re: Bug with turnoff2?
That doesn't work either. I'm pretty sure using turnoff/turnoff2 with
ihold is the problem, as I just did another test, and I can get
overlapping notes with ihold disabled, but not when it is used.


On Tue, Nov 24, 2009 at 4:17 PM, Steven Yi  wrote:
> Why not use turnoff?
>
> On Tue, Nov 24, 2009 at 7:13 PM, Jacob Joaquin  wrote:
>> I'm trying to use turnoff2 to turn off only the instance of the
>> instrument that uses it. Or to put it another way, I want an instance
>> to turn itself off, but leave all other instances of the same
>> instrument number on. In the manual, it says that by setting kmode to
>> 2, it should turnoff only the newest instance. Though this is not
>> what's happening.  I've attached turnoff2_test.csd to this email.  The
>> code in question is this (i_instr = p1):
>>
>>        turnoff2 i_instr, 2, 0
>>
>> The question is, is this a bug? Or am I doing something wrong?
>>
>> Best,
>> Jake
>> --
>> The Csound Blog - http://csound.noisepages.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"
\


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-11-25 00:41
FromSteven Yi
Subject[Csnd] Re: Re: Re: Bug with turnoff2?
Hmm... I have use turnoff in some blue automation code but haven't
ever needed multiple instances at the same time, plus i don't use the
hold feature.  Have you tried using with -p3 instead of using ihold?
Otherwise, can you post some code that reproduces the problem?

On Tue, Nov 24, 2009 at 7:23 PM, Jacob Joaquin  wrote:
> That doesn't work either. I'm pretty sure using turnoff/turnoff2 with
> ihold is the problem, as I just did another test, and I can get
> overlapping notes with ihold disabled, but not when it is used.
>
>
> On Tue, Nov 24, 2009 at 4:17 PM, Steven Yi  wrote:
>> Why not use turnoff?
>>
>> On Tue, Nov 24, 2009 at 7:13 PM, Jacob Joaquin  wrote:
>>> I'm trying to use turnoff2 to turn off only the instance of the
>>> instrument that uses it. Or to put it another way, I want an instance
>>> to turn itself off, but leave all other instances of the same
>>> instrument number on. In the manual, it says that by setting kmode to
>>> 2, it should turnoff only the newest instance. Though this is not
>>> what's happening.  I've attached turnoff2_test.csd to this email.  The
>>> code in question is this (i_instr = p1):
>>>
>>>        turnoff2 i_instr, 2, 0
>>>
>>> The question is, is this a bug? Or am I doing something wrong?
>>>
>>> Best,
>>> Jake
>>> --
>>> The Csound Blog - http://csound.noisepages.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"
> \
>
>
> 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"

Date2009-11-25 04:56
FromJacob Joaquin
Subject[Csnd] Re: Re: Re: Re: Bug with turnoff2?
Attachmentsihold_test.csd  
First, I'm in no rush on this, as I discovered the problem when trying
a new solution on an existing working technique. I'm just here to
report a potential bug.

I've reproduced the problem and have attached ihold_test.csd to this
email.  Turnoff works as expected when used without ihold or -p3.
However, with ihold and -p3, every active instance turns off with
turnoff.  Though turnoff2 is not represented in the attached csd, I've
had the same results as turnoff.

Best,
Jake
-- 
The Csound Blog - http://csound.noisepages.com/



On Tue, Nov 24, 2009 at 4:41 PM, Steven Yi  wrote:
> Hmm... I have use turnoff in some blue automation code but haven't
> ever needed multiple instances at the same time, plus i don't use the
> hold feature.  Have you tried using with -p3 instead of using ihold?
> Otherwise, can you post some code that reproduces the problem?
>
> On Tue, Nov 24, 2009 at 7:23 PM, Jacob Joaquin  wrote:
>> That doesn't work either. I'm pretty sure using turnoff/turnoff2 with
>> ihold is the problem, as I just did another test, and I can get
>> overlapping notes with ihold disabled, but not when it is used.
>>
>>
>> On Tue, Nov 24, 2009 at 4:17 PM, Steven Yi  wrote:
>>> Why not use turnoff?
>>>
>>> On Tue, Nov 24, 2009 at 7:13 PM, Jacob Joaquin  wrote:
>>>> I'm trying to use turnoff2 to turn off only the instance of the
>>>> instrument that uses it. Or to put it another way, I want an instance
>>>> to turn itself off, but leave all other instances of the same
>>>> instrument number on. In the manual, it says that by setting kmode to
>>>> 2, it should turnoff only the newest instance. Though this is not
>>>> what's happening.  I've attached turnoff2_test.csd to this email.  The
>>>> code in question is this (i_instr = p1):
>>>>
>>>>        turnoff2 i_instr, 2, 0
>>>>
>>>> The question is, is this a bug? Or am I doing something wrong?
>>>>
>>>> Best,
>>>> Jake
>>>> --
>>>> The Csound Blog - http://csound.noisepages.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"
>> \
>>
>>
>> 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"

Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-11-25 14:30
FromAndres Cabrera
Subject[Csnd] Re: Re: Re: Re: Re: Bug with turnoff2?
Attachmentsturnoff2_test.csd  
Hi,

It seems ihold is meant to be used for legato instruments, so if the
instrument number is the same, the note will be ended before making
the new one. You can check that ihold and turnoff actually work in the
attached csd.

If you want notes to overlap, you need to use fractional instrument
numbers to separate lines.

The same should apply to turnoff2.

Cheers,
Andrés

On Wed, Nov 25, 2009 at 4:56 AM, Jacob Joaquin  wrote:
> First, I'm in no rush on this, as I discovered the problem when trying
> a new solution on an existing working technique. I'm just here to
> report a potential bug.
>
> I've reproduced the problem and have attached ihold_test.csd to this
> email.  Turnoff works as expected when used without ihold or -p3.
> However, with ihold and -p3, every active instance turns off with
> turnoff.  Though turnoff2 is not represented in the attached csd, I've
> had the same results as turnoff.
>
> Best,
> Jake
> --
> The Csound Blog - http://csound.noisepages.com/
>
>
>
> On Tue, Nov 24, 2009 at 4:41 PM, Steven Yi  wrote:
>> Hmm... I have use turnoff in some blue automation code but haven't
>> ever needed multiple instances at the same time, plus i don't use the
>> hold feature.  Have you tried using with -p3 instead of using ihold?
>> Otherwise, can you post some code that reproduces the problem?
>>
>> On Tue, Nov 24, 2009 at 7:23 PM, Jacob Joaquin  wrote:
>>> That doesn't work either. I'm pretty sure using turnoff/turnoff2 with
>>> ihold is the problem, as I just did another test, and I can get
>>> overlapping notes with ihold disabled, but not when it is used.
>>>
>>>
>>> On Tue, Nov 24, 2009 at 4:17 PM, Steven Yi  wrote:
>>>> Why not use turnoff?
>>>>
>>>> On Tue, Nov 24, 2009 at 7:13 PM, Jacob Joaquin  wrote:
>>>>> I'm trying to use turnoff2 to turn off only the instance of the
>>>>> instrument that uses it. Or to put it another way, I want an instance
>>>>> to turn itself off, but leave all other instances of the same
>>>>> instrument number on. In the manual, it says that by setting kmode to
>>>>> 2, it should turnoff only the newest instance. Though this is not
>>>>> what's happening.  I've attached turnoff2_test.csd to this email.  The
>>>>> code in question is this (i_instr = p1):
>>>>>
>>>>>        turnoff2 i_instr, 2, 0
>>>>>
>>>>> The question is, is this a bug? Or am I doing something wrong?
>>>>>
>>>>> Best,
>>>>> Jake
>>>>> --
>>>>> The Csound Blog - http://csound.noisepages.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"
>>> \
>>>
>>>
>>> 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"
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



-- 


Andrés

Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-11-25 18:28
FromJacob Joaquin
Subject[Csnd] Re: Re: Re: Re: Re: Re: Bug with turnoff2?
Thanks Andres. That makes  a lot sense. I was hesitant to call it a
bug, now I know why.

Best,
Jake
-- 
The Csound Blog - http://csound.noisepages.com/


On Wed, Nov 25, 2009 at 6:30 AM, Andres Cabrera  wrote:
> Hi,
>
> It seems ihold is meant to be used for legato instruments, so if the
> instrument number is the same, the note will be ended before making
> the new one. You can check that ihold and turnoff actually work in the
> attached csd.
>
> If you want notes to overlap, you need to use fractional instrument
> numbers to separate lines.
>
> The same should apply to turnoff2.
>
> Cheers,
> Andrés
>
> On Wed, Nov 25, 2009 at 4:56 AM, Jacob Joaquin  wrote:
>> First, I'm in no rush on this, as I discovered the problem when trying
>> a new solution on an existing working technique. I'm just here to
>> report a potential bug.
>>
>> I've reproduced the problem and have attached ihold_test.csd to this
>> email.  Turnoff works as expected when used without ihold or -p3.
>> However, with ihold and -p3, every active instance turns off with
>> turnoff.  Though turnoff2 is not represented in the attached csd, I've
>> had the same results as turnoff.
>>
>> Best,
>> Jake
>> --
>> The Csound Blog - http://csound.noisepages.com/
>>
>>
>>
>> On Tue, Nov 24, 2009 at 4:41 PM, Steven Yi  wrote:
>>> Hmm... I have use turnoff in some blue automation code but haven't
>>> ever needed multiple instances at the same time, plus i don't use the
>>> hold feature.  Have you tried using with -p3 instead of using ihold?
>>> Otherwise, can you post some code that reproduces the problem?
>>>
>>> On Tue, Nov 24, 2009 at 7:23 PM, Jacob Joaquin  wrote:
>>>> That doesn't work either. I'm pretty sure using turnoff/turnoff2 with
>>>> ihold is the problem, as I just did another test, and I can get
>>>> overlapping notes with ihold disabled, but not when it is used.
>>>>
>>>>
>>>> On Tue, Nov 24, 2009 at 4:17 PM, Steven Yi  wrote:
>>>>> Why not use turnoff?
>>>>>
>>>>> On Tue, Nov 24, 2009 at 7:13 PM, Jacob Joaquin  wrote:
>>>>>> I'm trying to use turnoff2 to turn off only the instance of the
>>>>>> instrument that uses it. Or to put it another way, I want an instance
>>>>>> to turn itself off, but leave all other instances of the same
>>>>>> instrument number on. In the manual, it says that by setting kmode to
>>>>>> 2, it should turnoff only the newest instance. Though this is not
>>>>>> what's happening.  I've attached turnoff2_test.csd to this email.  The
>>>>>> code in question is this (i_instr = p1):
>>>>>>
>>>>>>        turnoff2 i_instr, 2, 0
>>>>>>
>>>>>> The question is, is this a bug? Or am I doing something wrong?
>>>>>>
>>>>>> Best,
>>>>>> Jake
>>>>>> --
>>>>>> The Csound Blog - http://csound.noisepages.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"
>>>> \
>>>>
>>>>
>>>> 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"
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
>
> --
>
>
> Andrés
>
> 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"