Discussion:
Unable to map MIDI input with massign
hlolli
2014-09-22 16:41:33 UTC
Permalink
---- End SpamAssassin results
X-Loop: ***@lists.bath.ac.uk
X-Sequence: 43219
Errors-to: csound-***@lists.bath.ac.uk
Precedence: list
X-no-archive: yes
List-Id: <csound.lists.bath.ac.uk>
List-Help: <mailto:***@lists.bath.ac.uk?subject=help>
List-Owner: <mailto:csound-***@lists.bath.ac.uk>
List-Post: <mailto:***@lists.bath.ac.uk>
X-Scanner: be25d9268c52c7c4708826347d9f06bac5d4794b
X-Gmane-Expiry: 2014-10-06
Archived-At: <http://permalink.gmane.org/gmane.comp.audio.csound.user/48764>

I'm trying to route Lilypond midi out messages to Csound. Or any midi file
for that mater.

Both trying to use midi file in (-F) or midi driver(-M), I'm unable to route
the midi channels to different instruments. For example this is what I get
in terminal when loading up midi file:

midi channel 1 now using instr 1
midi channel 2 now using instr 1
midi channel 3 now using instr 1
midi channel 4 now using instr 1
midi channel 5 now using instr 1
midi channel 6 now using instr 1
midi channel 7 now using instr 1
midi channel 8 now using instr 1
midi channel 9 now using instr 1
midi channel 10 now using instr 1
midi channel 11 now using instr 1
midi channel 12 now using instr 1
midi channel 13 now using instr 1
midi channel 14 now using instr 1
midi channel 15 now using instr 1
midi channel 16 now using instr 1

Despite having 4 instruments with massign 1,1 massign 2,2.... etc....

So how do I force midi channel 1 to become instrument 1 and channel 2 to
become instrument 2?



--
View this message in context: http://csound.1045644.n5.nabble.com/Unable-to-map-MIDI-input-with-massign-tp5737598.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email ***@lists.bath.ac.uk with body "unsubscribe csound"
forrest curo
2014-09-22 17:05:36 UTC
Permalink
I think channel 1 triggering instrument 1, channel 2 triggering instrument
2 etc is default behavior.

Somewhere in your "forcing" you must be doing something that derails
that...(?)

"If *ichan* is set to 0, the value of *insnum* is used for all channels.
This way you can route all MIDI channels to a single Csound instrument"
sayeth the manual. It looks like one of your lines must do that into
channel 1?
Post by hlolli
I'm trying to route Lilypond midi out messages to Csound. Or any midi file
for that mater.
Both trying to use midi file in (-F) or midi driver(-M), I'm unable to route
the midi channels to different instruments. For example this is what I get
midi channel 1 now using instr 1
midi channel 2 now using instr 1
midi channel 3 now using instr 1
midi channel 4 now using instr 1
midi channel 5 now using instr 1
midi channel 6 now using instr 1
midi channel 7 now using instr 1
midi channel 8 now using instr 1
midi channel 9 now using instr 1
midi channel 10 now using instr 1
midi channel 11 now using instr 1
midi channel 12 now using instr 1
midi channel 13 now using instr 1
midi channel 14 now using instr 1
midi channel 15 now using instr 1
midi channel 16 now using instr 1
Despite having 4 instruments with massign 1,1 massign 2,2.... etc....
So how do I force midi channel 1 to become instrument 1 and channel 2 to
become instrument 2?
--
http://csound.1045644.n5.nabble.com/Unable-to-map-MIDI-input-with-massign-tp5737598.html
Sent from the Csound - General mailing list archive at Nabble.com.
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email ***@lists.bath.ac.uk with body "unsubscribe csound"
hlolli
2014-09-22 17:16:50 UTC
Permalink
---- End SpamAssassin results
X-Loop: ***@lists.bath.ac.uk
X-Sequence: 43222
Errors-to: csound-***@lists.bath.ac.uk
Precedence: list
X-no-archive: yes
List-Id: <csound.lists.bath.ac.uk>
List-Help: <mailto:***@lists.bath.ac.uk?subject=help>
List-Owner: <mailto:csound-***@lists.bath.ac.uk>
List-Post: <mailto:***@lists.bath.ac.uk>
X-Scanner: 753ac45b13e1dcd53368370f4bad048e85dcc67e
X-Gmane-Expiry: 2014-10-06
Archived-At: <http://permalink.gmane.org/gmane.comp.audio.csound.user/48767>

Here's my .csd file that I'm using


<CsoundSynthesizer>
<CsOptions>
-F aefing.midi
;-M virtual
</CsOptions>
<CsInstruments>
sr = 48000
ksmps = 128
nchnls = 2
0dbfs = 1

massign 1, 1



instr 1
ifreq cpsmidi
iamp ampmidi 1
asig oscils iamp, ifreq, 0
outs asig, asig
endin

