Top |
gpointer | change-channel-pressure | Run Last |
gpointer | change-parameter | Run Last |
gpointer | change-pitch-bend | Run Last |
gpointer | change-program | Run Last |
gpointer | end-of-track | Run Last |
gpointer | key-off | Run Last |
gpointer | key-on | Run Last |
gpointer | key-pressure | Run Last |
gpointer | key-signature | Run Last |
gpointer | meta-event | Run Last |
gpointer | meta-misc | Run Last |
gpointer | midi-channel-prefix | Run Last |
int | midi-getc | Run Last |
gpointer | not-defined | Run Last |
void | on-error | Run Last |
gpointer | parse-bytes | Run Last |
gpointer | parse-full | Run Last |
gpointer | parse-header | Run Last |
gpointer | parse-track | Run Last |
gpointer | quarter-frame | Run Last |
gpointer | sequence-number | Run Last |
gpointer | sequencer-meta-event | Run Last |
gpointer | smtpe | Run Last |
gpointer | song-position | Run Last |
gpointer | song-select | Run Last |
gpointer | sysex | Run Last |
gpointer | system-common | Run Last |
gpointer | tempo | Run Last |
gpointer | text-event | Run Last |
gpointer | time-signature | Run Last |
gpointer | tune-request | Run Last |
#define | AGS_MIDI_PARSER_MAX_TEXT_LENGTH |
#define | AGS_MIDI_PARSER_MTHD |
#define | AGS_MIDI_PARSER_MTCK |
#define | AGS_MIDI_EVENT |
enum | AgsMidiParserFlags |
enum | AgsMidiChunkFlags |
#define AGS_MIDI_PARSER_GET_OBJ_MUTEX(obj) (&(((AgsMidiParser *) obj)->obj_mutex))
gint16
ags_midi_parser_read_gint16 (AgsMidiParser *midi_parser
);
Read gint16.
Since: 3.0.0
gint32
ags_midi_parser_read_gint24 (AgsMidiParser *midi_parser
);
Read gint32.
Since: 3.0.0
gint32
ags_midi_parser_read_gint32 (AgsMidiParser *midi_parser
);
Read gint32.
Since: 3.0.0
gint
ags_midi_parser_read_varlength (AgsMidiParser *midi_parser
);
Read varlength as long.
Since: 3.0.0
gchar * ags_midi_parser_read_text (AgsMidiParser *midi_parser
,gint length
);
Read text.
Since: 3.0.0
gdouble ags_midi_parser_ticks_to_sec (AgsMidiParser *midi_parser
,guint ticks
,gint division
,guint tempo
);
Convert ticks to seconds.
midi_parser |
the AgsMidiParser |
|
ticks |
the ticks count |
|
division |
the division |
|
tempo |
the tempo |
Since: 3.0.0
int
ags_midi_parser_midi_getc (AgsMidiParser *midi_parser
);
Read one byte.
Since: 3.0.0
void ags_midi_parser_on_error (AgsMidiParser *midi_parser
,GError **error
);
Error reporting.
Since: 3.0.0
xmlDoc *
ags_midi_parser_parse_full (AgsMidiParser *midi_parser
);
Parse all data of “file”.
Since: 3.0.0
xmlNode * ags_midi_parser_parse_bytes (AgsMidiParser *midi_parser
,guchar *midi_buffer
,guint buffer_length
);
xmlNode *
ags_midi_parser_parse_header (AgsMidiParser *midi_parser
);
Parse MIDI header
Since: 3.0.0
xmlNode *
ags_midi_parser_parse_track (AgsMidiParser *midi_parser
);
Parse MIDI track.
Since: 3.0.0
xmlNode * ags_midi_parser_channel_message (AgsMidiParser *midi_parser
,guint status
);
Parse channel message.
Since: 3.0.0
xmlNode * ags_midi_parser_key_on (AgsMidiParser *midi_parser
,guint status
);
Parse key on.
Since: 3.0.0
xmlNode * ags_midi_parser_key_off (AgsMidiParser *midi_parser
,guint status
);
Parse key off.
Since: 3.0.0
xmlNode * ags_midi_parser_key_pressure (AgsMidiParser *midi_parser
,guint status
);
Parse key pressure.
Since: 3.0.0
xmlNode * ags_midi_parser_change_parameter (AgsMidiParser *midi_parser
,guint status
);
Parse change parameter.
Since: 3.0.0
xmlNode * ags_midi_parser_change_pitch_bend (AgsMidiParser *midi_parser
,guint status
);
Parse change pitch bend.
Since: 3.0.0
xmlNode * ags_midi_parser_change_program (AgsMidiParser *midi_parser
,guint status
);
Parse change program.
Since: 3.0.0
xmlNode * ags_midi_parser_change_channel_pressure (AgsMidiParser *midi_parser
,guint status
);
Parse change channel pressure.
Since: 3.0.0
xmlNode * ags_midi_parser_not_defined (AgsMidiParser *midi_parser
,guint status
);
Parse not defined.
Since: 3.0.0
xmlNode * ags_midi_parser_sysex (AgsMidiParser *midi_parser
,guint status
);
Parse sysex.
Since: 3.0.0
xmlNode * ags_midi_parser_system_common (AgsMidiParser *midi_parser
,guint status
);
Parse system common.
Since: 3.0.0
xmlNode * ags_midi_parser_meta_event (AgsMidiParser *midi_parser
,guint status
);
Parse meta event.
Since: 3.0.0
xmlNode * ags_midi_parser_sequence_number (AgsMidiParser *midi_parser
,guint meta_type
);
Parse sequence number.
Since: 3.0.0
xmlNode * ags_midi_parser_end_of_track (AgsMidiParser *midi_parser
,guint meta_type
);
Parse end of track.
Since: 3.0.0
xmlNode * ags_midi_parser_smtpe (AgsMidiParser *midi_parser
,guint meta_type
);
Parse smtpe.
Since: 3.0.0
xmlNode * ags_midi_parser_tempo (AgsMidiParser *midi_parser
,guint meta_type
);
Parse tempo.
Since: 3.0.0
xmlNode * ags_midi_parser_time_signature (AgsMidiParser *midi_parser
,guint meta_type
);
Parse time signature.
Since: 3.0.0
xmlNode * ags_midi_parser_key_signature (AgsMidiParser *midi_parser
,guint meta_type
);
Parse key signature.
Since: 3.0.0
xmlNode * ags_midi_parser_sequencer_meta_event (AgsMidiParser *midi_parser
,guint meta_type
);
xmlNode * ags_midi_parser_text_event (AgsMidiParser *midi_parser
,guint meta_type
);
Parse text event.
Since: 3.0.0
xmlNode * ags_midi_parser_meta_misc (AgsMidiParser *midi_parser
,guint meta_type
);
Parse meta_misc.
Since: 3.0.0
xmlNode * ags_midi_parser_midi_channel_prefix (AgsMidiParser *midi_parser
,guint meta_type
);
Parse MIDI channel prefix.
Since: 6.16.18
xmlNode * ags_midi_parser_quarter_frame (AgsMidiParser *midi_parser
,guint status
);
Quarter frame.
Since: 6.16.18
xmlNode * ags_midi_parser_song_position (AgsMidiParser *midi_parser
,guint status
);
Song position.
Since: 6.16.18
xmlNode * ags_midi_parser_song_select (AgsMidiParser *midi_parser
,guint status
);
Song select.
Since: 6.16.18
xmlNode * ags_midi_parser_tune_request (AgsMidiParser *midi_parser
,guint status
);
Song select.
Since: 6.16.18
void ags_midi_parser_open_filename (AgsMidiParser *midi_parser
,gchar *filename
);
Open filename
and assign FILE stream to midi_parser
.
Since: 3.2.0
void ags_midi_parser_set_buffer (AgsMidiParser *midi_parser
,guchar *buffer
);
Set buffer of midi_parser
Since: 3.2.0
void ags_midi_parser_set_file_length (AgsMidiParser *midi_parser
,size_t file_length
);
Set file length of midi_parser
Since: 3.7.38
AgsMidiParser * ags_midi_parser_new ();
Creates a new instance of AgsMidiParser
Since: 3.0.0
AgsMidiParser *
ags_midi_parser_new_from_filename (gchar *filename
);
Creates a new instance of AgsMidiParser
Since: 3.2.0
“change-channel-pressure”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::change-channel-pressure signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“change-parameter”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::change-parameter signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“change-pitch-bend”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::change-pitch-bend signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“change-program”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::change-program signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“end-of-track”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::end-of-track signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“key-off”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::key-off signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“key-on”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::key-on signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“key-pressure”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::key-pressure signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“key-signature”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::key-signature signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“meta-event”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::meta-event signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“meta-misc”
signalgpointer user_function (AgsMidiParser *midi_parser, guint meta_type, gpointer user_data)
The ::meta-misc signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
meta_type |
the MIDI meta message type |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 6.16.18
“midi-channel-prefix”
signalgpointer user_function (AgsMidiParser *midi_parser, guint meta_type, gpointer user_data)
The ::midi-channel-prefix signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
meta_type |
the MIDI meta message type |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 6.16.18
“midi-getc”
signalint user_function (AgsMidiParser *midi_parser, gpointer user_data)
The ::midi-getc signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“not-defined”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::not-defined signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“on-error”
signalvoid user_function (AgsMidiParser *midi_parser, gpointer error, gpointer user_data)
The ::on-error signal is emited as error occurs.
midi_parser |
the AgsMidiParser |
|
error |
the return location of GError |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“parse-bytes”
signalgpointer user_function (AgsMidiParser *midi_parser, gpointer buffer, guint buffer_length, gpointer user_data)
The ::parse-bytes signal is emited during parsing of bytes.
midi_parser |
the AgsMidiParser |
|
buffer |
the MIDI data |
|
buffer_length |
the buffer's length |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“parse-full”
signalgpointer user_function (AgsMidiParser *midi_parser, gpointer user_data)
The ::parse-full signal is emited during parsing of midi file.
midi_parser |
the AgsMidiParser |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“parse-header”
signalgpointer user_function (AgsMidiParser *midi_parser, gpointer user_data)
The ::parse-header signal is emited during parsing of header.
midi_parser |
the AgsMidiParser |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“parse-track”
signalgpointer user_function (AgsMidiParser *midi_parser, gpointer user_data)
The ::parse-track signal is emited during parsing of track.
midi_parser |
the AgsMidiParser |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“quarter-frame”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::quarter-frame signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 6.16.18
“sequence-number”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::sequence-number signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“sequencer-meta-event”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::sequencer-meta-event signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“smtpe”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::smtpe signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“song-position”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::song-position signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 6.16.18
“song-select”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::song-select signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 6.16.18
“sysex”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::sysex signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“system-common”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::system-common signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“tempo”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::tempo signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“text-event”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::text-event signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“time-signature”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::time-signature signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“tune-request”
signalgpointer user_function (AgsMidiParser *midi_parser, guint status, gpointer user_data)
The ::tune-request signal is emited during parsing of event.
midi_parser |
the AgsMidiParser |
|
status |
the MIDI status byte |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 6.16.18