Events module

Contents

Classes

struct ZEvent
A Zrythm event.

Enums

enum EventType { ET_REGION_REMOVED, ET_CHORD_OBJECT_REMOVED, ET_SCALE_OBJECT_REMOVED, ET_MARKER_REMOVED, ET_TRACK_STATE_CHANGED, ET_REGION_CREATED, ET_CHORD_OBJECT_CREATED, ET_SCALE_OBJECT_CREATED, ET_MARKER_CREATED, ET_RULER_STATE_CHANGED, ET_AUTOMATION_TRACK_ADDED, ET_AUTOMATION_TRACK_REMOVED, ET_TIME_SIGNATURE_CHANGED, ET_TRACK_ADDED, ET_TRACK_CHANGED, ET_TRACK_COLOR_CHANGED, ET_TRACK_NAME_CHANGED, ET_LAST_TIMELINE_OBJECT_CHANGED, ET_TRACK_BOT_PANED_VISIBILITY_CHANGED, ET_AUTOMATION_TRACK_CHANGED, ET_CLIP_EDITOR_REGION_CHANGED, ET_CLIP_MARKER_POS_CHANGED, ET_UNDO_REDO_ACTION_DONE, ET_RANGE_SELECTION_CHANGED, ET_TIMELINE_LOOP_MARKER_POS_CHANGED, ET_TIMELINE_SONG_MARKER_POS_CHANGED, ET_RULER_SIZE_CHANGED, ET_MIDI_NOTE_CREATED, ET_MIDI_NOTE_REMOVED, ET_REGION_CHANGED, ET_AUTOMATION_POINT_CHANGED, ET_AUTOMATION_POINT_REMOVED, ET_AUTOMATION_CURVE_REMOVED, ET_CHORD_OBJECT_CHANGED, ET_SCALE_OBJECT_CHANGED, ET_MARKER_CHANGED, ET_MARKER_NAME_CHANGED, ET_ARRANGER_OBJECT_SELECTION_CHANGED, ET_LOOP_TOGGLED, ET_TOOL_CHANGED, ET_TIMELINE_VIEWPORT_CHANGED, ET_PLUGIN_ADDED, ET_PLUGINS_ADDED, ET_PLUGINS_REMOVED, ET_PLUGIN_DELETED, ET_PLAYHEAD_POS_CHANGED, ET_MIDI_NOTE_CHANGED, ET_TL_SELECTIONS_CHANGED, ET_TL_SELECTIONS_CREATED, ET_TL_SELECTIONS_REMOVED, ET_MA_SELECTIONS_CHANGED, ET_TRACKLIST_SELECTIONS_CHANGED, ET_AUTOMATION_VALUE_CHANGED, ET_PLUGIN_VISIBILITY_CHANGED, ET_TRACKS_ADDED, ET_TRACKS_REMOVED, ET_TRACKS_MOVED, ET_CHANNEL_REMOVED, ET_REFRESH_ARRANGER, ET_MIXER_SELECTIONS_CHANGED, ET_CHANNEL_OUTPUT_CHANGED, ET_CHANNEL_SLOTS_CHANGED, ET_DRUM_MODE_CHANGED, ET_MODULATOR_ADDED, ET_RT_SELECTIONS_CHANGED, ET_PINNED_TRACKLIST_SIZE_CHANGED, ET_TRACK_LANES_VISIBILITY_CHANGED, ET_AP_CHANGED, ET_AUTOMATION_POINT_CREATED, ET_AUTOMATION_CURVE_CREATED, ET_TRACK_LANE_ADDED, ET_TRACK_LANE_REMOVED, ET_REGION_POSITIONS_CHANGED, ET_CHORD_OBJECT_POSITIONS_CHANGED, ET_SCALE_OBJECT_POSITIONS_CHANGED, ET_MARKER_POSITIONS_CHANGED, ET_AUTOMATION_POINT_POSITIONS_CHANGED, ET_PIANO_ROLL_HIGHLIGHTING_CHANGED, ET_PIANO_ROLL_MIDI_MODIFIER_CHANGED, ET_TIMELINE_OBJECTS_IN_TRANSIT, ET_AUTOMATION_TRACKLIST_AT_REMOVED, ET_CHORD_OBJECTS_IN_TRANSIT, ET_CHORD_SELECTIONS_CHANGED, ET_AUTOMATION_OBJECTS_IN_TRANSIT, ET_AUTOMATION_SELECTIONS_CHANGED, ET_CHORD_KEY_CHANGED, ET_JACK_TRANSPORT_TYPE_CHANGED, ET_TRACK_VISIBILITY_CHANGED, ET_SELECTING_IN_ARRANGER, ET_TRACKS_RESIZED }

Typedefs

using ZEvent = struct ZEvent
A Zrythm event.

Functions

auto events_init(void) -> GAsyncQueue*
Must be called from a GTK thread.

Defines

#define EVENTS_PUSH(et, _arg)
Push events.
#define EVENTS
The event queue.

Enum documentation

enum EventType

