Csound Csound-dev Csound-tekno Search About

[Csnd] Unable to map MIDI input with massign

Date2014-09-22 17:41
Fromhlolli
Subject[Csnd] Unable to map MIDI input with massign
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 sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2014-09-22 18:05
Fromforrest curo
SubjectRe: [Csnd] Unable to map MIDI input with massign
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 <hlolli@gmail.com> wrote:
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 sympa@lists.bath.ac.uk with body "unsubscribe csound"





Date2014-09-22 18:16
Fromhlolli
Subject[Csnd] Re: Unable to map MIDI input with massign
Here's my .csd file that I'm using




-F aefing.midi
;-M virtual


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



f 0 1000


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

> hlolli@

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

> sympa@.ac

>  with body "unsubscribe
>> csound"
>>
>>
>>
>>
> 
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> To unsubscribe, send email 

> sympa@.ac

>  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 sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2014-09-22 19:43
Fromforrest curo
SubjectRe: [Csnd] Re: Unable to map MIDI input with massign
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.'

On Mon, Sep 22, 2014 at 10:16 AM, hlolli <hlolli@gmail.com> wrote:
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>
forrest wrote
> 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;

> hlolli@

> &gt; wrote:
>
>> 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

> sympa@.ac

>  with body "unsubscribe
>> csound"
>>
>>
>>
>>
>
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> To unsubscribe, send email

> sympa@.ac

>  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 sympa@lists.bath.ac.uk with body "unsubscribe csound"