OptionalalignMeasure the MIDI-to-audio offset from the take's own notes and store it as
take.alignment (default: true). Skipped when no MIDI was recorded.
OptionalaudioMicrophone to use; omit for the browser's default
OptionalcaptureRecord MIDI as well as audio when the browser supports it (default: true)
OptionalmaxStop the take on its own once it has run this long, as though stop()
had been called (default: no limit). A take holds every sample it has
captured until it ends — about 11 MB a minute for one channel at
48 kHz, and as much again to build the take — so one left running fills
memory until the browser refuses it.
OptionalmidiRecord from this MIDI input only; omit to record from every connected input
OptionalnotesFree-text notes stored with the take, e.g. which mistakes were intentional
OptionalonCalled with every captured audio chunk as it arrives, for live analysis (see useLivePerformance)
OptionalonCalled for microphone, MIDI, and audio-context failures
OptionalonCalled with every MIDI event as it arrives, for live analysis
OptionalonCalled once capture is running, with the take's clock
OptionalonCalled with the finished take after stop()
OptionalprofileHow the microphone is opened (default: 'instrument' — unprocessed audio)
OptionalscoreThe score the take is performed against, stored with the take
Options for
useTakeRecorder.