Class

AgsAudioMidiParser

Description

class AgsAudio.MidiParser : GObject.Object
{
  flags: AgsMidiParserFlags,
  obj_mutex: GRecMutex,
  file: FILE*,
  nth_chunk: guint,
  buffer: guchar*,
  file_length: size_t,
  offset: size_t,
  current_smf_length: guint,
  current_smf_offset: guint,
  current_smf_time: guint,
  current_smf_status: guchar,
  doc: xmlDoc*,
  current_node: xmlNode*,
  midi_util: AgsMidiUtil*,
  midi_smf_util: AgsMidiSmfUtil*
}

No description available.

Ancestors

Constructors

ags_midi_parser_new

Creates a new instance of AgsMidiParser.

since: 3.0.0

ags_midi_parser_new_from_filename

Creates a new instance of AgsMidiParser.

since: 3.2.0

Instance methods

ags_midi_parser_change_channel_pressure

Parse change channel pressure.

since: 3.0.0

ags_midi_parser_change_parameter

Parse change parameter.

since: 3.0.0

ags_midi_parser_change_pitch_bend

Parse change pitch bend.

since: 3.0.0

ags_midi_parser_change_program

Parse change program.

since: 3.0.0

ags_midi_parser_channel_message

Parse channel message.

since: 3.0.0

ags_midi_parser_end_of_track

Parse end of track.

since: 3.0.0

ags_midi_parser_key_off

Parse key off.

since: 3.0.0

ags_midi_parser_key_on

Parse key on.

since: 3.0.0

ags_midi_parser_key_pressure

Parse key pressure.

since: 3.0.0

ags_midi_parser_key_signature

Parse key signature.

since: 3.0.0

ags_midi_parser_meta_event

Parse meta event.

since: 3.0.0

ags_midi_parser_meta_misc

Parse meta_misc.

since: 3.0.0

ags_midi_parser_midi_channel_prefix

Parse MIDI channel prefix.

since: 6.16.18

ags_midi_parser_midi_getc

Read one byte.

since: 3.0.0

ags_midi_parser_not_defined

Parse not defined.

since: 3.0.0

ags_midi_parser_on_error

Error reporting.

since: 3.0.0

ags_midi_parser_open_filename

Open filename and assign FILE stream to midi_parser.

since: 3.2.0

ags_midi_parser_parse_bytes
No description available.

ags_midi_parser_parse_full

Parse all data of AgsMidiParser:file.

since: 3.0.0

ags_midi_parser_parse_header

Parse MIDI header.

since: 3.0.0

ags_midi_parser_parse_track

Parse MIDI track.

since: 3.0.0

ags_midi_parser_quarter_frame

Quarter frame.

since: 6.16.18

ags_midi_parser_read_gint16

Read gint16.

since: 3.0.0

ags_midi_parser_read_gint24

Read gint32.

since: 3.0.0

ags_midi_parser_read_gint32

Read gint32.

since: 3.0.0

ags_midi_parser_read_text

Read text.

since: 3.0.0

ags_midi_parser_read_varlength

Read varlength as long.

since: 3.0.0

ags_midi_parser_sequence_number

Parse sequence number.

since: 3.0.0

ags_midi_parser_sequencer_meta_event
No description available.

ags_midi_parser_set_buffer

Set buffer of midi_parser.

since: 3.2.0

ags_midi_parser_set_file_length

Set file length of midi_parser.

since: 3.7.38

ags_midi_parser_smtpe

Parse smtpe.

since: 3.0.0

ags_midi_parser_song_position

Song position.

since: 6.16.18

ags_midi_parser_song_select

Song select.

since: 6.16.18

ags_midi_parser_sysex

Parse sysex.

since: 3.0.0

ags_midi_parser_system_common

Parse system common.

since: 3.0.0

ags_midi_parser_tempo

Parse tempo.

since: 3.0.0

ags_midi_parser_text_event

Parse text event.

since: 3.0.0

ags_midi_parser_ticks_to_sec

Convert ticks to seconds.

since: 3.0.0

ags_midi_parser_time_signature

Parse time signature.

since: 3.0.0

ags_midi_parser_tune_request

Song select.

since: 6.16.18

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

AgsAudio.MidiParser:file

The file to parse data from.

since: 3.0.0

Signals

AgsAudio.MidiParser::change-channel-pressure

The ::change-channel-pressure signal is emited during parsing of event.

since: 3.0.0

AgsAudio.MidiParser::change-parameter

The ::change-parameter signal is emited during parsing of event.

