|
Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
CV port specifics. More...
#include <src/gui/dsp/cv_port.h>


Public Member Functions | |
| CVPort (utils::Utf8String label, PortFlow flow) | |
| bool | has_sound () const override |
| If MIDI port, returns if there are any events, if audio port, returns if there is sound in the buffer. | |
| void | process_block (EngineProcessTimeInfo time_nfo) override |
| void | clear_buffer (std::size_t block_length) override |
| Clears the port buffer. | |
| Public Member Functions inherited from Port | |
| void | init_loaded (IPortOwner &owner) |
| This function finds the Ports corresponding to the PortIdentifiers for srcs and dests. | |
| void | set_owner (IPortOwner &owner) |
| utils::Utf8String | get_label () const |
| bool | is_control () const |
| bool | is_audio () const |
| bool | is_cv () const |
| bool | is_event () const |
| bool | is_midi () const |
| bool | is_input () const |
| bool | is_output () const |
| utils::Utf8String | get_node_name () const override |
| Returns a human friendly name of the node. | |
| nframes_t | get_single_playback_latency () const override |
| Ports have no latency. | |
| utils::Utf8String | get_full_designation () const |
| Gets a full designation of the port in the format "Track/Port" or "Track/Plugin/Port". | |
| void | change_track (IPortOwner::TrackUuid new_track_id) |
| Updates the owner track identifier. | |
| bool | has_label () const |
| PortType | get_type () const |
| PortFlow | get_flow () const |
| Public Member Functions inherited from zrythm::utils::UuidIdentifiableObject< Port > | |
| UuidIdentifiableObject & | operator= (const UuidIdentifiableObject &other)=default |
| auto | get_uuid () const |
| Public Member Functions inherited from AudioAndCVPortMixin | |
| void | prepare_for_processing (sample_rate_t sample_rate, nframes_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(). | |
Friends | |
| void | init_from (CVPort &obj, const CVPort &other, utils::ObjectCloneType clone_type) |
| void | to_json (nlohmann::json &j, const CVPort &p) |
| void | from_json (const nlohmann::json &j, CVPort &p) |
Additional Inherited Members | |
| Public Types inherited from Port | |
| using | PortIdentifier = dsp::PortIdentifier |
| using | PortType = dsp::PortType |
| using | PortFlow = dsp::PortFlow |
| using | PortConnection = dsp::PortConnection |
| Data Fields inherited from Port | |
| std::unique_ptr< PortIdentifier > | id_ |
| Owned pointer. | |
| IPortOwner * | owner_ {} |
| PortRange | range_ |
| Data Fields inherited from AudioAndCVPortMixin | |
| std::vector< float > | buf_ |
| Audio-like data buffer. | |
| std::unique_ptr< RingBuffer< float > > | audio_ring_ |
| Ring buffer for saving the contents of the audio buffer to be used in the UI instead of directly accessing the buffer. | |
| Data Fields inherited from RingBufferOwningPortMixin | |
| std::atomic< int > | num_ring_buffer_readers_ { 0 } |
| Number of entities that want ring buffers to be written. | |
| Data Fields inherited from PortConnectionsCacheMixin< CVPort > | |
| std::vector< ElementType > | port_sources_ |
| Caches filled when recalculating the graph. | |
| Protected Member Functions inherited from Port | |
| Port (utils::Utf8String label, PortType type={}, PortFlow flow={}, float minf=0.f, float maxf=1.f, float zerof=0.f) | |
|
overridevirtual |
Clears the port buffer.
Implements Port.
|
overridevirtual |
If MIDI port, returns if there are any events, if audio port, returns if there is sound in the buffer.
Reimplemented from Port.
|
overridevirtual |
Reimplemented from zrythm::dsp::graph::IProcessable.
|
friend |
|
friend |