Csound Csound-dev Csound-tekno Search About

[Csnd] Midi out channel issue

Date2019-05-03 23:33
FromJohann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE>
Subject[Csnd] Midi out channel issue
Hi,

I'm currently working with csound midi control channels (IN and OUT) for
score triggered events (working with csound 6.12.0 beta x64 on linux mint). 
I noticed something with the outkc opcode, according to my recent tests : 
-->It's not possible to use two outkc to write to two different control
channels in the same instrument at the same time. 
for example  : 
/instr 1
ksig linseg 0,p3,1
outkc 1,1,ksig,0,1
outkc 1,2,ksig,0,1
endin/

doesn't work. Monitoring with "KMidimon" software reveals that only control
channel 1 is emitted. 
According to my tests, the only way to send to two different control
channels at the same time is to use two different instruments (even two
instances of the same instrument didn't work here).

-->Sending two consecutive midi cc instructions at k rate from the same
instrument is only possible if waiting 0.04 second between the two
instructions. Example : 

/ORC=
instr 1 
ksig linseg p4,p3,p5
outkc 1,1,ksig,0,1
endin
SCO=
i 1 0 5 0 1
i 1 5 5 1 0/

doesn't work neither (only the first instruction is emmited, and the second
doesn't happen). But, if the score is 
/i 1 0 5 0 1
i 1 5.04 5  1 0 /
Then it works. 

What i finally want to do, is to send multiple control change signals to
different midi controllers at the same time, (best if it's from only one
instrument, even if it's multiple instances). 

For those tests, i was using those options : 
--realtime
-odac
-b1024
-B4096
-M hw:2,0,1
-Q hw:2,0,1
-+rtmidi=jack

 
One more thing : i was saying outkc for this test, but it seems midiout
equivalents tests give almost the same result. 

Does anyone have an idea about what i could be missing  ? 


Thanks.

Johann 






--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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-05-04 07:58
FromVictor Lazzarini
SubjectRe: [Csnd] Midi out channel issue
 The midi channel issue needs to be investigated. The cc one I think it is just
what I expected, I would have thought that
only a single message to a given cc at the
same channel could be sent in one k-cycle.


Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 3 May 2019, at 23:34, Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
> 
> Hi,
> 
> I'm currently working with csound midi control channels (IN and OUT) for
> score triggered events (working with csound 6.12.0 beta x64 on linux mint). 
> I noticed something with the outkc opcode, according to my recent tests : 
> -->It's not possible to use two outkc to write to two different control
> channels in the same instrument at the same time. 
> for example  : 
> /instr 1
> ksig linseg 0,p3,1
> outkc 1,1,ksig,0,1
> outkc 1,2,ksig,0,1
> endin/
> 
> doesn't work. Monitoring with "KMidimon" software reveals that only control
> channel 1 is emitted. 
> According to my tests, the only way to send to two different control
> channels at the same time is to use two different instruments (even two
> instances of the same instrument didn't work here).
> 
> -->Sending two consecutive midi cc instructions at k rate from the same
> instrument is only possible if waiting 0.04 second between the two
> instructions. Example : 
> 
> /ORC=
> instr 1 
> ksig linseg p4,p3,p5
> outkc 1,1,ksig,0,1
> endin
> SCO=
> i 1 0 5 0 1
> i 1 5 5 1 0/
> 
> doesn't work neither (only the first instruction is emmited, and the second
> doesn't happen). But, if the score is 
> /i 1 0 5 0 1
> i 1 5.04 5  1 0 /
> Then it works. 
> 
> What i finally want to do, is to send multiple control change signals to
> different midi controllers at the same time, (best if it's from only one
> instrument, even if it's multiple instances). 
> 
> For those tests, i was using those options : 
> --realtime
> -odac
> -b1024
> -B4096
> -M hw:2,0,1
> -Q hw:2,0,1
> -+rtmidi=jack
> 
> 
> One more thing : i was saying outkc for this test, but it seems midiout
> equivalents tests give almost the same result. 
> 
> Does anyone have an idea about what i could be missing  ? 
> 
> 
> Thanks.
> 
> Johann 
> 
> 
> 
> 
> 
> 
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
> 
> 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-05-04 13:08
FromJohann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] Midi out channel issue

Thank you Victor.
I realized i was not clear on one point in my last message, there is an amibuity : what i call "control channel " is "control change number" ... In all those tests, the midi channel remains the same.
But the question remains : if i have this :
instr 1
ksig linseg 0,p3,1
outkc 1,1,ksig,0,1
endin

instr 2
ksig linseg 1,p3,0
outkc 1,2,ksig,0,1
endin

SCO :
i 1 0 5
i 2 0 5
both playing at the same time, then both midi cc are emitted. But if i try to instanciate the instr1 with different cc number,only one is emitted.

Le samedi 4 mai 2019 à 08:58:54 UTC+2, Victor Lazzarini <Victor.Lazzarini@MU.IE> a écrit :


The midi channel issue needs to be investigated. The cc one I think it is just
what I expected, I would have thought that
only a single message to a given cc at the
same channel could be sent in one k-cycle.


Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 3 May 2019, at 23:34, Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>
> Hi,
>
> I'm currently working with csound midi control channels (IN and OUT) for
> score triggered events (working with csound 6.12.0 beta x64 on linux mint).
> I noticed something with the outkc opcode, according to my recent tests :
> -->It's not possible to use two outkc to write to two different control
> channels in the same instrument at the same time.
> for example  :
> /instr 1
> ksig linseg 0,p3,1
> outkc 1,1,ksig,0,1
> outkc 1,2,ksig,0,1
> endin/
>
> doesn't work. Monitoring with "KMidimon" software reveals that only control
> channel 1 is emitted.
> According to my tests, the only way to send to two different control
> channels at the same time is to use two different instruments (even two
> instances of the same instrument didn't work here).
>
> -->Sending two consecutive midi cc instructions at k rate from the same
> instrument is only possible if waiting 0.04 second between the two
> instructions. Example :
>
> /ORC=
> instr 1
> ksig linseg p4,p3,p5
> outkc 1,1,ksig,0,1
> endin
> SCO=
> i 1 0 5 0 1
> i 1 5 5 1 0/
>
> doesn't work neither (only the first instruction is emmited, and the second
> doesn't happen). But, if the score is
> /i 1 0 5 0 1
> i 1 5.04 5  1 0 /
> Then it works.
>
> What i finally want to do, is to send multiple control change signals to
> different midi controllers at the same time, (best if it's from only one
> instrument, even if it's multiple instances).
>
> For those tests, i was using those options :
> --realtime
> -odac
> -b1024
> -B4096
> -M hw:2,0,1
> -Q hw:2,0,1
> -+rtmidi=jack
>
>
> One more thing : i was saying outkc for this test, but it seems midiout
> equivalents tests give almost the same result.
>
> Does anyone have an idea about what i could be missing  ?
>
>
> Thanks.
>
> Johann
>
>
>
>
>
>
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>
> 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-05-04 14:20
FromVictor Lazzarini
SubjectRe: [Csnd] Midi out channel issue
That looks like a bug to me

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 4 May 2019, at 13:08, Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:


Thank you Victor.
I realized i was not clear on one point in my last message, there is an amibuity : what i call "control channel " is "control change number" ... In all those tests, the midi channel remains the same.
But the question remains : if i have this :
instr 1
ksig linseg 0,p3,1
outkc 1,1,ksig,0,1
endin

instr 2
ksig linseg 1,p3,0
outkc 1,2,ksig,0,1
endin

SCO :
i 1 0 5
i 2 0 5
both playing at the same time, then both midi cc are emitted. But if i try to instanciate the instr1 with different cc number,only one is emitted.

Le samedi 4 mai 2019 à 08:58:54 UTC+2, Victor Lazzarini <Victor.Lazzarini@MU.IE> a écrit :


The midi channel issue needs to be investigated. The cc one I think it is just
what I expected, I would have thought that
only a single message to a given cc at the
same channel could be sent in one k-cycle.


Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 3 May 2019, at 23:34, Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>
> Hi,
>
> I'm currently working with csound midi control channels (IN and OUT) for
> score triggered events (working with csound 6.12.0 beta x64 on linux mint).
> I noticed something with the outkc opcode, according to my recent tests :
> -->It's not possible to use two outkc to write to two different control
> channels in the same instrument at the same time.
> for example  :
> /instr 1
> ksig linseg 0,p3,1
> outkc 1,1,ksig,0,1
> outkc 1,2,ksig,0,1
> endin/
>
> doesn't work. Monitoring with "KMidimon" software reveals that only control
> channel 1 is emitted.
> According to my tests, the only way to send to two different control
> channels at the same time is to use two different instruments (even two
> instances of the same instrument didn't work here).
>
> -->Sending two consecutive midi cc instructions at k rate from the same
> instrument is only possible if waiting 0.04 second between the two
> instructions. Example :
>
> /ORC=
> instr 1
> ksig linseg p4,p3,p5
> outkc 1,1,ksig,0,1
> endin
> SCO=
> i 1 0 5 0 1
> i 1 5 5 1 0/
>
> doesn't work neither (only the first instruction is emmited, and the second
> doesn't happen). But, if the score is
> /i 1 0 5 0 1
> i 1 5.04 5  1 0 /
> Then it works.
>
> What i finally want to do, is to send multiple control change signals to
> different midi controllers at the same time, (best if it's from only one
> instrument, even if it's multiple instances).
>
> For those tests, i was using those options :
> --realtime
> -odac
> -b1024
> -B4096
> -M hw:2,0,1
> -Q hw:2,0,1
> -+rtmidi=jack
>
>
> One more thing : i was saying outkc for this test, but it seems midiout
> equivalents tests give almost the same result.
>
> Does anyone have an idea about what i could be missing  ?
>
>
> Thanks.
>
> Johann
>
>
>
>
>
>
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>
> 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-05-04 17:17
FromVictor Lazzarini
SubjectRe: [Csnd] Midi out channel issue
Could you try using only outkc, in a loop?

It appears the code only allows for a single
instance per instrument (by design, we
don't know why yet). 

Something like this

k1=0
while k1 < 2 do
outkc 1, kctl[k1], kval[k1], 0, 127
k1+=1
od

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 4 May 2019, at 13:08, Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:


Thank you Victor.
I realized i was not clear on one point in my last message, there is an amibuity : what i call "control channel " is "control change number" ... In all those tests, the midi channel remains the same.
But the question remains : if i have this :
instr 1
ksig linseg 0,p3,1
outkc 1,1,ksig,0,1
endin

instr 2
ksig linseg 1,p3,0
outkc 1,2,ksig,0,1
endin

SCO :
i 1 0 5
i 2 0 5
both playing at the same time, then both midi cc are emitted. But if i try to instanciate the instr1 with different cc number,only one is emitted.

Le samedi 4 mai 2019 à 08:58:54 UTC+2, Victor Lazzarini <Victor.Lazzarini@MU.IE> a écrit :


The midi channel issue needs to be investigated. The cc one I think it is just
what I expected, I would have thought that
only a single message to a given cc at the
same channel could be sent in one k-cycle.


Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 3 May 2019, at 23:34, Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>
> Hi,
>
> I'm currently working with csound midi control channels (IN and OUT) for
> score triggered events (working with csound 6.12.0 beta x64 on linux mint).
> I noticed something with the outkc opcode, according to my recent tests :
> -->It's not possible to use two outkc to write to two different control
> channels in the same instrument at the same time.
> for example  :
> /instr 1
> ksig linseg 0,p3,1
> outkc 1,1,ksig,0,1
> outkc 1,2,ksig,0,1
> endin/
>
> doesn't work. Monitoring with "KMidimon" software reveals that only control
> channel 1 is emitted.
> According to my tests, the only way to send to two different control
> channels at the same time is to use two different instruments (even two
> instances of the same instrument didn't work here).
>
> -->Sending two consecutive midi cc instructions at k rate from the same
> instrument is only possible if waiting 0.04 second between the two
> instructions. Example :
>
> /ORC=
> instr 1
> ksig linseg p4,p3,p5
> outkc 1,1,ksig,0,1
> endin
> SCO=
> i 1 0 5 0 1
> i 1 5 5 1 0/
>
> doesn't work neither (only the first instruction is emmited, and the second
> doesn't happen). But, if the score is
> /i 1 0 5 0 1
> i 1 5.04 5  1 0 /
> Then it works.
>
> What i finally want to do, is to send multiple control change signals to
> different midi controllers at the same time, (best if it's from only one
> instrument, even if it's multiple instances).
>
> For those tests, i was using those options :
> --realtime
> -odac
> -b1024
> -B4096
> -M hw:2,0,1
> -Q hw:2,0,1
> -+rtmidi=jack
>
>
> One more thing : i was saying outkc for this test, but it seems midiout
> equivalents tests give almost the same result.
>
> Does anyone have an idea about what i could be missing  ?
>
>
> Thanks.
>
> Johann
>
>
>
>
>
>
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>
> 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-05-04 17:31
FromVictor Lazzarini
SubjectRe: [Csnd] Midi out channel issue
I meant "only one outkc".

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 4 May 2019, at 17:18, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:

Could you try using only outkc, in a loop?

It appears the code only allows for a single
instance per instrument (by design, we
don't know why yet). 

Something like this

k1=0
while k1 < 2 do
outkc 1, kctl[k1], kval[k1], 0, 127
k1+=1
od

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 4 May 2019, at 13:08, Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:


Thank you Victor.
I realized i was not clear on one point in my last message, there is an amibuity : what i call "control channel " is "control change number" ... In all those tests, the midi channel remains the same.
But the question remains : if i have this :
instr 1
ksig linseg 0,p3,1
outkc 1,1,ksig,0,1
endin

instr 2
ksig linseg 1,p3,0
outkc 1,2,ksig,0,1
endin

SCO :
i 1 0 5
i 2 0 5
both playing at the same time, then both midi cc are emitted. But if i try to instanciate the instr1 with different cc number,only one is emitted.

Le samedi 4 mai 2019 à 08:58:54 UTC+2, Victor Lazzarini <Victor.Lazzarini@MU.IE> a écrit :


The midi channel issue needs to be investigated. The cc one I think it is just
what I expected, I would have thought that
only a single message to a given cc at the
same channel could be sent in one k-cycle.


Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 3 May 2019, at 23:34, Johann Philippe <000002c2c0737523-dmarc-request@listserv.heanet.ie> wrote:
>
> Hi,
>
> I'm currently working with csound midi control channels (IN and OUT) for
> score triggered events (working with csound 6.12.0 beta x64 on linux mint).
> I noticed something with the outkc opcode, according to my recent tests :
> -->It's not possible to use two outkc to write to two different control
> channels in the same instrument at the same time.
> for example  :
> /instr 1
> ksig linseg 0,p3,1
> outkc 1,1,ksig,0,1
> outkc 1,2,ksig,0,1
> endin/
>
> doesn't work. Monitoring with "KMidimon" software reveals that only control
> channel 1 is emitted.
> According to my tests, the only way to send to two different control
> channels at the same time is to use two different instruments (even two
> instances of the same instrument didn't work here).
>
> -->Sending two consecutive midi cc instructions at k rate from the same
> instrument is only possible if waiting 0.04 second between the two
> instructions. Example :
>
> /ORC=
> instr 1
> ksig linseg p4,p3,p5
> outkc 1,1,ksig,0,1
> endin
> SCO=
> i 1 0 5 0 1
> i 1 5 5 1 0/
>
> doesn't work neither (only the first instruction is emmited, and the second
> doesn't happen). But, if the score is
> /i 1 0 5 0 1
> i 1 5.04 5  1 0 /
> Then it works.
>
> What i finally want to do, is to send multiple control change signals to
> different midi controllers at the same time, (best if it's from only one
> instrument, even if it's multiple instances).
>
> For those tests, i was using those options :
> --realtime
> -odac
> -b1024
> -B4096
> -M hw:2,0,1
> -Q hw:2,0,1
> -+rtmidi=jack
>
>
> One more thing : i was saying outkc for this test, but it seems midiout
> equivalents tests give almost the same result.
>
> Does anyone have an idea about what i could be missing  ?
>
>
> Thanks.
>
> Johann
>
>
>
>
>
>
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>
> 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