MusicKit  0.0.0
MKPartRecorder Class Reference

A MKPartRecorder is an MKInstrument that realizes MKNotes by adding copies of them to a MKPart. More...

#include <MKPartRecorder.h>


Detailed Description

A MKPartRecorder is an MKInstrument that realizes MKNotes by adding copies of them to a MKPart.

A MKPartRecorder's MKPart is set through the setPart: method. If the MKPart already contains MKNotes, the old MKNotes aren't removed or otherwise affected by recording into the MKPart - the recorded MKNotes are merged in.

Each MKPartRecorder contains a single MKNoteReceiver object. During a performance, a MKPartPerformer receives MKNotes from its MKNoteReceiver, copies them, and then adds them to its MKPart object. Each MKNote is given a new (but not necessarily different) timeTag; if the MKNote is a noteDur, it's also given a new duration. The timeTag and duration are computed either as beats or as seconds, depending on the value of the timeUnit instance variable. If timeUnit is set to MK_second, the default, the new values are in seconds from the beginning of the performance. If it's set to MK_beat, they're computed as beats. If it's set to MK_timeTag, the new values are derived from the timeTag value in the MKNote itself. For example, when recording from MKMidi, you may want to use MK_timeTag.

You can create MKPartRecorders yourself, or you can use a MKScoreRecorder object to create a group of them for you.

See also:
MKScoreRecorder, MKPart

The documentation for this class was generated from the following file: