Csound Csound-dev Csound-tekno Search About

Re: [Csnd] Midi massign and channel number

Date2019-11-12 14:39
FromVictor Lazzarini
SubjectRe: [Csnd] Midi massign and channel number
did you try

instr 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16
  midiNoteOn p1 ; "midiNoteOn" is an UDO
endin
========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 12 Nov 2019, at 14:50, Bernard Geyer  wrote:
> 
> I use midi to trigger sound files, and like very much the actual "massign"
> midi system.
> I use also a sustain pedal, and contrary to some other people, I'm very glad
> that I can trigger more than one instance of the same note, specially when
> there are long soundfiles.
> 
> What I find stupid, is that I have to define a different instrument for each
> midi channel, like this:
> 
> instr 1
> 	midiNoteOn p1 ; "midiNoteOn" is an UDO
> endin
> 
> instr 2
>  midiNoteOn p1
> endin
> 
> ...
> 
> instr 16
>  midiNoteOn p1
> endin
> 
> With "massign 0, 1"  I can trigger the same instrument with midi, but is
> there a way to access the channel in this case ? I want to use the channel
> number to control one parameter of my instrument.
> 
> I tried   "kStatus, kChannel, kData1, kData2 midiin" inside of my instr but
> it doesn't work.
> 
> Any ideas ?
> 
> 
> 
> 
> 
> 
> 
> --
> 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-11-12 14:50
FromBernard Geyer
Subject[Csnd] Midi massign and channel number
I use midi to trigger sound files, and like very much the actual "massign"
midi system.
I use also a sustain pedal, and contrary to some other people, I'm very glad
that I can trigger more than one instance of the same note, specially when
there are long soundfiles.

What I find stupid, is that I have to define a different instrument for each
midi channel, like this:

instr 1
	midiNoteOn p1 ; "midiNoteOn" is an UDO
endin

instr 2
  midiNoteOn p1
endin

...

instr 16
  midiNoteOn p1
endin

With "massign 0, 1"  I can trigger the same instrument with midi, but is
there a way to access the channel in this case ? I want to use the channel
number to control one parameter of my instrument.

I tried   "kStatus, kChannel, kData1, kData2 midiin" inside of my instr but
it doesn't work.

Any ideas ?







--
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-11-12 16:38
FromBernard Geyer
SubjectRe: [Csnd] Midi massign and channel number
It works!
Thank you very much!




--
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