Conversions (Module)¶
Enums¶
AudioToMidiType¶
Live.Conversions.AudioToMidiType
| Value | Name |
|---|---|
0 |
harmony_to_midi |
1 |
melody_to_midi |
2 |
drums_to_midi |
Module Functions¶
| Function | Returns |
|---|---|
audio_to_midi_clip() |
None |
create_drum_rack_from_audio_clip() |
None |
create_midi_track_from_drum_pad() |
None |
create_midi_track_with_simpler() |
None |
is_convertible_to_midi() |
bool |
move_devices_on_track_to_new_drum_rack_pad() |
Track |
sliced_simpler_to_drum_rack() |
None |
audio_to_midi_clip(song: Song, audio_clip: Clip, audio_to_midi_type: int)¶
- Returns:
None - Args:
song: Songaudio_clip: Clipaudio_to_midi_type: int
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.
create_drum_rack_from_audio_clip(song: Song, audio_clip: Clip)¶
- Returns:
None - Args:
song: Songaudio_clip: Clip
Creates a new track with a drum rack with a simpler on the first pad with the specified audio clip.
create_midi_track_from_drum_pad(song: Song, drum_pad: DrumPad)¶
- Returns:
None - Args:
song: Songdrum_pad: DrumPad
Creates a new Midi track containing the specified Drum Pad's device chain.
create_midi_track_with_simpler(song: Song, audio_clip: Clip)¶
- Returns:
None - Args:
song: Songaudio_clip: Clip
Creates a new Midi track with a simpler including the specified audio clip.
is_convertible_to_midi(song: Song, audio_clip: Clip)¶
- Returns:
bool - Args:
song: Songaudio_clip: Clip
Returns whether audio_clip can be converted to MIDI. Raises error when called with a MIDI clip
move_devices_on_track_to_new_drum_rack_pad(song: Song, track_index: int)¶
- Returns:
Track - Args:
song: Songtrack_index: int
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).
sliced_simpler_to_drum_rack(song: Song, simpler: SimplerDevice)¶
- Returns:
None - Args:
song: Songsimpler: SimplerDevice
Converts the Simpler into a Drum Rack, assigning each slice to a drum pad. Calling it on a non-sliced simpler raises an error.