Re: [Csnd] Midi out channel issue
Date | 2019-05-04 21:27 |
From | John |
Subject | Re: [Csnd] Midi out channel issue |
The code has been adjusted to allow multiple calls to outkc (and others) in an instrument. I do not have a MIDI set up so my testing is minimal. I would be pleased as anyone who can build a system can test it to see that there is not a problem. ==John ffitch 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 |
Date | 2019-05-04 22:58 |
From | Johann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE> |
Subject | Re: [Csnd] Midi out channel issue |
Thanks a lot, i'll build and test it on Linux tomorow.
Le samedi 4 mai 2019 à 22:28:11 UTC+2, John <jpff@CODEMIST.CO.UK> a écrit :
The code has been adjusted to allow multiple calls to outkc (and others) in an instrument. I do not have a MIDI set up so my testing is minimal. I would be pleased as anyone who can build a system can test it to see that there is not a problem. ==John ffitch Csound mailing list Send bugs reports to Discussions of bugs and features can be posted here |
Date | 2019-05-05 01:10 |
From | Johann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE> |
Subject | Re: [Csnd] Midi out channel issue |
I did a few tests here. It seems it has solved the problem. It now works create two instances of an instrument that has one outkc inside to send to two different cc at the same time, or even two consecutive instances (without having to wain 0.04 sec). Like this : /ORC instr 1 ksig linseg 0,p3,1 outkc 1,p4,ksig,0,1 endin /SCO i 1 0 5 1 i 1 0 5 2 i 1 5 5 1 This works perfectly. however the following syntax still only emits the first cc : /ORC instr 1 ksig1 linseg 0,p3,1 ksig2 linseg 1,p3,0 outkc 1,1,ksig1,0,1 outkc 1,2,ksig2,0,1 endin /SCO i 1 0 5 But, in fact, this syntax is not really important in my case. The instantiation is a better choice for me. Thanks for this fix ! Johann
Le samedi 4 mai 2019 à 23:58:17 UTC+2, Johann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE> a écrit :
Thanks a lot, i'll build and test it on Linux tomorow.
Le samedi 4 mai 2019 à 22:28:11 UTC+2, John <jpff@CODEMIST.CO.UK> a écrit :
The code has been adjusted to allow multiple calls to outkc (and others) in an instrument. I do not have a MIDI set up so my testing is minimal. I would be pleased as anyone who can build a system can test it to see that there is not a problem. ==John ffitch Csound mailing list Send bugs reports to 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 |
Date | 2019-05-05 12:02 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Midi out channel issue |
Thanks. I think we need to see why having two instances is not working. If that's an absolute limitation, we need to document it. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
|
Date | 2019-05-05 13:39 |
From | Johann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE> |
Subject | Re: [Csnd] Midi out channel issue |
After some more testings i can confirm that two or more outkc in the same instrument definition results with only the first one being emitted. It causes the opcode outkc14 not to work properly also, (i guess it's because this opcode is supposed to emit two cc in order to have 14bits definition, ) --> only the MSB is being emitted, so the receiver controller receives a 7bit midi cc instead of a 14. In the same time, the input opcodes (midiin, ctrl14...) do work fine.
Le dimanche 5 mai 2019 à 13:03:07 UTC+2, Victor Lazzarini <Victor.Lazzarini@MU.IE> a écrit :
Thanks. I think we need to see why having two instances is not working. If that's an absolute limitation, we need to document it. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
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
|
Date | 2019-05-05 16:31 |
From | john |
Subject | Re: [Csnd] Midi out channel issue |
On Sun, 5 May 2019, Johann Philippe wrote: > > however the following syntax still only emits the first cc : > /ORC > instr 1 > ksig1 linseg 0,p3,1 > ksig2 linseg 1,p3,0 > outkc 1,1,ksig1,0,1 > outkc 1,2,ksig2,0,1 > endin > /SCO > i 1 0 5 > This works for me. Can you confirm that it is bust for you and if so capture the file output (with midioutfile=xxx or similar) and send me the output file? ==John ff 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 |
Date | 2019-05-05 16:41 |
From | Johann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE> |
Subject | Re: [Csnd] Midi out channel issue |
Attachments | midi_rec.mid midi_test.csd |
Yes, i also linked the csd test file.
Le dimanche 5 mai 2019 à 17:32:01 UTC+2, john <jpff@CODEMIST.CO.UK> a écrit :
On Sun, 5 May 2019, Johann Philippe wrote: > > however the following syntax still only emits the first cc : > /ORC > instr 1 > ksig1 linseg 0,p3,1 > ksig2 linseg 1,p3,0 > outkc 1,1,ksig1,0,1 > outkc 1,2,ksig2,0,1 > endin > /SCO > i 1 0 5 > This works for me. Can you confirm that it is bust for you and if so capture the file output (with midioutfile=xxx or similar) and send me the output file? ==John ff 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 |
Date | 2019-05-05 16:55 |
From | john |
Subject | Re: [Csnd] Midi out channel issue |
I see no errior in the output. The only odity is that at time 76 the rounded value of c1 ksig1 is zero and the opcode does not repeat values that do not change. ==John ff On Sun, 5 May 2019, Johann Philippe wrote: > Yes, i also linked the csd test file. > > Le dimanche 5 mai 2019 à 17:32:01 UTC+2, john |
Date | 2019-05-05 17:54 |
From | Johann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE> |
Subject | Re: [Csnd] Midi out channel issue |
Yes you're right, i dit a mistake reading the midi file (i was reading the midi channel column instead of cc data...) . It seems indeed that the midiout output file is ok, but Kmidimon only notifies cc 1 (and the command 8 controler i'm using only receives cc 1)... Do we agree that in jack (i use qjackctl), those two cc are only correlated to one output midi port ?
Le dimanche 5 mai 2019 à 17:56:11 UTC+2, john <jpff@CODEMIST.CO.UK> a écrit :
I see no errior in the output. The only odity is that at time 76 the rounded value of c1 ksig1 is zero and the opcode does not repeat values that do not change. ==John ff On Sun, 5 May 2019, Johann Philippe wrote: > Yes, i also linked the csd test file. > > Le dimanche 5 mai 2019 à 17:32:01 UTC+2, john <jpff@CODEMIST.CO.UK> a écrit : > > > On Sun, 5 May 2019, Johann Philippe wrote: > > > > > however the following syntax still only emits the first cc : > > /ORC > > instr 1 > > ksig1 linseg 0,p3,1 > > ksig2 linseg 1,p3,0 > > outkc 1,1,ksig1,0,1 > > outkc 1,2,ksig2,0,1 > > endin > > /SCO > > i 1 0 5 > > > > This works for me. Can you confirm that it is bust for you and if so > capture the file output (with midioutfile=xxx or similar) and send me the > output file? > > ==John ff > > 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 |
Date | 2019-05-05 18:11 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Midi out channel issue |
This indicates that the issue is not with the opcode but with MIDI output somewhere between the opcode putting the data into
the midi buffer (Ok) and the backend
writing it to the output device.
Can you try alsa midi?
Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
|
Date | 2019-05-05 21:41 |
From | Johann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE> |
Subject | Re: [Csnd] Midi out channel issue |
With alsamidi it works. Even with a more complex example (with three instances containing each two instances of outkc) it works fine.
Le dimanche 5 mai 2019 à 19:11:28 UTC+2, Victor Lazzarini <Victor.Lazzarini@MU.IE> a écrit :
This indicates that the issue is not with the opcode but with MIDI output somewhere between the opcode putting the data into
the midi buffer (Ok) and the backend
writing it to the output device.
Can you try alsa midi?
Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
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
|