Csound Csound-dev Csound-tekno Search About

[Csnd] multiple instances with p3 = -1

Date2019-02-15 09:57
Fromjoachim heintz
Subject[Csnd] multiple instances with p3 = -1
when i want to run more than one instance of an instrument with the 
duration -1 (in user's intention: forever), only the last instance 
survives, for instance

instr Bla
  out poscil:a(.2,mtof(random:i(60,70)))
endin
schedule("Bla",0,-1)
schedule("Bla",0,-1)

is this expected and anywhere documented?  or is it a bug?

thanks -
	joachim

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-02-15 10:22
FromSteven Yi
SubjectRe: [Csnd] multiple instances with p3 = -1
I would expect this to be the case. If you use fractional instrument numbers it should allow for multiple held notes. (Using nstrnum to get the number)

On Fri, Feb 15, 2019, 01:57 joachim heintz <jh@joachimheintz.de wrote:
when i want to run more than one instance of an instrument with the
duration -1 (in user's intention: forever), only the last instance
survives, for instance

instr Bla
  out poscil:a(.2,mtof(random:i(60,70)))
endin
schedule("Bla",0,-1)
schedule("Bla",0,-1)

is this expected and anywhere documented?  or is it a bug?

thanks -
        joachim

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-02-15 11:34
FromEduardo Moguillansky
SubjectRe: [Csnd] multiple instances with p3 = -1
As I understand it, the -1 duration means a "tied" note. The fact that 
it lasts indefinitely is a consequence of this (it should last until the 
next note of the same instrument). You can use fractional instrument 
number to differentiate the instances and they will coexist. I don't 
know a way of achieving the same with named instrs. Of course you can 
always give a very long duration.

eduardo

On 15.02.19 10:57, joachim heintz wrote:
> when i want to run more than one instance of an instrument with the 
> duration -1 (in user's intention: forever), only the last instance 
> survives, for instance
>
> instr Bla
>  out poscil:a(.2,mtof(random:i(60,70)))
> endin
> schedule("Bla",0,-1)
> schedule("Bla",0,-1)
>
> is this expected and anywhere documented?  or is it a bug?
>
> thanks -
>     joachim
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-02-15 11:56
Fromjoachim heintz
SubjectRe: [Csnd] multiple instances with p3 = -1
thanks to you both.  you are right; actually the p3=-1 feature is meant 
to deal with tied notes, so should be used with caution in other cases.

i think we should mention this in the manual (if not already there) but 
i cannot find the section about tied notes.  anyone?

	joachim



On 15/02/19 12:34, Eduardo Moguillansky wrote:
> As I understand it, the -1 duration means a "tied" note. The fact that
> it lasts indefinitely is a consequence of this (it should last until the
> next note of the same instrument). You can use fractional instrument
> number to differentiate the instances and they will coexist. I don't
> know a way of achieving the same with named instrs. Of course you can
> always give a very long duration.
>
> eduardo
>
> On 15.02.19 10:57, joachim heintz wrote:
>> when i want to run more than one instance of an instrument with the
>> duration -1 (in user's intention: forever), only the last instance
>> survives, for instance
>>
>> instr Bla
>>  out poscil:a(.2,mtof(random:i(60,70)))
>> endin
>> schedule("Bla",0,-1)
>> schedule("Bla",0,-1)
>>
>> is this expected and anywhere documented?  or is it a bug?
>>
>> thanks -
>>     joachim
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-02-15 12:26
FromVictor Lazzarini
SubjectRe: [Csnd] multiple instances with p3 = -1
Btw, it’s discussed in 5.3.5 in the Book, for what’s worth.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 15 Feb 2019, at 11:56, joachim heintz  wrote:
> 
> thanks to you both.  you are right; actually the p3=-1 feature is meant to deal with tied notes, so should be used with caution in other cases.
> 
> i think we should mention this in the manual (if not already there) but i cannot find the section about tied notes.  anyone?
> 
> 	joachim
> 
> 
> 
> On 15/02/19 12:34, Eduardo Moguillansky wrote:
>> As I understand it, the -1 duration means a "tied" note. The fact that
>> it lasts indefinitely is a consequence of this (it should last until the
>> next note of the same instrument). You can use fractional instrument
>> number to differentiate the instances and they will coexist. I don't
>> know a way of achieving the same with named instrs. Of course you can
>> always give a very long duration.
>> 
>> eduardo
>> 
>> On 15.02.19 10:57, joachim heintz wrote:
>>> when i want to run more than one instance of an instrument with the
>>> duration -1 (in user's intention: forever), only the last instance
>>> survives, for instance
>>> 
>>> instr Bla
>>> out poscil:a(.2,mtof(random:i(60,70)))
>>> endin
>>> schedule("Bla",0,-1)
>>> schedule("Bla",0,-1)
>>> 
>>> is this expected and anywhere documented?  or is it a bug?
>>> 
>>> thanks -
>>>    joachim
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-02-15 12:57
FromSteven Yi
SubjectRe: [Csnd] multiple instances with p3 = -1
The manual seems to point multiple places to:

On Fri, Feb 15, 2019 at 3:56 AM joachim heintz  wrote:
>
> thanks to you both.  you are right; actually the p3=-1 feature is meant
> to deal with tied notes, so should be used with caution in other cases.
>
> i think we should mention this in the manual (if not already there) but
> i cannot find the section about tied notes.  anyone?
>
>         joachim
>
>
>
> On 15/02/19 12:34, Eduardo Moguillansky wrote:
> > As I understand it, the -1 duration means a "tied" note. The fact that
> > it lasts indefinitely is a consequence of this (it should last until the
> > next note of the same instrument). You can use fractional instrument
> > number to differentiate the instances and they will coexist. I don't
> > know a way of achieving the same with named instrs. Of course you can
> > always give a very long duration.
> >
> > eduardo
> >
> > On 15.02.19 10:57, joachim heintz wrote:
> >> when i want to run more than one instance of an instrument with the
> >> duration -1 (in user's intention: forever), only the last instance
> >> survives, for instance
> >>
> >> instr Bla
> >>  out poscil:a(.2,mtof(random:i(60,70)))
> >> endin
> >> schedule("Bla",0,-1)
> >> schedule("Bla",0,-1)
> >>
> >> is this expected and anywhere documented?  or is it a bug?
> >>
> >> thanks -
> >>     joachim
> >>
> >> Csound mailing list
> >> Csound@listserv.heanet.ie
> >> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> >> Send bugs reports to
> >>        https://github.com/csound/csound/issues
> >> Discussions of bugs and features can be posted here
> >
> > Csound mailing list
> > Csound@listserv.heanet.ie
> > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> > Send bugs reports to
> >        https://github.com/csound/csound/issues
> > Discussions of bugs and features can be posted here
> >
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-02-15 12:58
FromSteven Yi
SubjectRe: [Csnd] multiple instances with p3 = -1
(Sorry, hit send accidentally)

points places to:

https://csound.com/docs/manual/i.html

I wrote an article ages ago in the Csound Journal about tied notes:

http://csoundjournal.com/2005fall/tiedNotes.html

that could be reused for any manual updates.

On Fri, Feb 15, 2019 at 4:57 AM Steven Yi  wrote:
>
> The manual seems to point multiple places to:
>
> On Fri, Feb 15, 2019 at 3:56 AM joachim heintz  wrote:
> >
> > thanks to you both.  you are right; actually the p3=-1 feature is meant
> > to deal with tied notes, so should be used with caution in other cases.
> >
> > i think we should mention this in the manual (if not already there) but
> > i cannot find the section about tied notes.  anyone?
> >
> >         joachim
> >
> >
> >
> > On 15/02/19 12:34, Eduardo Moguillansky wrote:
> > > As I understand it, the -1 duration means a "tied" note. The fact that
> > > it lasts indefinitely is a consequence of this (it should last until the
> > > next note of the same instrument). You can use fractional instrument
> > > number to differentiate the instances and they will coexist. I don't
> > > know a way of achieving the same with named instrs. Of course you can
> > > always give a very long duration.
> > >
> > > eduardo
> > >
> > > On 15.02.19 10:57, joachim heintz wrote:
> > >> when i want to run more than one instance of an instrument with the
> > >> duration -1 (in user's intention: forever), only the last instance
> > >> survives, for instance
> > >>
> > >> instr Bla
> > >>  out poscil:a(.2,mtof(random:i(60,70)))
> > >> endin
> > >> schedule("Bla",0,-1)
> > >> schedule("Bla",0,-1)
> > >>
> > >> is this expected and anywhere documented?  or is it a bug?
> > >>
> > >> thanks -
> > >>     joachim
> > >>
> > >> Csound mailing list
> > >> Csound@listserv.heanet.ie
> > >> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> > >> Send bugs reports to
> > >>        https://github.com/csound/csound/issues
> > >> Discussions of bugs and features can be posted here
> > >
> > > Csound mailing list
> > > Csound@listserv.heanet.ie
> > > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> > > Send bugs reports to
> > >        https://github.com/csound/csound/issues
> > > Discussions of bugs and features can be posted here
> > >
> >
> > Csound mailing list
> > Csound@listserv.heanet.ie
> > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> > Send bugs reports to
> >         https://github.com/csound/csound/issues
> > Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-02-15 13:16
Fromjoachim heintz
SubjectRe: [Csnd] multiple instances with p3 = -1
thanks.  it is described clearly in 
https://csound.com/docs/manual/i.html ; not necessary to add something. 
i simply used it in a wrong way.

	j



On 15/02/19 13:58, Steven Yi wrote:
> (Sorry, hit send accidentally)
>
> points places to:
>
> https://csound.com/docs/manual/i.html
>
> I wrote an article ages ago in the Csound Journal about tied notes:
>
> http://csoundjournal.com/2005fall/tiedNotes.html
>
> that could be reused for any manual updates.
>
> On Fri, Feb 15, 2019 at 4:57 AM Steven Yi  wrote:
>>
>> The manual seems to point multiple places to:
>>
>> On Fri, Feb 15, 2019 at 3:56 AM joachim heintz  wrote:
>>>
>>> thanks to you both.  you are right; actually the p3=-1 feature is meant
>>> to deal with tied notes, so should be used with caution in other cases.
>>>
>>> i think we should mention this in the manual (if not already there) but
>>> i cannot find the section about tied notes.  anyone?
>>>
>>>         joachim
>>>
>>>
>>>
>>> On 15/02/19 12:34, Eduardo Moguillansky wrote:
>>>> As I understand it, the -1 duration means a "tied" note. The fact that
>>>> it lasts indefinitely is a consequence of this (it should last until the
>>>> next note of the same instrument). You can use fractional instrument
>>>> number to differentiate the instances and they will coexist. I don't
>>>> know a way of achieving the same with named instrs. Of course you can
>>>> always give a very long duration.
>>>>
>>>> eduardo
>>>>
>>>> On 15.02.19 10:57, joachim heintz wrote:
>>>>> when i want to run more than one instance of an instrument with the
>>>>> duration -1 (in user's intention: forever), only the last instance
>>>>> survives, for instance
>>>>>
>>>>> instr Bla
>>>>>  out poscil:a(.2,mtof(random:i(60,70)))
>>>>> endin
>>>>> schedule("Bla",0,-1)
>>>>> schedule("Bla",0,-1)
>>>>>
>>>>> is this expected and anywhere documented?  or is it a bug?
>>>>>
>>>>> thanks -
>>>>>     joachim
>>>>>
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>>
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>        https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>>
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>         https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-02-15 14:48
Fromthorin kerr
SubjectRe: [Csnd] multiple instances with p3 = -1
Since we're on tied notes...

Can any of you think of a way to simplify tying notes? The method I know at the moment using tigoto needs to get and set values in different places in the instrument, and I can't think of a way to encapsulate this in a UDO or macro. This is about as simple as I can get it.

instr 1
tigoto cont
iamp, ipit = p4, p5
cont:
kamp transeg iamp, abs(p3), 0.5, p4 
kpit transegb ipit, abs(p3)*0.33, 1, ipit, abs(p3), 1, p5    
ares oscili kamp, kpit, p6, p7
iamp, ipit = p4, p5
outs ares, ares    
endin

Thorin


On Fri, 15 Feb. 2019, 10:59 pm Steven Yi <stevenyi@gmail.com wrote:
(Sorry, hit send accidentally)

points places to:

https://csound.com/docs/manual/i.html

I wrote an article ages ago in the Csound Journal about tied notes:

http://csoundjournal.com/2005fall/tiedNotes.html

that could be reused for any manual updates.

On Fri, Feb 15, 2019 at 4:57 AM Steven Yi <stevenyi@gmail.com> wrote:
>
> The manual seems to point multiple places to:
>
> On Fri, Feb 15, 2019 at 3:56 AM joachim heintz <jh@joachimheintz.de> wrote:
> >
> > thanks to you both.  you are right; actually the p3=-1 feature is meant
> > to deal with tied notes, so should be used with caution in other cases.
> >
> > i think we should mention this in the manual (if not already there) but
> > i cannot find the section about tied notes.  anyone?
> >
> >         joachim
> >
> >
> >
> > On 15/02/19 12:34, Eduardo Moguillansky wrote:
> > > As I understand it, the -1 duration means a "tied" note. The fact that
> > > it lasts indefinitely is a consequence of this (it should last until the
> > > next note of the same instrument). You can use fractional instrument
> > > number to differentiate the instances and they will coexist. I don't
> > > know a way of achieving the same with named instrs. Of course you can
> > > always give a very long duration.
> > >
> > > eduardo
> > >
> > > On 15.02.19 10:57, joachim heintz wrote:
> > >> when i want to run more than one instance of an instrument with the
> > >> duration -1 (in user's intention: forever), only the last instance
> > >> survives, for instance
> > >>
> > >> instr Bla
> > >>  out poscil:a(.2,mtof(random:i(60,70)))
> > >> endin
> > >> schedule("Bla",0,-1)
> > >> schedule("Bla",0,-1)
> > >>
> > >> is this expected and anywhere documented?  or is it a bug?
> > >>
> > >> thanks -
> > >>     joachim
> > >>
> > >> Csound mailing list
> > >> Csound@listserv.heanet.ie
> > >> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> > >> Send bugs reports to
> > >>        https://github.com/csound/csound/issues
> > >> Discussions of bugs and features can be posted here
> > >
> > > Csound mailing list
> > > Csound@listserv.heanet.ie
> > > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> > > Send bugs reports to
> > >        https://github.com/csound/csound/issues
> > > Discussions of bugs and features can be posted here
> > >
> >
> > Csound mailing list
> > Csound@listserv.heanet.ie
> > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> > Send bugs reports to
> >         https://github.com/csound/csound/issues
> > Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here