Class

AgsAudioMidiFile

Description

class AgsAudio.MidiFile : GObject.Object
{
  flags: AgsMidiFileFlags,
  obj_mutex: GRecMutex,
  filename: gchar*,
  file: FILE*,
  buffer: unsigned char*,
  buffer_length: guint,
  iter: unsigned char*,
  offset: guint,
  format: guint,
  count: guint,
  division: guint,
  times: guint,
  beat: guint,
  clicks: guint,
  track: GList*,
  current_track: AgsMidiFileTrack*,
  notation: GList*,
  midi: GList*
}

No description available.

Ancestors

Constructors

ags_midi_file_new

Create a new instance of AgsMidiFile.

since: 3.0.0

Functions

ags_midi_file_error_quark
No description available.

Instance methods

ags_midi_file_close

Closes the file stream.

since: 3.0.0

ags_midi_file_flush

Flushes file stream’s data buffer to disc.

since: 3.0.0

ags_midi_file_open

Opens a MIDI file read-only.

since: 3.0.0

ags_midi_file_open_from_data

Opens a virtual MIDI file residing in datas array.

since: 3.0.0

ags_midi_file_read

Reads all bytes of the file’s stream and stores them in the internal buffer.

since: 3.0.0

ags_midi_file_read_byte

Reads a unsigned char quantity.

since: 3.0.0

ags_midi_file_read_gint16

Reads a gint16 quantity.

since: 3.0.0

ags_midi_file_read_gint24

Reads a 24-bit quantity.

since: 3.0.0

ags_midi_file_read_gint32

Reads a gint32 quantity.

since: 3.0.0

ags_midi_file_read_header

Reads the MIDI file’s header and positions internal buffer pointer just behind it.

since: 3.0.0

ags_midi_file_read_notation
No description available.

ags_midi_file_read_text

Reads a string.

since: 3.0.0

ags_midi_file_read_track_data

Reads the MIDI file’s track data.

since: 3.0.0

ags_midi_file_read_varlength

Reads a variable length quantity.

since: 3.0.0

ags_midi_file_rw_open

Opens a MIDI file with read-write permission.

since: 3.0.0

ags_midi_file_seek

Seeks the file stream’s offset.

since: 3.0.0

ags_midi_file_write

Writes data to the file stream and to internal buffer, reallocates it if necessary.

since: 3.0.0

ags_midi_file_write_byte

Writes a unsigned char quantity to internal buffer.

since: 3.0.0

ags_midi_file_write_gint16

Writes a gint16 quantity to internal buffer.

since: 3.0.0

ags_midi_file_write_gint24

Writes a 24-bit quantity to internal buffer.

since: 3.0.0

ags_midi_file_write_gint32

Writes a gint32 quantity to internal buffer.

since: 3.0.0

ags_midi_file_write_header

Write header bytes.

since: 3.0.0

ags_midi_file_write_text

Writes a string to internal buffer up to length bytes.

since: 3.0.0

ags_midi_file_write_track_data
No description available.

ags_midi_file_write_varlength
No description available.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

AgsAudio.MidiFile:filename

The assigned filename to perform input/output on.

since: 3.0.0

Signals

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 AgsAudioMidiFileClass {
  GObjectClass gobject;
  
}

No description available.

Class members
gobject: GObjectClass

No description available.