Enumerators
ET_REGION_REMOVED
ET_CHORD_OBJECT_REMOVED
ET_SCALE_OBJECT_REMOVED
ET_MARKER_REMOVED
ET_TRACK_STATE_CHANGED

also for channels

ET_REGION_CREATED
ET_CHORD_OBJECT_CREATED
ET_SCALE_OBJECT_CREATED
ET_MARKER_CREATED
ET_RULER_STATE_CHANGED

works for all rulers

ET_AUTOMATION_TRACK_ADDED
ET_AUTOMATION_TRACK_REMOVED
ET_TIME_SIGNATURE_CHANGED
ET_TRACK_ADDED
ET_TRACK_CHANGED
ET_TRACK_COLOR_CHANGED
ET_TRACK_NAME_CHANGED
ET_LAST_TIMELINE_OBJECT_CHANGED
ET_TRACK_BOT_PANED_VISIBILITY_CHANGED
ET_AUTOMATION_TRACK_CHANGED
ET_CLIP_EDITOR_REGION_CHANGED

Region (clip) to show in the piano roll changed.

Eg., a region in the timeline was clicked.

ET_CLIP_MARKER_POS_CHANGED

Clip marker (clip start, loop start, loop end) position changed.

ET_UNDO_REDO_ACTION_DONE
ET_RANGE_SELECTION_CHANGED
ET_TIMELINE_LOOP_MARKER_POS_CHANGED
ET_TIMELINE_SONG_MARKER_POS_CHANGED
ET_RULER_SIZE_CHANGED
ET_MIDI_NOTE_CREATED
ET_MIDI_NOTE_REMOVED
ET_REGION_CHANGED
ET_AUTOMATION_POINT_CHANGED
ET_AUTOMATION_POINT_REMOVED
ET_AUTOMATION_CURVE_REMOVED
ET_CHORD_OBJECT_CHANGED
ET_SCALE_OBJECT_CHANGED
ET_MARKER_CHANGED
ET_MARKER_NAME_CHANGED
ET_ARRANGER_OBJECT_SELECTION_CHANGED
ET_LOOP_TOGGLED
ET_TOOL_CHANGED

Selected tool (mode) changed.

ET_TIMELINE_VIEWPORT_CHANGED

Zoom level or view area changed.

ET_PLUGIN_ADDED
ET_PLUGINS_ADDED
ET_PLUGINS_REMOVED
ET_PLUGIN_DELETED
ET_PLAYHEAD_POS_CHANGED
ET_MIDI_NOTE_CHANGED

MidiNote changed.

ET_TL_SELECTIONS_CHANGED
ET_TL_SELECTIONS_CREATED
ET_TL_SELECTIONS_REMOVED
ET_MA_SELECTIONS_CHANGED
ET_TRACKLIST_SELECTIONS_CHANGED
ET_AUTOMATION_VALUE_CHANGED
ET_PLUGIN_VISIBILITY_CHANGED

Plugin visibility changed, should close/open UI.

ET_TRACKS_ADDED
ET_TRACKS_REMOVED
ET_TRACKS_MOVED
ET_CHANNEL_REMOVED
ET_REFRESH_ARRANGER
ET_MIXER_SELECTIONS_CHANGED
ET_CHANNEL_OUTPUT_CHANGED
ET_CHANNEL_SLOTS_CHANGED
ET_DRUM_MODE_CHANGED
ET_MODULATOR_ADDED
ET_RT_SELECTIONS_CHANGED
ET_PINNED_TRACKLIST_SIZE_CHANGED
ET_TRACK_LANES_VISIBILITY_CHANGED
ET_AP_CHANGED
ET_AUTOMATION_POINT_CREATED
ET_AUTOMATION_CURVE_CREATED
ET_TRACK_LANE_ADDED
ET_TRACK_LANE_REMOVED
ET_REGION_POSITIONS_CHANGED
ET_CHORD_OBJECT_POSITIONS_CHANGED
ET_SCALE_OBJECT_POSITIONS_CHANGED
ET_MARKER_POSITIONS_CHANGED
ET_AUTOMATION_POINT_POSITIONS_CHANGED
ET_PIANO_ROLL_HIGHLIGHTING_CHANGED
ET_PIANO_ROLL_MIDI_MODIFIER_CHANGED
ET_TIMELINE_OBJECTS_IN_TRANSIT
ET_AUTOMATION_TRACKLIST_AT_REMOVED
ET_CHORD_OBJECTS_IN_TRANSIT
ET_CHORD_SELECTIONS_CHANGED
ET_AUTOMATION_OBJECTS_IN_TRANSIT
ET_AUTOMATION_SELECTIONS_CHANGED
ET_CHORD_KEY_CHANGED
ET_JACK_TRANSPORT_TYPE_CHANGED
ET_TRACK_VISIBILITY_CHANGED
ET_SELECTING_IN_ARRANGER
ET_TRACKS_RESIZED

Define documentation

#define EVENTS_PUSH(et, _arg)

Push events.

Note: not real-time safe.