Skip to content

Conversions

Module-level functions that turn Live content from one form into another — audio clips into MIDI, audio clips into a Drum Rack, drum pads into a new MIDI track, and audio clips into Simpler-backed MIDI tracks.

harmony_to_midi0
melody_to_midi1
drums_to_midi2
  • song: Song
  • audio_clip: Clip
  • audio_to_midi_type: AudioToMidiType | intProbed asinthigh confidence
    • schema applied per the enum-arg convention (see schema header).
    • sister method AudioToMidiType enum lives in the same module; the arg name audio_to_midi_type is the direct snake-case of the enum class name.

Creates a MIDI clip in a new MIDI track with the notes extracted from the given audio_clip. The audio_to_midi_type decides which algorithm is used in the process. Raises error when called with an inconvertible clip or invalid audio_to_midi_type. From Live’s runtime docstring.

Creates a new track with a drum rack with a simpler on the first pad with the specified audio clip. From Live’s runtime docstring.

Creates a new Midi track containing the specified Drum Pad’s device chain. From Live’s runtime docstring.

Creates a new Midi track with a simpler including the specified audio clip. From Live’s runtime docstring.

Returns
bool

Returns whether audio_clip can be converted to MIDI. Raises error when called with a MIDI clip From Live’s runtime docstring.

move_devices_on_track_to_new_drum_rack_pad()

Section titled “move_devices_on_track_to_new_drum_rack_pad()”
  • song: Song
  • track_index: int
Returns
DrumPad | NoneProbed asLomObjecthigh confidence
  • M4L docs list the return as DrumPad / None. The function moves devices INTO a drum rack pad and returns that pad; the None half of the union covers the no-op path that the M4L doc names.

Moves the entire device chain of the track according to the track index onto the C1 (note 36) drum pad of a new drum rack in a new track.If the track associated with the track index does not contain any devices nothing changes (i.e. a new track and new drum rack are not created). From Live’s runtime docstring.

Converts the Simpler into a Drum Rack, assigning each slice to a drum pad. Calling it on a non-sliced simpler raises an error. From Live’s runtime docstring.

This is an independent reference site. Not affiliated with, endorsed by, or sponsored by Ableton AG. “Ableton”, “Live”, “Push”, and related marks are trademarks of Ableton AG.