since: 3.0.0

AgsAudio.MidiParser::change-pitch-bend

The ::change-pitch-bend signal is emited during parsing of event.

since: 3.0.0

AgsAudio.MidiParser::change-program

The ::change-program signal is emited during parsing of event.

since: 3.0.0

AgsAudio.MidiParser::end-of-track

The ::end-of-track signal is emited during parsing of event.

since: 3.0.0

AgsAudio.MidiParser::key-off

The ::key-off signal is emited during parsing of event.

since: 3.0.0

AgsAudio.MidiParser::key-on

The ::key-on signal is emited during parsing of event.

since: 3.0.0

AgsAudio.MidiParser::key-pressure

The ::key-pressure signal is emited during parsing of event.

since: 3.0.0

AgsAudio.MidiParser::key-signature

The ::key-signature signal is emited during parsing of event.

since: 3.0.0

AgsAudio.MidiParser::meta-event

The ::meta-event signal is emited during parsing of event.

since: 3.0.0

AgsAudio.MidiParser::meta-misc

The ::meta-misc signal is emited during parsing of event.

since: 6.16.18

AgsAudio.MidiParser::midi-channel-prefix

The ::midi-channel-prefix signal is emited during parsing of event.

since: 6.16.18

AgsAudio.MidiParser::midi-getc

The ::midi-getc signal is emited during parsing of event.

since: 3.0.0

AgsAudio.MidiParser::not-defined

The ::not-defined signal is emited during parsing of event.

since: 3.0.0

AgsAudio.MidiParser::on-error

The ::on-error signal is emited as error occurs.

since: 3.0.0

AgsAudio.MidiParser::parse-bytes

The ::parse-bytes signal is emited during parsing of bytes.

since: 3.0.0

AgsAudio.MidiParser::parse-full

The ::parse-full signal is emited during parsing of midi file.

since: 3.0.0

AgsAudio.MidiParser::parse-header

The ::parse-header signal is emited during parsing of header.

since: 3.0.0

AgsAudio.MidiParser::parse-track

The ::parse-track signal is emited during parsing of track.

since: 3.0.0

AgsAudio.MidiParser::quarter-frame

The ::quarter-frame signal is emited during parsing of event.

since: 6.16.18

AgsAudio.MidiParser::sequence-number

The ::sequence-number signal is emited during parsing of event.

since: 3.0.0

AgsAudio.MidiParser::sequencer-meta-event

The ::sequencer-meta-event signal is emited during parsing of event.

since: 3.0.0

AgsAudio.MidiParser::smtpe

The ::smtpe signal is emited during parsing of event.

since: 3.0.0

AgsAudio.MidiParser::song-position

The ::song-position signal is emited during parsing of event.

since: 6.16.18

AgsAudio.MidiParser::song-select

The ::song-select signal is emited during parsing of event.

since: 6.16.18

AgsAudio.MidiParser::sysex

The ::sysex signal is emited during parsing of event.

since: 3.0.0

AgsAudio.MidiParser::system-common

The ::system-common signal is emited during parsing of event.

since: 3.0.0

AgsAudio.MidiParser::tempo

The ::tempo signal is emited during parsing of event.

since: 3.0.0

AgsAudio.MidiParser::text-event

The ::text-event signal is emited during parsing of event.

since: 3.0.0

AgsAudio.MidiParser::time-signature

The ::time-signature signal is emited during parsing of event.

since: 3.0.0

AgsAudio.MidiParser::tune-request

The ::tune-request signal is emited during parsing of event.

