Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 818 Bytes

README.md

File metadata and controls

42 lines (32 loc) · 818 Bytes

Node Manager Library

Examples

Respond to note on and note off with the default server and default synthdef:

~n = NmlKeys();
~n.midiConnectNoteOn();
~n.midiConnectNoteOff();

Create a mono version of the same setup:

~n = NmlMono();
~n.midiConnectNoteOn();
~n.midiConnectNoteOff();

Respond to note on and note off, plus polytouch, with a selected group and custom synthdef:

~group = Group();
~n = NmlKeys(~group, \customKey);
~n.midiConnectNoteOn();
~n.midiConnectNoteOff();
~n.midiConnectPolytouch();

Use actions to get information about the node event after releasing a node:

~n = NmlKeys();
~n.midiConnectNoteOn();
~n.midiConnectNoteOff();
~n.actionPostRelease.add({
  arg id, node, data;
  ~n.nodeInfo[id].postln;
});