[Csnd] Activating instruments with midi
Date | 2010-08-05 17:03 |
From | Lars Indrek Hansson |
Subject | [Csnd] Activating instruments with midi |
Hi everyone, I wonder wether it´s possible to assign one midichannel to several instruments. The massign opcode doesn´t seem to permit this. The manual tells nothing about this possibility and my attempts with one massign opcode for each instrument hasn´t worked so far. Csound only assigns the last one of the massign opcodes. In my case I would like to activate several instruments by only pushing one button on my Korg Nanokontrol and turning them off with the same button in toggle mode. I´ve tried by placing several "turnon" opcodes in one instrument and it works alright but how do I turn all the instruments off exactly at the same time? Seems like it´s easier to turn instruments on in Csound than it is to turn them off! Also one more question: I´ve tried to turn instruments on with the "FLkeyIn" opcode. In those cases the instruments durations have been defined in the instruments themselves and that worked fine. But is there a way to make some kind of toggle-function with this opcode so that the user can define the duration himself? All the best, Lars Indrek Hansson |
Date | 2010-08-05 17:14 |
From | Joel Ross |
Subject | [Csnd] Re: Activating instruments with midi |
This is odd, I was just reading through some threads in the list archives describing this very problem. I think the idea was floated of adding this function to massign, but I don't know if it ever happened. Alternatively it is possible to use the event and kschedwhen opcodes to redirect the midi notes. Regards, -Joel On 5 August 2010 18:03, Lars Indrek Hansson |
Date | 2010-08-05 19:40 |
From | joachim heintz |
Subject | [Csnd] Re: Activating instruments with midi |
hi lars - as you said, you can turn on any number of instruments from the instrument which is triggered by midi, via event_i. because you can get the control cycle where the instrument is turned off, via release, you can turn off the subinstruments. i made an example with negative p3 for switch on, and negative p1 for switch off. it should also work with the turnoff2 opcode. best regards - joachim |
Date | 2010-08-06 00:09 |
From | Victor.Lazzarini@nuim.ie |
Subject | [Csnd] Re: Re: Activating instruments with midi |
Attachments | None None |
Date | 2010-08-06 12:44 |
From | "Dr. Richard Boulanger" |
Subject | [Csnd] Re: Re: Re: Activating instruments with midi |
Dear Lars, Joachim, and Victor, Thanks for this important "request" and for these wonderful, insightful, and brilliant solutions. but These work-arounds are quite advanced and complex.
Wouldn't it be really great - intuitive - simple - obvious - cool - and incredibly useful and practical, if there was a new "massign" opcode (massign2 or mlayer) that let the user layer the MIDI instruments in their orchestra (like one can do on most commercial MIDI workstations, and could do from all the way back to 1995 or so.)
This instrument opcode might have a parameter for the master channel, followed by all the instrument numbers that were controlled/triggered/played from that MIDI channel AND maybe even...
another parameter that would scale the relative velocities of each instrument in the layer (so that once could initialize a rough "global mix" of the layers) ALSO Along these lines, it would be great to see/use a MIDI layering companion to the "ctlinit" opcode, so that, controllers transmitted on one channel from a MasterKeyboard could act as "master controllers" and control multiple instruments (ctllayer or ctlinit2)
Would these opcode additions be possible? They would make a big difference in how one would use, control, and perform with Csound. -dB On Thu, Aug 5, 2010 at 7:09 PM, <Victor.Lazzarini@nuim.ie> wrote: Also, for polyphony, you might want to use fractional p1, so you can turn off the correct notes. |
Date | 2010-08-06 13:03 |
From | joachim heintz |
Subject | [Csnd] Re: Re: Re: Activating instruments with midi |
very nice. so this could be a way to do it with a UDO, and a function table containing the instrument numbers you want to trigger: |
Date | 2010-08-06 13:12 |
From | joachim heintz |
Subject | [Csnd] Re: Re: Re: Re: Activating instruments with midi |
( i was referring to victor's fractional instrument numbers - didn't read richard's mail before) Am 06.08.2010 um 14:03 schrieb joachim heintz: > very nice. so this could be a way to do it with a UDO, and a > function table containing the instrument numbers you want to trigger: > > |
Date | 2010-08-11 04:47 |
From | "Dr. Richard Boulanger" |
Subject | [Csnd] Re: Re: Re: Re: Activating instruments with midi |
Joachim, This MIDI layering UDO is really super. Thanks for developing and sharing it with us. It would be great to have an actual sounding version of this included under either the
"useful" or "miscellaneous" menus in the next release of QuteCsound. Dr. B. On Fri, Aug 6, 2010 at 8:03 AM, joachim heintz <jh@joachimheintz.de> wrote:
|