Transport struct

The transport.

Contents

Public variables

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 start_marker_pos
Start marker position.
Position end_marker_pos
End marker position.
int beats_per_bar
The top part (beats_per_par) is the number of beat units (the bottom part) there will be per bar.
int beat_unit
bottom part of time signature, power of 2
uint32_t position
Transport position in frames.
float bpm
Transport tempo in beats per minute.
int rolling
Transport speed (0=stop, 1=play)
int loop
Looping or not.
int recording
Recording or not.
int metronome_enabled
Metronome enabled or not.
ZixSem paused
This is set when record is toggled and is used to check if a new region should be created.
Play_State play_state
play state

Variable documentation

Position Transport::start_marker_pos

Start marker position.

This is where the song starts. Used when exporting, etc.

Position Transport::end_marker_pos

End marker position.

This is where the song ends. Used when exporting, etc.

int Transport::beats_per_bar

The top part (beats_per_par) is the number of beat units (the bottom part) there will be per bar.

Example: 4/4 = 4 (top) 1/4th (bot) notes per bar. 2/8 = 2 (top) 1/8th (bot) notes per bar.top part of time signature

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 in the audio engine post process.Paused signal from process thread