Recorder
constructor.
An optional BasePlayerCallback, specifies an object that contains run() and stop() methods to invode during playback.
Whether to play a click track while recording. If the recorder is already recording, changes will not take place until it is restarted.
True if it should play a click track.
Whether to play a count in at the beginning of the recording. If the recorder is already recording, changes will not take place until it is restarted.
True if it should play a count in.
Returns a list of all the MIDI inputs that are currently available to record.
a non-quantized NoteSequence
containing all the currently
recorded notes.
Initializes the Recorder
by requesting MIDI access from the browser,
and connecting to any available MIDI inputs. If MIDI events are emitted,
they will be ignored until start()
is called.
Resets the notes
array to an empty array and stops the recording.
a non-quantized NoteSequence
containing all the recorded notes.
Changes the tempo of the click loop.
The new qpm to use.
Starts listening to MIDI events and records any messages received.
An optional list of MIDIInputs, that specifies which inputs to start listening to MIDI messages for to record. If not specified, all available inputs will be used.
Stops listening to MIDI events. Note that all the MIDI inputs will still be connected after calling this method, but any messages received from them will be ignored.
a NoteSequence
containing all the recorded notes.
Generated using TypeDoc
Class that records MIDI from any MIDI connected instrument, and converts it to a
NoteSequence
.