since: 6.16.18

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct AgsAudioMidiParserClass {
  GObjectClass gobject;
  int (* midi_getc) (
    AgsMidiParser* midi_parser
  );
  void (* on_error) (
    AgsMidiParser* midi_parser,
    GError** error
  );
  xmlDoc* (* parse_full) (
    AgsMidiParser* midi_parser
  );
  xmlNode* (* parse_bytes) (
    AgsMidiParser* midi_parser,
    guchar* midi_buffer,
    guint buffer_length
  );
  xmlNode* (* parse_header) (
    AgsMidiParser* midi_parser
  );
  xmlNode* (* parse_track) (
    AgsMidiParser* midi_parser
  );
  xmlNode* (* key_on) (
    AgsMidiParser* midi_parser,
    guint status
  );
  xmlNode* (* key_off) (
    AgsMidiParser* midi_parser,
    guint status
  );
  xmlNode* (* key_pressure) (
    AgsMidiParser* midi_parser,
    guint status
  );
  xmlNode* (* change_parameter) (
    AgsMidiParser* midi_parser,
    guint status
  );
  xmlNode* (* change_pitch_bend) (
    AgsMidiParser* midi_parser,
    guint status
  );
  xmlNode* (* change_program) (
    AgsMidiParser* midi_parser,
    guint status
  );
  xmlNode* (* change_channel_pressure) (
    AgsMidiParser* midi_parser,
    guint status
  );
  xmlNode* (* not_defined) (
    AgsMidiParser* midi_parser,
    guint status
  );
  xmlNode* (* sysex) (
    AgsMidiParser* midi_parser,
    guint status
  );
  xmlNode* (* system_common) (
    AgsMidiParser* midi_parser,
    guint status
  );
  xmlNode* (* meta_event) (
    AgsMidiParser* midi_parser,
    guint status
  );
  xmlNode* (* sequence_number) (
    AgsMidiParser* midi_parser,
    guint meta_type
  );
  xmlNode* (* end_of_track) (
    AgsMidiParser* midi_parser,
    guint meta_type
  );
  xmlNode* (* smtpe) (
    AgsMidiParser* midi_parser,
    guint meta_type
  );
  xmlNode* (* tempo) (
    AgsMidiParser* midi_parser,
    guint meta_type
  );
  xmlNode* (* time_signature) (
    AgsMidiParser* midi_parser,
    guint meta_type
  );
  xmlNode* (* key_signature) (
    AgsMidiParser* midi_parser,
    guint meta_type
  );
  xmlNode* (* sequencer_meta_event) (
    AgsMidiParser* midi_parser,
    guint meta_type
  );
  xmlNode* (* text_event) (
    AgsMidiParser* midi_parser,
    guint meta_type
  );
  xmlNode* (* meta_misc) (
    AgsMidiParser* midi_parser,
    guint meta_type
  );
  xmlNode* (* midi_channel_prefix) (
    AgsMidiParser* midi_parser,
    guint meta_type
  );
  xmlNode* (* quarter_frame) (
    AgsMidiParser* midi_parser,
    guint status
  );
  xmlNode* (* song_position) (
    AgsMidiParser* midi_parser,
    guint status
  );
  xmlNode* (* song_select) (
    AgsMidiParser* midi_parser,
    guint status
  );
  xmlNode* (* tune_request) (
    AgsMidiParser* midi_parser,
    guint status
  );
  
}

No description available.

Class members
gobject: GObjectClass

No description available.

midi_getc: int (* midi_getc) ( AgsMidiParser* midi_parser )

No description available.

on_error: void (* on_error) ( AgsMidiParser* midi_parser, GError** error )

No description available.

parse_full: xmlDoc* (* parse_full) ( AgsMidiParser* midi_parser )

No description available.

parse_bytes: xmlNode* (* parse_bytes) ( AgsMidiParser* midi_parser, guchar* midi_buffer, guint buffer_length )

No description available.

parse_header: xmlNode* (* parse_header) ( AgsMidiParser* midi_parser )

No description available.

parse_track: xmlNode* (* parse_track) ( AgsMidiParser* midi_parser )

No description available.

key_on: xmlNode* (* key_on) ( AgsMidiParser* midi_parser, guint status )

No description available.

key_off: xmlNode* (* key_off) ( AgsMidiParser* midi_parser, guint status )

No description available.

key_pressure: xmlNode* (* key_pressure) ( AgsMidiParser* midi_parser, guint status )

No description available.

change_parameter: xmlNode* (* change_parameter) ( AgsMidiParser* midi_parser, guint status )

No description available.

change_pitch_bend: xmlNode* (* change_pitch_bend) ( AgsMidiParser* midi_parser, guint status )

No description available.

change_program: xmlNode* (* change_program) ( AgsMidiParser* midi_parser, guint status )

No description available.

change_channel_pressure: xmlNode* (* change_channel_pressure) ( AgsMidiParser* midi_parser, guint status )

No description available.

not_defined: xmlNode* (* not_defined) ( AgsMidiParser* midi_parser, guint status )

No description available.

sysex: xmlNode* (* sysex) ( AgsMidiParser* midi_parser, guint status )

No description available.

system_common: xmlNode* (* system_common) ( AgsMidiParser* midi_parser, guint status )

No description available.

meta_event: xmlNode* (* meta_event) ( AgsMidiParser* midi_parser, guint status )

No description available.

sequence_number: xmlNode* (* sequence_number) ( AgsMidiParser* midi_parser, guint meta_type )

