MBM(int) -- MIDIBufManager -- prNew 


Recording, storage and recall of note data from a MIDI device. This is a heavy object so you should not create more of them than you absolutely need.


You must initialize the MIDIBufManager explicitly before use:


MIDIBufManager(clock, chan, ccnum) => MBM.prNew(0);


MIDI data are held in MIDIRecBuf objects. To store it in the buffer manager, just chuck it.


aMIDIRecBuf => MBM(0);


Short form for indexing MIDIRecBufs stored within:

MBM(0)[0]

MBM(0)[\name]: outputs the first MIDIRecBuf named 'name' in the buf manager. If you have duplicate names, only the first one sharing the name can be retrieved this way.


To begin recording new MIDI data programmatically, chuck the placeholder object MRS into the MBM. The MRS supplies the name of the new buffer.


MRS(\newTune) => MBM(0);

// play MIDI notes on keyboard -- use the MIDI channel specified when creating the MIDIBufManager

MBM(0).stopRecord;


MBM(0)[\newTune].dumpSeq;