dawdreamer.PlaybackWarpProcessor

class dawdreamer.PlaybackWarpProcessor

The Playback Warp Processor can play audio data while time-stretching and pitch-shifting it thanks to the Rubberband library (https://github.com/breakfastquay/rubberband). This processor can load Ableton Live “.asd” files to do beat-matching.

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

get_audio(self)

Get the audio data of the processor after a render, assuming recording was enabled.

get_automation(*args, **kwargs)

Overloaded function.

get_name(self)

Get the user-defined name of a processor instance.

get_num_input_channels(self)

Get the total number of input channels (2 indicates stereo input).

get_num_output_channels(self)

Get the total number of output channels (2 indicates stereo output).

reset_options(self)

Set Rubber Band's stretcher's options to DawDreamer's default.

reset_warp_markers(self, bpm)

Reset the warp markers with a BPM.

set_automation(self, parameter_name, data, *)

Set a parameter's automation with a numpy array.

set_clip_file(self, asd_file_path)

Load an Ableton Live file with an ".asd" extension

set_clip_positions(self, clip_positions)

Set one or more positions at which the clip should play.

set_data(self, data, *[, sr])

Set the audio as a numpy array shaped (Channels, Samples) with an optional sr kwarg for the sample rate of the data.

set_options(self, config)

Config Rubber Band's stretcher with an enum option.

Attributes

end_marker

The end position in beats (typically quarter notes) relative to 1.1.1

loop_end

The loop end position in beats (typically quarter notes) relative to 1.1.1

loop_on

Whether looping is enabled

loop_start

The loop start position in beats (typically quarter notes) relative to 1.1.1

record

Whether recording of this processor is enabled.

record_automation

Whether recording of this processor's automation is enabled.

start_marker

The start position in beats (typically quarter notes) relative to 1.1.1

time_ratio

The time ratio has an effect if an Ableton ASD file hasn't been loaded or if warp_on is false.

transpose

The pitch transposition in semitones

warp_markers

Get/set the warp markers as an (N, 2) numpy array of time positions in samples and positions in beats.

warp_on

Whether warping is enabled.