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
make a function appropriate for attaching to a KeyPlayer
a dictionary of actions to perform when using defaultFunc
default function for lookup in actionDict
record an event into a KeyLoop, by
| key |
a char or uniCode key number |
| type |
'up' or 'down' |