dawdreamer.FaustProcessor¶
- class dawdreamer.FaustProcessor¶
A Faust Processor can compile and execute FAUST code. See https://faust.grame.fr for more information.
- __init__(*args, **kwargs)¶
Methods
__init__(*args, **kwargs)add_midi_note(self, note, velocity, ...[, beats])Add a single MIDI note whose note and velocity are integers between 0 and 127.
clear_midi(self)Remove all MIDI notes.
compile(self)Compile the FAUST object.
compile_box(self, box[, argv])compile_signals(self, signals[, argv])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).
get_parameter(*args, **kwargs)Overloaded function.
get_parameters_description(self)Get a list of dictionaries describing the parameters of the most recently compiled FAUST code.
load_midi(self, filepath, *[, ...])Load MIDI from a file.
save_midi(self, filepath)After rendering, you can save the MIDI to a file using absolute times (SMPTE format).
set_automation(self, parameter_name, data, *)Set a parameter's automation with a numpy array.
set_dsp(self, filepath)Set the FAUST box process with a file.
set_dsp_string(self, faust_code)Set the FAUST box process with a string containing FAUST code.
set_parameter(*args, **kwargs)Overloaded function.
set_soundfiles(self, soundfile_dict)Set the audio data that the FaustProcessor can use with the soundfile primitive.
Attributes
auto_importThe auto import string.
codeGet the most recently compiled Faust DSP code.
compile_flagsList of compilation flags.
compiledDid the most recent DSP code compile?
dynamic_voicesIf enabled (default), voices are dynamically enabled and disabled to save computation.
faust_assets_pathAbsolute path to directory containing audio files to be used by Faust.
faust_assets_pathsList of absolute paths to directories containing audio files to be used by Faust.
faust_libraries_pathAbsolute path to directory containing your custom ".lib" files containing Faust code.
faust_libraries_pathsList of absolute paths to directories containing your custom ".lib" files containing Faust code.
group_voicesIf grouped, all polyphonic voices will share the same parameters.
n_midi_eventsThe number of MIDI events stored in the buffer.
num_voicesThe number of voices for polyphony.
opt_levelLLVM IR to IR optimization level (from -1 to 4, -1 means 'maximum possible value' * since the maximum value may change with new LLVM versions)
recordWhether recording of this processor is enabled.
record_automationWhether recording of this processor's automation is enabled.
release_lengthIf using polyphony, specifying the release length accurately can help avoid warnings about voices being stolen.