SuperCollider Forum
May 19, 2013, 11:06:03 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: The SuperCollider forum is currently experiencing a rash of spambot registrations. New user requests may not be approved quickly as a result -- and if your email address looks like spam, it might not be approved at all. We are working to improve the security of the registration process, and to provide alternate means to contact the administrators to get a new account. Thanks for your patience.
 
   Home   Help Search Calendar Login Register  
Pages: [1]
  Print  
Author Topic: general midi question  (Read 3243 times)
0 Members and 1 Guest are viewing this topic.
linked_void
Newbie
*

Karma: 0
Posts: 7


View Profile
« on: July 31, 2006, 01:16:06 PM »

what class or classes have you used for interacting with an external midi controller (in my case an oxygen)?
Logged
dewdrop_world
AdminGroup
Full Member
*

Karma: 9
Posts: 193



View Profile WWW
« Reply #1 on: August 02, 2006, 09:02:54 AM »

The standard way is to use the MIDIResponder classes:

NoteOnResponder
NoteOffResponder
CCResponder

... are the most commonly used. See the MIDIResponder helpfile.

But, if you download my library from http://www.dewdrop-world.net/sc3 there are some more convenient ways. You can modify CCAllocator in my lib to contain the controller types and controller numbers for your interface so that you can request a controller of a certain type and get a valid cc number. I can post an example tonight.

To play notes on the keyboard, Voicer and VoicerMIDISocket in my lib are the easiest way. Noteon/noteoff require some bookkeeping behind the scenes, which Voicer handles transparently.

SynthDef(\somenoise, { ... }).send(s);
v = Voicer(20, \somenoise, args: [... override arg defaults, optional ...], bus: optional_output_bus, target: optional_server_group or MixerChannel);
k = VoicerMIDISocket(midi_channel, v);

You can map midi controllers onto parameters using k.addControl (see the helpfile).

hjh
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!