[Csnd] Dynamically turnon/turnoff
Date | 2012-12-15 05:54 |
From | William Wignall |
Subject | [Csnd] Dynamically turnon/turnoff |
Dear List- I'd like to know if it's possible to dynamically turn instruments on and off with MIDI or a string (from MaxMSP for instance). I suppose this would be using the turnon/off opcodes? There's really nothing about this in the manual however... Can anyone shed any light on this? Thanks, Trev |
Date | 2012-12-15 06:38 |
From | Jim Aikin |
Subject | [Csnd] Re: Dynamically turnon/turnoff |
It's certainly possible -- in fact, dead easy -- to start notes in Csound in response to MIDI note-on messages. In fact, it's hard to prevent. I have no trouble doing this in CsoundQt, using a very simple test file. You don't need turnon and turnoff, just create an instrument numbered 1 and then play the keyboard. The real situation in Csound, as I learned this week, is even simpler than this, yet more confusing. If you've defined only a single instrument, it doesn't matter what number you give it. It will respond in MIDI omni mode no matter what channel the note messages are received on. To assign different instruments to different MIDI channels, use massign in the global instruments area. If you want more details on this, let me know. However, at the moment I'm not having any luck making it work (in Windows) using blue. In the Options box, I've set both the Realtime Render Devices field to use my MIDI keyboard, and also activated it in the MIDI tab. (I don't know why there are two places to do this.) But a similar test file yields no audio output in response to MIDI notes from my keyboard. Steven will have to weigh in on this topic. But he'll want to know, Trev: Which OS are you running? And which version of blue? -- View this message in context: http://csound.1045644.n5.nabble.com/Dynamically-turnon-turnoff-tp5718796p5718797.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2012-12-15 07:30 |
From | Jim Aikin |
Subject | [Csnd] Re: Dynamically turnon/turnoff |
Sorry -- I thought your message was in the blue sub-forum. My bad. The basic question remains: What OS are you using? Are you using a front end, or running Csound from the command line? Or perhaps using the Csound API object inside of Max? -- View this message in context: http://csound.1045644.n5.nabble.com/Dynamically-turnon-turnoff-tp5718796p5718798.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2012-12-15 11:33 |
From | joachim heintz |
Subject | Re: [Csnd] Dynamically turnon/turnoff |
hi trev - do you mean via the csound~ object in maxmsp? then it is simply sending an "event i" message (described in the csound~ help). joachim Am 15.12.2012 06:54, schrieb William Wignall: > Dear List- > > I'd like to know if it's possible to dynamically turn instruments on and > off with MIDI or a string (from MaxMSP for instance). I suppose this > would be using the turnon/off opcodes? There's really nothing about this > in the manual however... Can anyone shed any light on this? > > Thanks, > Trev |
Date | 2012-12-16 05:50 |
From | William Wignall |
Subject | Re: [Csnd] Dynamically turnon/turnoff |
OK Joachim - I think that might be what I'm after. Thanks! Trev On Sat, Dec 15, 2012 at 6:33 AM, joachim heintz <jh@joachimheintz.de> wrote: hi trev - |