Csound Csound-dev Csound-tekno Search About

[Csnd] named instruments issue with livecoding

Date2021-08-03 15:37
Fromjacopo greco d'alceo
Subject[Csnd] named instruments issue with livecoding
Hi all!

(I'm sorry I sent an incomplete mail before)

I want to ask you something about an issue I've got in livecoding with csound.
The idea is that I open a csound listening server and I send messages with reaper.
The problem is that if I send for exemple three different named instruments (I need to use named instruments because I need that csound manage the instruments numbers), csound think they are always the same.
For exemple, something like this:

instr inst9B589C8D
print p1
endin
schedule "inst9B589C8D", 1.0, 0.5

instr inst0A7FFD81
print p1
endin
schedule "inst0A7FFD81", 2.0, 0.5

instr inst0941D201
print p1
endin
schedule "inst0941D201", 3.0, 0.5

//

If I send it with livecoding, I get this result:

instr 41:  p1 = 41.000
instr 41:  p1 = 41.000
instr 42:  p1 = 42.000

//

If I render offline, I get this result:

instr 1:  p1 = 1.000
instr 2:  p1 = 2.000
instr 3:  p1 = 3.000

Is this a bug or an issue. I didn't figure out why the last instrument is another number and sometimes csound gives me all three instruments the same number. Is it a time bound issue?
Thank you for your answers,

j

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

Date2021-08-03 19:46
FromPete Goodeve
SubjectRe: [Csnd] named instruments issue with livecoding
AttachmentsNone  

Date2021-08-03 19:51
FromHlöðver Sigurðsson
SubjectRe: [Csnd] named instruments issue with livecoding
from where are you sending these, from first glance this looks like a bug, but I can't rule out if the host application is making some modifications

On Tue, 3 Aug 2021 at 20:47, Pete Goodeve <pete.goodeve@computer.org> wrote:
Hi,

Sorry that I'm still not really clear on what you are trying to do,
but in my own "livecoding" setup, I don't see the problem.

I just took the code below that you provide, and inserted it in a
csd. The output is identical, both when directly run with Csound
and when run "live".  My livecode is unfortunately very personal,
using my own software (in the Haiku OS) but essentially I just run
Csound with a UDP port, and feed the port with text, as required.
I feed it the entire csd, and get the same output as with the
direct invocation.

I guess there's something wonky in your setup?  Maybe Reaper.
I've never used it.

        -- Pete --

On Tue, Aug 03, 2021 at 03:37:39PM +0100, jacopo greco d'alceo wrote:
> Hi all!
>
> (I'm sorry I sent an incomplete mail before)
>
> I want to ask you something about an issue I've got in livecoding with csound.
> The idea is that I open a csound listening server and I send messages with reaper.
> The problem is that if I send for exemple three different named instruments (I need to use named instruments because I need that csound manage the instruments numbers), csound think they are always the same.
> For exemple, something like this:
>
> instr inst9B589C8D
> print p1
> endin
> schedule "inst9B589C8D", 1.0, 0.5
>
> instr inst0A7FFD81
> print p1
> endin
> schedule "inst0A7FFD81", 2.0, 0.5
>
> instr inst0941D201
> print p1
> endin
> schedule "inst0941D201", 3.0, 0.5
>
> //
>
> If I send it with livecoding, I get this result:
>
> instr 41:  p1 = 41.000
> instr 41:  p1 = 41.000
> instr 42:  p1 = 42.000
>
> //
>
> If I render offline, I get this result:
>
> instr 1:  p1 = 1.000
> instr 2:  p1 = 2.000
> instr 3:  p1 = 3.000
>
> Is this a bug or an issue. I didn't figure out why the last instrument is another number and sometimes csound gives me all three instruments the same number. Is it a time bound issue?
> Thank you for your answers,
>
> j
>
> 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

Date2021-08-03 20:39
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] named instruments issue with livecoding
Since no one replied yet, I'll have a
go.  The only way to guarantee that a given number is assigned to an instrument is to
assign one in the code. If not Csound will
provide one depending on various factors.

instr 1, name

endin

now you can either use name or 1 to refer to it.

Prof. Victor Lazzarini
Maynooth University
Ireland

> On Aug 3, 2021, at 3:37 PM, jacopo greco d'alceo  wrote:
> 
> *Warning*
> 
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> 
> Hi all!
> 
> (I'm sorry I sent an incomplete mail before)
> 
> I want to ask you something about an issue I've got in livecoding with csound.
> The idea is that I open a csound listening server and I send messages with reaper.
> The problem is that if I send for exemple three different named instruments (I need to use named instruments because I need that csound manage the instruments numbers), csound think they are always the same.
> For exemple, something like this:
> 
> instr inst9B589C8D
> print p1
> endin
> schedule "inst9B589C8D", 1.0, 0.5
> 
> instr inst0A7FFD81
> print p1
> endin
> schedule "inst0A7FFD81", 2.0, 0.5
> 
> instr inst0941D201
> print p1
> endin
> schedule "inst0941D201", 3.0, 0.5
> 
> //
> 
> If I send it with livecoding, I get this result:
> 
> instr 41:  p1 = 41.000
> instr 41:  p1 = 41.000
> instr 42:  p1 = 42.000
> 
> //
> 
> If I render offline, I get this result:
> 
> instr 1:  p1 = 1.000
> instr 2:  p1 = 2.000
> instr 3:  p1 = 3.000
> 
> Is this a bug or an issue. I didn't figure out why the last instrument is another number and sometimes csound gives me all three instruments the same number. Is it a time bound issue?
> Thank you for your answers,
> 
> j
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7Cb514f2af505b4f51a19a08d9568c4015%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637635982645081504%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=IoVqvbX2FGI4cj%2FxRMcdB67UL21nzuX%2BrglpylPtyvE%3D&reserved=0
> Send bugs reports to
>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7Cb514f2af505b4f51a19a08d9568c4015%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637635982645091498%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=RHlchcdhQWv9Rl%2FDJSu3Gi6YO%2FBsj%2BCGxRecYbX7BXo%3D&reserved=0
> 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

Date2021-08-03 21:22
FromRory Walsh
SubjectRe: [Csnd] [EXTERNAL] [Csnd] named instruments issue with livecoding
But nstrnum("name") in this case does not return a 1 which seems odd. Or at least that's how I remember it being.. 

On Tue 3 Aug 2021, 8:39 p.m. Victor Lazzarini, <Victor.Lazzarini@mu.ie> wrote:
Since no one replied yet, I'll have a
go.  The only way to guarantee that a given number is assigned to an instrument is to
assign one in the code. If not Csound will
provide one depending on various factors.

instr 1, name

endin

now you can either use name or 1 to refer to it.

Prof. Victor Lazzarini
Maynooth University
Ireland

> On Aug 3, 2021, at 3:37 PM, jacopo greco d'alceo <jacques.mascheroni@gmail.com> wrote:
>
> *Warning*
>
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>
> Hi all!
>
> (I'm sorry I sent an incomplete mail before)
>
> I want to ask you something about an issue I've got in livecoding with csound.
> The idea is that I open a csound listening server and I send messages with reaper.
> The problem is that if I send for exemple three different named instruments (I need to use named instruments because I need that csound manage the instruments numbers), csound think they are always the same.
> For exemple, something like this:
>
> instr inst9B589C8D
> print p1
> endin
> schedule "inst9B589C8D", 1.0, 0.5
>
> instr inst0A7FFD81
> print p1
> endin
> schedule "inst0A7FFD81", 2.0, 0.5
>
> instr inst0941D201
> print p1
> endin
> schedule "inst0941D201", 3.0, 0.5
>
> //
>
> If I send it with livecoding, I get this result:
>
> instr 41:  p1 = 41.000
> instr 41:  p1 = 41.000
> instr 42:  p1 = 42.000
>
> //
>
> If I render offline, I get this result:
>
> instr 1:  p1 = 1.000
> instr 2:  p1 = 2.000
> instr 3:  p1 = 3.000
>
> Is this a bug or an issue. I didn't figure out why the last instrument is another number and sometimes csound gives me all three instruments the same number. Is it a time bound issue?
> Thank you for your answers,
>
> j
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&amp;data=04%7C01%7CVictor.Lazzarini%40mu.ie%7Cb514f2af505b4f51a19a08d9568c4015%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637635982645081504%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=IoVqvbX2FGI4cj%2FxRMcdB67UL21nzuX%2BrglpylPtyvE%3D&amp;reserved=0
> Send bugs reports to
>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&amp;data=04%7C01%7CVictor.Lazzarini%40mu.ie%7Cb514f2af505b4f51a19a08d9568c4015%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637635982645091498%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=RHlchcdhQWv9Rl%2FDJSu3Gi6YO%2FBsj%2BCGxRecYbX7BXo%3D&amp;reserved=0
> 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

Date2021-08-03 21:29
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] named instruments issue with livecoding
Ok, then you just can't rely on a named instrument using a given number, because using a name will look for the assigned number and that can be anything.

if you need to rely on a numeric p1, you will need to use a number to instantiate it. That's the bottom line.

Prof. Victor Lazzarini
Maynooth University
Ireland

On Aug 3, 2021, at 9:23 PM, Rory Walsh <rorywalsh@ear.ie> wrote:


But nstrnum("name") in this case does not return a 1 which seems odd. Or at least that's how I remember it being.. 

On Tue 3 Aug 2021, 8:39 p.m. Victor Lazzarini, <Victor.Lazzarini@mu.ie> wrote:
Since no one replied yet, I'll have a
go.  The only way to guarantee that a given number is assigned to an instrument is to
assign one in the code. If not Csound will
provide one depending on various factors.

instr 1, name

endin

now you can either use name or 1 to refer to it.

Prof. Victor Lazzarini
Maynooth University
Ireland

> On Aug 3, 2021, at 3:37 PM, jacopo greco d'alceo <jacques.mascheroni@gmail.com> wrote:
>
> *Warning*
>
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>
> Hi all!
>
> (I'm sorry I sent an incomplete mail before)
>
> I want to ask you something about an issue I've got in livecoding with csound.
> The idea is that I open a csound listening server and I send messages with reaper.
> The problem is that if I send for exemple three different named instruments (I need to use named instruments because I need that csound manage the instruments numbers), csound think they are always the same.
> For exemple, something like this:
>
> instr inst9B589C8D
> print p1
> endin
> schedule "inst9B589C8D", 1.0, 0.5
>
> instr inst0A7FFD81
> print p1
> endin
> schedule "inst0A7FFD81", 2.0, 0.5
>
> instr inst0941D201
> print p1
> endin
> schedule "inst0941D201", 3.0, 0.5
>
> //
>
> If I send it with livecoding, I get this result:
>
> instr 41:  p1 = 41.000
> instr 41:  p1 = 41.000
> instr 42:  p1 = 42.000
>
> //
>
> If I render offline, I get this result:
>
> instr 1:  p1 = 1.000
> instr 2:  p1 = 2.000
> instr 3:  p1 = 3.000
>
> Is this a bug or an issue. I didn't figure out why the last instrument is another number and sometimes csound gives me all three instruments the same number. Is it a time bound issue?
> Thank you for your answers,
>
> j
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&amp;data=04%7C01%7CVictor.Lazzarini%40mu.ie%7Cb514f2af505b4f51a19a08d9568c4015%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637635982645081504%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=IoVqvbX2FGI4cj%2FxRMcdB67UL21nzuX%2BrglpylPtyvE%3D&amp;reserved=0
> Send bugs reports to
>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&amp;data=04%7C01%7CVictor.Lazzarini%40mu.ie%7Cb514f2af505b4f51a19a08d9568c4015%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637635982645091498%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=RHlchcdhQWv9Rl%2FDJSu3Gi6YO%2FBsj%2BCGxRecYbX7BXo%3D&amp;reserved=0
> 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

Date2021-08-03 21:41
FromRory Walsh
SubjectRe: [Csnd] [EXTERNAL] [Csnd] named instruments issue with livecoding
I should have said that Steven already explained this to me 😂 I was just saying I don't it odd is all. 

On Tue 3 Aug 2021, 9:29 p.m. Victor Lazzarini, <Victor.Lazzarini@mu.ie> wrote:
Ok, then you just can't rely on a named instrument using a given number, because using a name will look for the assigned number and that can be anything.

if you need to rely on a numeric p1, you will need to use a number to instantiate it. That's the bottom line.

Prof. Victor Lazzarini
Maynooth University
Ireland

On Aug 3, 2021, at 9:23 PM, Rory Walsh <rorywalsh@ear.ie> wrote:


But nstrnum("name") in this case does not return a 1 which seems odd. Or at least that's how I remember it being.. 

On Tue 3 Aug 2021, 8:39 p.m. Victor Lazzarini, <Victor.Lazzarini@mu.ie> wrote:
Since no one replied yet, I'll have a
go.  The only way to guarantee that a given number is assigned to an instrument is to
assign one in the code. If not Csound will
provide one depending on various factors.

instr 1, name

endin

now you can either use name or 1 to refer to it.

Prof. Victor Lazzarini
Maynooth University
Ireland

> On Aug 3, 2021, at 3:37 PM, jacopo greco d'alceo <jacques.mascheroni@gmail.com> wrote:
>
> *Warning*
>
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>
> Hi all!
>
> (I'm sorry I sent an incomplete mail before)
>
> I want to ask you something about an issue I've got in livecoding with csound.
> The idea is that I open a csound listening server and I send messages with reaper.
> The problem is that if I send for exemple three different named instruments (I need to use named instruments because I need that csound manage the instruments numbers), csound think they are always the same.
> For exemple, something like this:
>
> instr inst9B589C8D
> print p1
> endin
> schedule "inst9B589C8D", 1.0, 0.5
>
> instr inst0A7FFD81
> print p1
> endin
> schedule "inst0A7FFD81", 2.0, 0.5
>
> instr inst0941D201
> print p1
> endin
> schedule "inst0941D201", 3.0, 0.5
>
> //
>
> If I send it with livecoding, I get this result:
>
> instr 41:  p1 = 41.000
> instr 41:  p1 = 41.000
> instr 42:  p1 = 42.000
>
> //
>
> If I render offline, I get this result:
>
> instr 1:  p1 = 1.000
> instr 2:  p1 = 2.000
> instr 3:  p1 = 3.000
>
> Is this a bug or an issue. I didn't figure out why the last instrument is another number and sometimes csound gives me all three instruments the same number. Is it a time bound issue?
> Thank you for your answers,
>
> j
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&amp;data=04%7C01%7CVictor.Lazzarini%40mu.ie%7Cb514f2af505b4f51a19a08d9568c4015%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637635982645081504%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=IoVqvbX2FGI4cj%2FxRMcdB67UL21nzuX%2BrglpylPtyvE%3D&amp;reserved=0
> Send bugs reports to
>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&amp;data=04%7C01%7CVictor.Lazzarini%40mu.ie%7Cb514f2af505b4f51a19a08d9568c4015%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637635982645091498%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=RHlchcdhQWv9Rl%2FDJSu3Gi6YO%2FBsj%2BCGxRecYbX7BXo%3D&amp;reserved=0
> 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

Date2021-08-03 21:42
FromRory Walsh
SubjectRe: [Csnd] [EXTERNAL] [Csnd] named instruments issue with livecoding
...think it's odd. 

On Tue 3 Aug 2021, 9:41 p.m. Rory Walsh, <rorywalsh@ear.ie> wrote:
I should have said that Steven already explained this to me 😂 I was just saying I don't it odd is all. 

On Tue 3 Aug 2021, 9:29 p.m. Victor Lazzarini, <Victor.Lazzarini@mu.ie> wrote:
Ok, then you just can't rely on a named instrument using a given number, because using a name will look for the assigned number and that can be anything.

if you need to rely on a numeric p1, you will need to use a number to instantiate it. That's the bottom line.

Prof. Victor Lazzarini
Maynooth University
Ireland

On Aug 3, 2021, at 9:23 PM, Rory Walsh <rorywalsh@ear.ie> wrote:


But nstrnum("name") in this case does not return a 1 which seems odd. Or at least that's how I remember it being.. 

On Tue 3 Aug 2021, 8:39 p.m. Victor Lazzarini, <Victor.Lazzarini@mu.ie> wrote:
Since no one replied yet, I'll have a
go.  The only way to guarantee that a given number is assigned to an instrument is to
assign one in the code. If not Csound will
provide one depending on various factors.

instr 1, name

endin

now you can either use name or 1 to refer to it.

Prof. Victor Lazzarini
Maynooth University
Ireland

> On Aug 3, 2021, at 3:37 PM, jacopo greco d'alceo <jacques.mascheroni@gmail.com> wrote:
>
> *Warning*
>
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>
> Hi all!
>
> (I'm sorry I sent an incomplete mail before)
>
> I want to ask you something about an issue I've got in livecoding with csound.
> The idea is that I open a csound listening server and I send messages with reaper.
> The problem is that if I send for exemple three different named instruments (I need to use named instruments because I need that csound manage the instruments numbers), csound think they are always the same.
> For exemple, something like this:
>
> instr inst9B589C8D
> print p1
> endin
> schedule "inst9B589C8D", 1.0, 0.5
>
> instr inst0A7FFD81
> print p1
> endin
> schedule "inst0A7FFD81", 2.0, 0.5
>
> instr inst0941D201
> print p1
> endin
> schedule "inst0941D201", 3.0, 0.5
>
> //
>
> If I send it with livecoding, I get this result:
>
> instr 41:  p1 = 41.000
> instr 41:  p1 = 41.000
> instr 42:  p1 = 42.000
>
> //
>
> If I render offline, I get this result:
>
> instr 1:  p1 = 1.000
> instr 2:  p1 = 2.000
> instr 3:  p1 = 3.000
>
> Is this a bug or an issue. I didn't figure out why the last instrument is another number and sometimes csound gives me all three instruments the same number. Is it a time bound issue?
> Thank you for your answers,
>
> j
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&amp;data=04%7C01%7CVictor.Lazzarini%40mu.ie%7Cb514f2af505b4f51a19a08d9568c4015%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637635982645081504%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=IoVqvbX2FGI4cj%2FxRMcdB67UL21nzuX%2BrglpylPtyvE%3D&amp;reserved=0
> Send bugs reports to
>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&amp;data=04%7C01%7CVictor.Lazzarini%40mu.ie%7Cb514f2af505b4f51a19a08d9568c4015%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637635982645091498%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=RHlchcdhQWv9Rl%2FDJSu3Gi6YO%2FBsj%2BCGxRecYbX7BXo%3D&amp;reserved=0
> 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

Date2021-08-03 23:55
FromPete Goodeve
SubjectRe: [Csnd] named instruments issue with livecoding
AttachmentsNone  

Date2021-08-04 08:59
FromJohn ff
SubjectRe: [Csnd] named instruments issue with livecoding
When you say "live coding" what are you actually running?

⁣Sent from TypeApp ​

On Aug 3, 2021, 19:47, at 19:47, Pete Goodeve  wrote:
>Hi,
>
>Sorry that I'm still not really clear on what you are trying to do,
>but in my own "livecoding" setup, I don't see the problem.
>
>I just took the code below that you provide, and inserted it in a
>csd. The output is identical, both when directly run with Csound
>and when run "live".  My livecode is unfortunately very personal,
>using my own software (in the Haiku OS) but essentially I just run
>Csound with a UDP port, and feed the port with text, as required.
>I feed it the entire csd, and get the same output as with the
>direct invocation.
>
>I guess there's something wonky in your setup?  Maybe Reaper.
>I've never used it.
>
>	-- Pete --
>
>On Tue, Aug 03, 2021 at 03:37:39PM +0100, jacopo greco d'alceo wrote:
>> Hi all!
>> 
>> (I'm sorry I sent an incomplete mail before)
>> 
>> I want to ask you something about an issue I've got in livecoding
>with csound.
>> The idea is that I open a csound listening server and I send messages
>with reaper.
>> The problem is that if I send for exemple three different named
>instruments (I need to use named instruments because I need that csound
>manage the instruments numbers), csound think they are always the same.
>> For exemple, something like this:
>> 
>> instr inst9B589C8D
>> print p1
>> endin
>> schedule "inst9B589C8D", 1.0, 0.5
>> 
>> instr inst0A7FFD81
>> print p1
>> endin
>> schedule "inst0A7FFD81", 2.0, 0.5
>> 
>> instr inst0941D201
>> print p1
>> endin
>> schedule "inst0941D201", 3.0, 0.5
>> 
>> //
>> 
>> If I send it with livecoding, I get this result:
>> 
>> instr 41:  p1 = 41.000
>> instr 41:  p1 = 41.000
>> instr 42:  p1 = 42.000
>> 
>> //
>> 
>> If I render offline, I get this result:
>> 
>> instr 1:  p1 = 1.000
>> instr 2:  p1 = 2.000
>> instr 3:  p1 = 3.000
>> 
>> Is this a bug or an issue. I didn't figure out why the last
>instrument is another number and sometimes csound gives me all three
>instruments the same number. Is it a time bound issue?
>> Thank you for your answers,
>> 
>> j
>> 
>> 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