[Csnd] csound midi question
Date | 2017-11-23 20:35 |
From | Mo Morsi |
Subject | [Csnd] csound midi question |
Greetings! If anyone has a second, I have a quick question regarding the default MIDI behaviour in CSound.
It says here:
"By default, when a MIDI note is received, it turns on the CSound
instrument corresponding to its channel number, so if a note is received
on channel 3, it will turn on instrument 3, if it is received on
channel 10, it will turn on instrument 10 and so on."
It also says here:
"By default, the instrument is the same as the program number."
---
So it is correct to say that during playback each midi channel defaults to the program with the same number? Unless otherwise specified via program change event in the midi or massign/pgmassign call in the csd correct?
Now what is the default behavior for channel 10, which according to the MIDI GM standard is reserved for percussion instruments (with a 1-1 mapping per note)
Do both Program #10 and Channel #10 get routed to instrument #10 in CSound? Is the correct way to conform to the standard in an orc to invoke "massign 10, ..." or "pgmassign 10, ..." ?
Thanks for any info,
-Mo
http://mo.morsi.org
|
Date | 2017-11-23 20:52 |
From | Victor Lazzarini |
Subject | Re: [Csnd] csound midi question |
channel 10 goes to instr 10 in Csound by default. There is no special treatment.
Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
|
Date | 2017-11-24 21:46 |
From | Mo Morsi |
Subject | Re: [Csnd] csound midi question |
Thanks for the response, I suppose my question was more to do with what instrument to assign to instrument #10 if I was building a GM-midi standard synth with csound. Channel 10 is reserved to pitch-based percussion triggers, but program number #10 is reserved for the Glockenspiel.
From my understanding if a program change event comes in any channel it will switch that channel to the corresponding instrument number by default, so if any channel encounters a program change to 10, with the intent to invoke the Glockenspiel (as common as that is...), it will switch to the pitch/drum trigger.
pgmassign 10, <instr number> This way if any channel program changes to #10 it will use an out of order instrument, but all other channel / program assignments can rely on their defaults. If any of this doesn't look right, I'd greatly appreciate the correction. If not, again thanks for the time.
On Thu, Nov 23, 2017, at 03:52 PM, Victor Lazzarini wrote:
|