No description available.

end_of_track: xmlNode* (* end_of_track) ( AgsMidiParser* midi_parser, guint meta_type )

No description available.

smtpe: xmlNode* (* smtpe) ( AgsMidiParser* midi_parser, guint meta_type )

No description available.

tempo: xmlNode* (* tempo) ( AgsMidiParser* midi_parser, guint meta_type )

No description available.

time_signature: xmlNode* (* time_signature) ( AgsMidiParser* midi_parser, guint meta_type )

No description available.

key_signature: xmlNode* (* key_signature) ( AgsMidiParser* midi_parser, guint meta_type )

No description available.

sequencer_meta_event: xmlNode* (* sequencer_meta_event) ( AgsMidiParser* midi_parser, guint meta_type )

No description available.

text_event: xmlNode* (* text_event) ( AgsMidiParser* midi_parser, guint meta_type )

No description available.

meta_misc: xmlNode* (* meta_misc) ( AgsMidiParser* midi_parser, guint meta_type )

No description available.

midi_channel_prefix: xmlNode* (* midi_channel_prefix) ( AgsMidiParser* midi_parser, guint meta_type )

No description available.

quarter_frame: xmlNode* (* quarter_frame) ( AgsMidiParser* midi_parser, guint status )

No description available.

song_position: xmlNode* (* song_position) ( AgsMidiParser* midi_parser, guint status )

No description available.

song_select: xmlNode* (* song_select) ( AgsMidiParser* midi_parser, guint status )

No description available.

tune_request: xmlNode* (* tune_request) ( AgsMidiParser* midi_parser, guint status )

No description available.

Virtual methods

AgsAudio.MidiParserClass.change_channel_pressure

Parse change channel pressure.

since: 3.0.0

AgsAudio.MidiParserClass.change_parameter

Parse change parameter.

since: 3.0.0

AgsAudio.MidiParserClass.change_pitch_bend

Parse change pitch bend.

since: 3.0.0

AgsAudio.MidiParserClass.change_program

Parse change program.

since: 3.0.0

AgsAudio.MidiParserClass.end_of_track

Parse end of track.

since: 3.0.0

AgsAudio.MidiParserClass.key_off

Parse key off.

since: 3.0.0

AgsAudio.MidiParserClass.key_on

Parse key on.

since: 3.0.0

AgsAudio.MidiParserClass.key_pressure

Parse key pressure.

since: 3.0.0

AgsAudio.MidiParserClass.key_signature

Parse key signature.

since: 3.0.0

AgsAudio.MidiParserClass.meta_event

Parse meta event.

since: 3.0.0

AgsAudio.MidiParserClass.meta_misc

Parse meta_misc.

since: 3.0.0

AgsAudio.MidiParserClass.midi_channel_prefix

Parse MIDI channel prefix.

since: 6.16.18

AgsAudio.MidiParserClass.midi_getc

Read one byte.

since: 3.0.0

AgsAudio.MidiParserClass.not_defined

Parse not defined.

since: 3.0.0

AgsAudio.MidiParserClass.on_error

Error reporting.

since: 3.0.0

AgsAudio.MidiParserClass.parse_bytes
No description available.

AgsAudio.MidiParserClass.parse_full

Parse all data of AgsMidiParser:file.

since: 3.0.0

AgsAudio.MidiParserClass.parse_header

Parse MIDI header.

since: 3.0.0

AgsAudio.MidiParserClass.parse_track

Parse MIDI track.

since: 3.0.0

AgsAudio.MidiParserClass.quarter_frame

Quarter frame.

since: 6.16.18

AgsAudio.MidiParserClass.sequence_number

Parse sequence number.

since: 3.0.0

AgsAudio.MidiParserClass.smtpe

Parse smtpe.

since: 3.0.0

AgsAudio.MidiParserClass.song_position

Song position.

since: 6.16.18

AgsAudio.MidiParserClass.song_select

Song select.

since: 6.16.18

AgsAudio.MidiParserClass.sysex

Parse sysex.

since: 3.0.0

AgsAudio.MidiParserClass.system_common

Parse system common.

since: 3.0.0

AgsAudio.MidiParserClass.tempo

Parse tempo.

since: 3.0.0

AgsAudio.MidiParserClass.text_event

Parse text event.

since: 3.0.0

AgsAudio.MidiParserClass.time_signature

Parse time signature.

since: 3.0.0

AgsAudio.MidiParserClass.tune_request

Song select.

since: 6.16.18