SuperCollider (extension)

KeyLoop

an EventLoop for recording KeyPlayer actions

Description

KeyLoop inherits almost everything from EventLoop, so please read general info there.

(
k = KeyPlayer(\rd);
"qwertzuiopasdfghjklyxcvbnm".do { |char|
    var note = (midinote: rrand(36, 96), dur: rrand(0.1, 1.0));
    k.put(char, { |char| char.postln; note.postln.play });
};
)
    // make a big gui for it - see KeyPlayerGui.help
g = KeyPlayerGui(k);



l = EventLoopGui();

// type

Class Methods

*keyPlayerFunc

make a function appropriate for attaching to a KeyPlayer

Instance Methods

-actionDict

a dictionary of actions to perform when using defaultFunc

-defaultFunc

default function for lookup in actionDict

-recordEvent

record an event into a KeyLoop, by

Arguments:

key

a char or uniCode key number

type

'up' or 'down'