|
Zrythm v2.0.0-alpha.1
a highly automated and intuitive digital audio workstation
|
Bridges hardware MIDI input into the DSP graph as a MidiPort output. More...
#include <src/dsp/midi_input_processor.h>


Public Member Functions | |
| MidiInputProcessor (std::shared_ptr< dsp::MidiDeviceBuffer > buffer, utils::IObjectRegistry ®istry, QObject *parent=nullptr) | |
| void | custom_prepare_for_processing (const dsp::graph::GraphNode *node, units::sample_rate_t sample_rate, units::sample_u32_t max_block_length) override |
| void | custom_process_block (dsp::graph::ProcessBlockInfo time_nfo, const dsp::ITransport &transport, const dsp::TempoMap &tempo_map) noexcept override |
| Custom processor logic after processing all owned parameters. | |
| dsp::MidiPort & | get_output_port () const noexcept |
| void | set_block_start_time (units::precise_second_t time) |
| Public Member Functions inherited from zrythm::dsp::ProcessorBase | |
| ProcessorBase (utils::IObjectRegistry ®istry, utils::Utf8String name={ u8"ProcessorBase" }) | |
| void | set_name (const utils::Utf8String &name) |
| Set a custom name to be used in the DSP graph. | |
| void | add_input_port (const dsp::PortUuidReference &uuid) |
| void | add_output_port (const dsp::PortUuidReference &uuid) |
| void | add_parameter (const dsp::ProcessorParameterUuidReference &uuid) |
| auto & | get_input_ports () const |
| auto & | get_output_ports () const |
| auto & | get_parameters () const |
| const ParameterChangeTracker & | change_tracker () const noexcept |
| Returns the change tracker. | |
| utils::Utf8String | get_node_name () const final |
| Returns a human friendly name of the node. | |
| void | process_block (dsp::graph::ProcessBlockInfo time_nfo, const dsp::ITransport &transport, const dsp::TempoMap &tempo_map) noexcept final |
| Calls custom_process_block() internally after processing all the parameters. | |
| void | prepare_for_processing (const graph::GraphNode *node, units::sample_rate_t sample_rate, units::sample_u32_t max_block_length) final |
| Called to allocate resources required for processing. | |
| void | release_resources () final |
| Called to release resources allocated by prepare_for_processing(). | |
| Public Member Functions inherited from zrythm::dsp::graph::IProcessable | |
| virtual units::sample_u32_t | get_single_playback_latency () const |
| Returns the latency of only the given processable, without adding the previous/next latencies (zero latency by default). | |
Additional Inherited Members | |
| Protected Member Functions inherited from zrythm::dsp::ProcessorBase | |
| virtual void | custom_release_resources () |
| auto | registry () const -> utils::IObjectRegistry & |
Bridges hardware MIDI input into the DSP graph as a MidiPort output.
During processing, drains events from a MidiDeviceBuffer into the output MidiPort's queued events buffer.
Definition at line 24 of file midi_input_processor.h.
|
overridevirtual |
Reimplemented from zrythm::dsp::ProcessorBase.
|
overridevirtualnoexcept |
Custom processor logic after processing all owned parameters.
By default, this does passthrough to same-type ports.
Reimplemented from zrythm::dsp::ProcessorBase.