Top |
#define | AGS_MIDI_GET_OBJ_MUTEX() |
GRecMutex * | ags_midi_get_obj_mutex () |
gboolean | ags_midi_test_flags () |
void | ags_midi_set_flags () |
void | ags_midi_unset_flags () |
GList * | ags_midi_find_near_timestamp () |
gint | ags_midi_sort_func () |
GObject * | ags_midi_get_audio () |
void | ags_midi_set_audio () |
guint | ags_midi_get_audio_channel () |
void | ags_midi_set_audio_channel () |
AgsTimestamp * | ags_midi_get_timestamp () |
void | ags_midi_set_timestamp () |
GList * | ags_midi_get_track () |
void | ags_midi_set_track () |
GList * | ags_midi_add () |
void | ags_midi_add_track () |
void | ags_midi_remove_track () |
AgsMidi * | ags_midi_new () |
AgsAudio * | audio | Read / Write |
guint | audio-channel | Read / Write |
AgsTimestamp * | timestamp | Read / Write |
gpointer | track | Read / Write |
#define | AGS_MIDI_DEFAULT_BPM |
#define | AGS_MIDI_TICS_PER_BEAT |
#define | AGS_MIDI_MINIMUM_TRACK_LENGTH |
#define | AGS_MIDI_DEFAULT_LENGTH |
#define | AGS_MIDI_DEFAULT_JIFFIE |
#define | AGS_MIDI_DEFAULT_DURATION |
#define | AGS_MIDI_DEFAULT_OFFSET |
#define | AGS_MIDI_CLIPBOARD_VERSION |
#define | AGS_MIDI_CLIPBOARD_TYPE |
#define | AGS_MIDI_CLIPBOARD_FORMAT |
enum | AgsMidiFlags |
GRecMutex *
ags_midi_get_obj_mutex (AgsMidi *midi
);
Get object mutex.
Since: 3.1.0
gboolean ags_midi_test_flags (AgsMidi *midi
,AgsMidiFlags flags
);
Test flags
to be set on midi
.
Since: 3.0.0
void ags_midi_set_flags (AgsMidi *midi
,AgsMidiFlags flags
);
Set flags
on midi
.
Since: 3.0.0
void ags_midi_unset_flags (AgsMidi *midi
,AgsMidiFlags flags
);
Unset flags
on midi
.
Since: 3.0.0
GList * ags_midi_find_near_timestamp (GList *midi
,guint audio_channel
,AgsTimestamp *timestamp
);
Retrieve appropriate midi for timestamp.
midi |
the GList containing AgsMidi. |
[element-type AgsAudio.Midi][transfer none] |
audio_channel |
the matching audio channel |
|
timestamp |
the matching timestamp, or |
[allow-none] |
Since: 3.0.0
gint ags_midi_sort_func (gconstpointer a
,gconstpointer b
);
Compare a
and b
.
Since: 3.0.0
void ags_midi_set_audio (AgsMidi *midi
,GObject *audio
);
Set audio.
Since: 3.1.0
guint
ags_midi_get_audio_channel (AgsMidi *midi
);
Gets audio channel.
Since: 3.1.0
void ags_midi_set_audio_channel (AgsMidi *midi
,guint audio_channel
);
Sets audio channel.
Since: 3.1.0
AgsTimestamp *
ags_midi_get_timestamp (AgsMidi *midi
);
Get timestamp.
Since: 3.1.0
void ags_midi_set_timestamp (AgsMidi *midi
,AgsTimestamp *timestamp
);
Set timestamp.
Since: 3.1.0
void ags_midi_set_track (AgsMidi *midi
,GList *track
);
Set track by replacing existing.
Since: 3.1.0
GList * ags_midi_add (GList *midi
,AgsMidi *new_midi
);
Add new_midi
sorted to midi
midi |
the GList containing AgsMidi. |
[element-type AgsAudio.Midi][transfer none] |
new_midi |
the midi to add |
Since: 3.0.0
void ags_midi_add_track (AgsMidi *midi
,AgsTrack *track
,gboolean use_selection_list
);
Adds a track to midi.
Since: 3.0.0
void ags_midi_remove_track (AgsMidi *midi
,AgsTrack *track
,gboolean use_selection_list
);
Removes a track from midi.
Since: 3.0.0
#define AGS_MIDI_DEFAULT_LENGTH (65535.0 / AGS_MIDI_TICS_PER_BEAT - AGS_MIDI_MINIMUM_TRACK_LENGTH)
#define AGS_MIDI_DEFAULT_JIFFIE (60.0 / AGS_MIDI_DEFAULT_BPM / AGS_MIDI_TICS_PER_BEAT)
#define AGS_MIDI_DEFAULT_DURATION (AGS_MIDI_DEFAULT_LENGTH * AGS_MIDI_DEFAULT_JIFFIE * AGS_USEC_PER_SEC)
Enum values to control the behavior or indicate internal state of AgsMidi by enable/disable as flags.
“audio”
property“audio” AgsAudio *
The assigned AgsAudio
Owner: AgsMidi
Flags: Read / Write
Since: 3.0.0
“audio-channel”
property “audio-channel” guint
The midi's audio-channel.
Owner: AgsMidi
Flags: Read / Write
Default value: 0
Since: 3.0.0
“timestamp”
property “timestamp” AgsTimestamp *
The midi's timestamp.
Owner: AgsMidi
Flags: Read / Write
Since: 3.0.0
“track”
property “track” gpointer
The assigned AgsTrack
[transfer full]
Owner: AgsMidi
Flags: Read / Write
Since: 3.0.0