</CsInstruments>
<CsScore>
f 0 1000
</CsScore>
</CsoundSynthesizer>
Post by forrest curo
I think channel 1 triggering instrument 1, channel 2 triggering instrument
2 etc is default behavior.
Somewhere in your "forcing" you must be doing something that derails
that...(?)
"If *ichan* is set to 0, the value of *insnum* is used for all channels.
This way you can route all MIDI channels to a single Csound instrument"
sayeth the manual. It looks like one of your lines must do that into
channel 1?
On Mon, Sep 22, 2014 at 9:41 AM, hlolli &lt;
Post by hlolli
I'm trying to route Lilypond midi out messages to Csound. Or any midi file
for that mater.
Both trying to use midi file in (-F) or midi driver(-M), I'm unable to route
the midi channels to different instruments. For example this is what I get
midi channel 1 now using instr 1
midi channel 2 now using instr 1
midi channel 3 now using instr 1
midi channel 4 now using instr 1
midi channel 5 now using instr 1
midi channel 6 now using instr 1
midi channel 7 now using instr 1
midi channel 8 now using instr 1
midi channel 9 now using instr 1
midi channel 10 now using instr 1
midi channel 11 now using instr 1
midi channel 12 now using instr 1
midi channel 13 now using instr 1
midi channel 14 now using instr 1
midi channel 15 now using instr 1
midi channel 16 now using instr 1
Despite having 4 instruments with massign 1,1 massign 2,2.... etc....
So how do I force midi channel 1 to become instrument 1 and channel 2 to
become instrument 2?
--
http://csound.1045644.n5.nabble.com/Unable-to-map-MIDI-input-with-massign-tp5737598.html
Sent from the Csound - General mailing list archive at Nabble.com.
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email
with body "unsubscribe
Post by hlolli
csound"
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email
with body "unsubscribe csound"
--
View this message in context: http://csound.1045644.n5.nabble.com/Unable-to-map-MIDI-input-with-massign-tp5737598p5737601.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email ***@lists.bath.ac.uk with body "unsubscribe csound"
forrest curo
2014-09-22 18:43:57 UTC
Permalink
No other instruments? Then "massign 2,0" etc to disable channel 2 [or
whatever csound instrument, if any, you'd want 2, etc, to go to]

In the manual example, they put in "massign 0,0" first to disable the
default assignments, then add the ones they want in the following
statements.'
Post by hlolli
Here's my .csd file that I'm using
<CsoundSynthesizer>
<CsOptions>
-F aefing.midi
;-M virtual
</CsOptions>
<CsInstruments>
sr = 48000
ksmps = 128
nchnls = 2
0dbfs = 1
massign 1, 1
instr 1
ifreq cpsmidi
iamp ampmidi 1
asig oscils iamp, ifreq, 0
outs asig, asig
endin
</CsInstruments>
<CsScore>
f 0 1000
</CsScore>
</CsoundSynthesizer>
Post by forrest curo
I think channel 1 triggering instrument 1, channel 2 triggering
instrument
Post by forrest curo
2 etc is default behavior.
Somewhere in your "forcing" you must be doing something that derails
that...(?)
"If *ichan* is set to 0, the value of *insnum* is used for all channels.
This way you can route all MIDI channels to a single Csound instrument"
sayeth the manual. It looks like one of your lines must do that into
channel 1?
On Mon, Sep 22, 2014 at 9:41 AM, hlolli &lt;
Post by hlolli
I'm trying to route Lilypond midi out messages to Csound. Or any midi file
for that mater.
Both trying to use midi file in (-F) or midi driver(-M), I'm unable to route
the midi channels to different instruments. For example this is what I get
midi channel 1 now using instr 1
midi channel 2 now using instr 1
midi channel 3 now using instr 1
midi channel 4 now using instr 1
midi channel 5 now using instr 1
midi channel 6 now using instr 1
midi channel 7 now using instr 1
midi channel 8 now using instr 1
midi channel 9 now using instr 1
midi channel 10 now using instr 1
midi channel 11 now using instr 1
midi channel 12 now using instr 1
midi channel 13 now using instr 1
midi channel 14 now using instr 1
midi channel 15 now using instr 1
midi channel 16 now using instr 1
Despite having 4 instruments with massign 1,1 massign 2,2.... etc....
So how do I force midi channel 1 to become instrument 1 and channel 2 to
become instrument 2?
--
http://csound.1045644.n5.nabble.com/Unable-to-map-MIDI-input-with-massign-tp5737598.html
Post by forrest curo
Post by hlolli
Sent from the Csound - General mailing list archive at Nabble.com.
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email
with body "unsubscribe
Post by hlolli
csound"
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email
with body "unsubscribe csound"
--
http://csound.1045644.n5.nabble.com/Unable-to-map-MIDI-input-with-massign-tp5737598p5737601.html
Sent from the Csound - General mailing list archive at Nabble.com.
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email ***@lists.bath.ac.uk with body "unsubscribe csound"
Loading...