Zrythm
a highly automated and intuitive digital audio workstation
|
The transport. More...
#include <dsp/transport.h>
Data Fields | |
int | schema_version |
int | total_bars |
Total bars in the song. | |
Position | playhead_pos |
Playhead position. | |
Position | cue_pos |
Cue point position. | |
Position | loop_start_pos |
Loop start position. | |
Position | loop_end_pos |
Loop end position. | |
Position | punch_in_pos |
Punch in position. | |
Position | punch_out_pos |
Punch out position. | |
Position | range_1 |
Selected range. | |
Position | range_2 |
int | has_range |
Whether range should be displayed or not. | |
int | ticks_per_beat |
int | ticks_per_bar |
int | sixteenths_per_beat |
int | sixteenths_per_bar |
nframes_t | position |
Transport position in frames. | |
bool | loop |
Looping or not. | |
bool | punch_mode |
Whether punch in/out mode is enabled. | |
bool | recording |
Whether MIDI/audio recording is enabled (recording toggle in transport bar). | |
bool | metronome_enabled |
Metronome enabled or not. | |
signed_frame_t | preroll_frames_remaining |
Recording preroll frames remaining. | |
signed_frame_t | countin_frames_remaining |
Metronome countin frames remaining. | |
bool | start_playback_on_midi_input |
Whether to start playback on MIDI input. | |
TransportRecordingMode | recording_mode |
ZixSem | paused |
This is set when record is toggled and is used to check if a new region should be created. | |
Position | playhead_before_pause |
Position of the playhead before pausing. | |
Port * | roll |
Roll/play MIDI port. | |
Port * | stop |
Stop MIDI port. | |
Port * | backward |
Backward MIDI port. | |
Port * | forward |
Forward MIDI port. | |
Port * | loop_toggle |
Loop toggle MIDI port. | |
Port * | rec_toggle |
Rec toggle MIDI port. | |
PlayState | play_state |
Play state. | |
gint64 | last_manual_playhead_change |
Last timestamp the playhead position was changed manually. | |
AudioEngine * | audio_engine |
Pointer to owner audio engine, if any. | |
The transport.
Definition at line 191 of file transport.h.
AudioEngine* Transport::audio_engine |
Pointer to owner audio engine, if any.
Definition at line 323 of file transport.h.
Port* Transport::backward |
Backward MIDI port.
Definition at line 304 of file transport.h.
signed_frame_t Transport::countin_frames_remaining |
Metronome countin frames remaining.
Definition at line 263 of file transport.h.
Position Transport::cue_pos |
Cue point position.
Definition at line 202 of file transport.h.
Port* Transport::forward |
Forward MIDI port.
Definition at line 307 of file transport.h.
int Transport::has_range |
Whether range should be displayed or not.
Definition at line 230 of file transport.h.
gint64 Transport::last_manual_playhead_change |
Last timestamp the playhead position was changed manually.
Definition at line 320 of file transport.h.
bool Transport::loop |
Looping or not.
Definition at line 247 of file transport.h.
Position Transport::loop_end_pos |
Loop end position.
Definition at line 208 of file transport.h.
Position Transport::loop_start_pos |
Loop start position.
Definition at line 205 of file transport.h.
Port* Transport::loop_toggle |
Loop toggle MIDI port.
Definition at line 310 of file transport.h.
bool Transport::metronome_enabled |
Metronome enabled or not.
Definition at line 257 of file transport.h.
ZixSem Transport::paused |
This is set when record is toggled and is used to check if a new region should be created.
It should be set to off after the first cycle it is processed in the audio engine post process. Paused signal from process thread.
Definition at line 280 of file transport.h.
PlayState Transport::play_state |
Play state.
Definition at line 316 of file transport.h.
Position Transport::playhead_before_pause |
Position of the playhead before pausing.
Used by UndoableAction.
Definition at line 287 of file transport.h.
Position Transport::playhead_pos |
Playhead position.
Definition at line 199 of file transport.h.
nframes_t Transport::position |
signed_frame_t Transport::preroll_frames_remaining |
Recording preroll frames remaining.
Definition at line 260 of file transport.h.
Position Transport::punch_in_pos |
Punch in position.
Definition at line 211 of file transport.h.
bool Transport::punch_mode |
Whether punch in/out mode is enabled.
Definition at line 250 of file transport.h.
Position Transport::punch_out_pos |
Punch out position.
Definition at line 214 of file transport.h.
Position Transport::range_1 |
Selected range.
This is 2 points instead of start/end because the 2nd point can be dragged past the 1st point so the order gets swapped.
Should be compared each time to see which one is first.
Definition at line 226 of file transport.h.
Position Transport::range_2 |
Definition at line 227 of file transport.h.
Port* Transport::rec_toggle |
Rec toggle MIDI port.
Definition at line 313 of file transport.h.
bool Transport::recording |
Whether MIDI/audio recording is enabled (recording toggle in transport bar).
Definition at line 254 of file transport.h.
TransportRecordingMode Transport::recording_mode |
Definition at line 268 of file transport.h.
Port* Transport::roll |
Roll/play MIDI port.
Any event received on this port will request a roll.
Definition at line 294 of file transport.h.
int Transport::schema_version |
Definition at line 193 of file transport.h.
int Transport::sixteenths_per_bar |
Definition at line 238 of file transport.h.
int Transport::sixteenths_per_beat |
Definition at line 237 of file transport.h.
bool Transport::start_playback_on_midi_input |
Whether to start playback on MIDI input.
Definition at line 266 of file transport.h.
Port* Transport::stop |
Stop MIDI port.
Any event received on this port will request a stop/pause.
Definition at line 301 of file transport.h.
int Transport::ticks_per_bar |
Definition at line 236 of file transport.h.
int Transport::ticks_per_beat |
Definition at line 235 of file transport.h.
int Transport::total_bars |
Total bars in the song.
Definition at line 196 of file transport.h.