10#ifndef __ACTIONS_TRANSPORT_ACTION_H__
11#define __ACTIONS_TRANSPORT_ACTION_H__
26typedef enum TransportActionType
28 TRANSPORT_ACTION_BPM_CHANGE,
29 TRANSPORT_ACTION_BEATS_PER_BAR_CHANGE,
30 TRANSPORT_ACTION_BEAT_UNIT_CHANGE,
33static const cyaml_strval_t transport_action_type_strings[] = {
34 {
"BPM change", TRANSPORT_ACTION_BPM_CHANGE },
35 {
"beats per bar change", TRANSPORT_ACTION_BEATS_PER_BAR_CHANGE},
36 {
"beat unit change", TRANSPORT_ACTION_BEAT_UNIT_CHANGE },
46 TransportActionType type;
67transport_action_new_bpm_change (
74transport_action_new_time_sig_change (
75 TransportActionType type,
85transport_action_perform_bpm_change (
92transport_action_perform_time_sig_change (
93 TransportActionType type,
bool musical_mode
Whether musical mode was enabled when this action was made.
bool already_done
Flag whether the action was already performed the first time.
Base struct to be inherited by implementing undoable actions.