[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] new list member - with a ribbon controller



Ugh... don't use the waitNoteOn, waitBend techniques. They are known
to choke on rapidly incoming messages (some MIDI messages get
dropped).

Use the crucial MIDIResponder classes instead. Use NoteOnResponder,
NoteOffResponder, BendResponder and CCResponder (also there is
TouchResponder for mono aftertouch if you need that too).

We should probably take the wait... examples out of help. They might
be OK for certain controlled environments but I don't trust them.

hjh


On 10/23/07, Tibor Páli <tpali@xxxxxx> wrote:
> Hi Till,
>
> On 23 Oct 2007, at 15:18, Till Bovermann wrote:
>
> > I would be interested in your approach...
> > The MIDI implementation of the ribbon-ctl-er seems to be good
> > (looked at it from far since O don't have that ribbon here... )
>
> The main weakness is that the pressure sensor can not be converted to
> velocity. The device uses a constant velocity (127) whatever yuo do.
> I looked at some example code. I am looking at
>
> ----
>         loop {
>                 event = MIDIIn.waitNoteOn;      // all note-on events
>                 [event.b,event.c].postln;
>                         // play the note
>         }
> ----
>
> Here
>
> event = MIDIIn.waitNoteOn;
> [event.b,event.c].postln;
>
> works and prints out the note number (event.b) and velocity (event.c)
> (which is constant at 127). However, I need the pitch bend data
> because I want continuous pitch rather than fixed notes (in one mode
> the R2M sends fixed note and high res pitch bend). Unfortunately
>
> event_bend = MIDIIn.waitBend;
> [event_bend.b,event_bend.c].postln;
>
> or
>
> event_bend.postln;
>
> does not print anything.
>
>
> how do I refer to the pitch bend number from event_bend or get it
> inot a variable??? The same question applies to MIDIIn.waitTouch .
>
> I could not find the documentation for this.

-- 
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman