Class

AgsAudioMidiBuilder

Description

class AgsAudio.MidiBuilder : GObject.Object
{
  flags: AgsMidiBuilderFlags,
  obj_mutex: GRecMutex,
  midi_smf_util: AgsMidiSmfUtil*,
  data: guchar*,
  length: guint,
  file: FILE*,
  midi_header: AgsMidiBuilderHeader*,
  midi_track: GList*,
  current_midi_track: AgsMidiBuilderTrack*
}

No description available.

Ancestors

Constructors

ags_midi_builder_new

Creates a new instance of AgsMidiBuilder.

since: 3.0.0

ags_midi_builder_new_from_filename

Creates a new instance of AgsMidiBuilder.

since: 3.2.0

Instance methods

ags_midi_builder_append_change_parameter

Appends change parameter.

since: 3.0.0

ags_midi_builder_append_change_pitch_bend

Change pitch bend.

since: 3.0.0

ags_midi_builder_append_change_pressure

Appends change pressure.

since: 3.0.0

ags_midi_builder_append_change_program

Appends change program.

since: 3.0.0

ags_midi_builder_append_header

Appends MIDI header to midi_builder.

since: 3.0.0

ags_midi_builder_append_key_off

Append key-off for note to midi_builder with key dynamics velocity, at delta_time.

since: 3.0.0

ags_midi_builder_append_key_on

Append key-on for note to midi_builder with key dynamics velocity, at delta_time.

since: 3.0.0

ags_midi_builder_append_key_pressure

Append key-pressure for note to midi_builder with key dynamics pressure, at delta_time.

since: 3.0.0

ags_midi_builder_append_key_signature

Appends key signature.

since: 3.0.0

ags_midi_builder_append_quarter_frame

Appends quarter frame.

since: 3.0.0

ags_midi_builder_append_sequence_number

Appends sequence number.

since: 3.0.0

ags_midi_builder_append_sequencer_meta_event

Appends sequencer meta event.

since: 3.0.0

ags_midi_builder_append_smtpe

Appends smtpe.

since: 3.0.0

ags_midi_builder_append_song_position

Appends song position.

since: 3.0.0

ags_midi_builder_append_song_select

Appends song select.

since: 3.0.0

ags_midi_builder_append_sysex

Appends sysex data.

since: 3.0.0

ags_midi_builder_append_tempo

Appends tempo.

since: 3.0.0

ags_midi_builder_append_text_event

Appends text event.

since: 3.0.0

ags_midi_builder_append_time_signature

Appends time signature.

since: 3.0.0

ags_midi_builder_append_track

Append a track called track_name to midi_builder.

since: 3.0.0

ags_midi_builder_append_tune_request

Appends tune request.

since: 3.0.0

ags_midi_builder_append_xml_node

Append from XML node node.

since: 3.0.0

ags_midi_builder_build

Build the MIDI data.

since: 3.0.0

ags_midi_builder_from_xml_doc

Builds from XML document doc.

since: 3.0.0

ags_midi_builder_get_data

Get SMF data of midi_builder.

since: 3.2.0

ags_midi_builder_get_data_with_length

Get SMF data of midi_builder.

since: 3.7.24

ags_midi_builder_midi_putc

Put char in MIDI file.

since: 3.0.0

ags_midi_builder_on_error

Triggered as an error occurs.

since: 3.0.0

ags_midi_builder_open_filename

Open filename and assign FILE stream to midi_builder.

since: 3.2.0

ags_midi_builder_write

Write data of midi_builder to file.

since: 3.2.0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

AgsAudio.MidiBuilder:file

The file to parse data from.

since: 3.0.0

Signals

AgsAudio.MidiBuilder::append-header

The ::append-header signal is emited during building of header.

since: 3.0.0

AgsAudio.MidiBuilder::append-track

The ::append-track signal is emited during building of track.

since: 3.0.0

AgsAudio.MidiBuilder::change-parameter
No description available.

AgsAudio.MidiBuilder::change-pitch-bend
No description available.

AgsAudio.MidiBuilder::change-program
No description available.

AgsAudio.MidiBuilder::key-off
No description available.

AgsAudio.MidiBuilder::key-on
No description available.

AgsAudio.MidiBuilder::key-pressure
No description available.

AgsAudio.MidiBuilder::key-signature
No description available.

AgsAudio.MidiBuilder::midi-putc

The ::midi-putc signal is emited during putting char to file.

since: 3.0.0

AgsAudio.MidiBuilder::on-error

The ::on-error signal is emited during building of event.

since: 3.0.0

AgsAudio.MidiBuilder::quarter-frame
No description available.

AgsAudio.MidiBuilder::sequence-number
No description available.

AgsAudio.MidiBuilder::sequencer-meta-event
No description available.

AgsAudio.MidiBuilder::smtpe
No description available.

AgsAudio.MidiBuilder::song-position
No description available.

AgsAudio.MidiBuilder::song-select
No description available.

AgsAudio.MidiBuilder::sysex
No description available.

AgsAudio.MidiBuilder::tempo
No description available.

AgsAudio.MidiBuilder::text-event
No description available.

AgsAudio.MidiBuilder::time-signature
No description available.

AgsAudio.MidiBuilder::tune-request
No description available.

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 AgsAudioMidiBuilderClass {
  GObjectClass gobject;
  void (* midi_putc) (
    AgsMidiBuilder* midi_builder,
    gint c
  );
  void (* on_error) (
    AgsMidiBuilder* midi_builder,
    GError** error
  );
  void (* append_header) (
    AgsMidiBuilder* midi_builder,
    guint offset,
    guint format,
    guint track_count,
    guint division,
    guint times,
    guint bpm,
    guint clicks
  );
  void (* append_track) (
    AgsMidiBuilder* midi_builder,
    gchar* track_name
  );
  void (* append_key_on) (
    AgsMidiBuilder* midi_builder,
    guint delta_time,
    guint audio_channel,
    guint note,
    guint velocity
  );
  void (* append_key_off) (
    AgsMidiBuilder* midi_builder,
    guint delta_time,
    guint audio_channel,
    guint note,
    guint velocity
  );
  void (* append_key_pressure) (
    AgsMidiBuilder* midi_builder,
    guint delta_time,
    guint audio_channel,
    guint note,
    guint pressure
  );
  void (* append_change_parameter) (
    AgsMidiBuilder* midi_builder,
    guint delta_time,
    guint channel,
    guint control,
    guint value
  );
  void (* append_change_pitch_bend) (
    AgsMidiBuilder* midi_builder,
    guint delta_time,
    guint channel,
    guint transmitter
  );
  void (* append_change_program) (
    AgsMidiBuilder* midi_builder,
    guint delta_time,
    guint channel,
    guint program
  );
  void (* append_change_pressure) (
    AgsMidiBuilder* midi_builder,
    guint delta_time,
    guint channel,
    guint pressure
  );
  void (* append_sysex) (
    AgsMidiBuilder* midi_builder,
    guint delta_time,
    guchar* sysex_data,
    guint length
  );
  void (* append_quarter_frame) (
    AgsMidiBuilder* midi_builder,
    guint delta_time,
    guint message_type,
    guint values
  );
  void (* append_song_position) (
    AgsMidiBuilder* midi_builder,
    guint delta_time,
    guint song_position
  );
  void (* append_song_select) (
    AgsMidiBuilder* midi_builder,
    guint delta_time,
    guint song_select
  );
  void (* append_tune_request) (
    AgsMidiBuilder* midi_builder,
    guint delta_time
  );
  void (* append_sequence_number) (
    AgsMidiBuilder* midi_builder,
    guint delta_time,
    guint sequence
  );
  void (* append_smtpe) (
    AgsMidiBuilder* midi_builder,
    guint delta_time,
    guint rr,
    guint hr,
    guint mn,
    guint se,
    guint fr
  );
  void (* append_tempo) (
    AgsMidiBuilder* midi_builder,
    guint delta_time,
    guint tempo
  );
  void (* append_time_signature) (
    AgsMidiBuilder* midi_builder,
    guint delta_time,
    guint nn,
    guint dd,
    guint cc,
    guint bb
  );
  void (* append_key_signature) (
    AgsMidiBuilder* midi_builder,
    guint delta_time,
    guint sf,
    guint mi
  );
  void (* append_sequencer_meta_event) (
    AgsMidiBuilder* midi_builder,
    guint delta_time,
    guint len,
    guint id,
    guint data
  );
  void (* append_text_event) (
    AgsMidiBuilder* midi_builder,
    guint delta_time,
    gchar* text,
    guint length
  );
  
}

No description available.

Class members
gobject: GObjectClass

No description available.

midi_putc: void (* midi_putc) ( AgsMidiBuilder* midi_builder, gint c )

No description available.

on_error: void (* on_error) ( AgsMidiBuilder* midi_builder, GError** error )

No description available.

append_header: void (* append_header) ( AgsMidiBuilder* midi_builder, guint offset, guint format, guint track_count, guint division, guint times, guint bpm, guint clicks )

No description available.

append_track: void (* append_track) ( AgsMidiBuilder* midi_builder, gchar* track_name )

No description available.

append_key_on: void (* append_key_on) ( AgsMidiBuilder* midi_builder, guint delta_time, guint audio_channel, guint note, guint velocity )

No description available.

append_key_off: void (* append_key_off) ( AgsMidiBuilder* midi_builder, guint delta_time, guint audio_channel, guint note, guint velocity )

No description available.

append_key_pressure: void (* append_key_pressure) ( AgsMidiBuilder* midi_builder, guint delta_time, guint audio_channel, guint note, guint pressure )

No description available.

append_change_parameter: void (* append_change_parameter) ( AgsMidiBuilder* midi_builder, guint delta_time, guint channel, guint control, guint value )

No description available.

append_change_pitch_bend: void (* append_change_pitch_bend) ( AgsMidiBuilder* midi_builder, guint delta_time, guint channel, guint transmitter )

No description available.

append_change_program: void (* append_change_program) ( AgsMidiBuilder* midi_builder, guint delta_time, guint channel, guint program )

No description available.

append_change_pressure: void (* append_change_pressure) ( AgsMidiBuilder* midi_builder, guint delta_time, guint channel, guint pressure )

No description available.

append_sysex: void (* append_sysex) ( AgsMidiBuilder* midi_builder, guint delta_time, guchar* sysex_data, guint length )

No description available.

append_quarter_frame: void (* append_quarter_frame) ( AgsMidiBuilder* midi_builder, guint delta_time, guint message_type, guint values )

No description available.

append_song_position: void (* append_song_position) ( AgsMidiBuilder* midi_builder, guint delta_time, guint song_position )

No description available.

append_song_select: void (* append_song_select) ( AgsMidiBuilder* midi_builder, guint delta_time, guint song_select )

No description available.

append_tune_request: void (* append_tune_request) ( AgsMidiBuilder* midi_builder, guint delta_time )

No description available.

append_sequence_number: void (* append_sequence_number) ( AgsMidiBuilder* midi_builder, guint delta_time, guint sequence )

No description available.

append_smtpe: void (* append_smtpe) ( AgsMidiBuilder* midi_builder, guint delta_time, guint rr, guint hr, guint mn, guint se, guint fr )

No description available.

append_tempo: void (* append_tempo) ( AgsMidiBuilder* midi_builder, guint delta_time, guint tempo )

No description available.

append_time_signature: void (* append_time_signature) ( AgsMidiBuilder* midi_builder, guint delta_time, guint nn, guint dd, guint cc, guint bb )

No description available.

append_key_signature: void (* append_key_signature) ( AgsMidiBuilder* midi_builder, guint delta_time, guint sf, guint mi )

No description available.

append_sequencer_meta_event: void (* append_sequencer_meta_event) ( AgsMidiBuilder* midi_builder, guint delta_time, guint len, guint id, guint data )

No description available.

append_text_event: void (* append_text_event) ( AgsMidiBuilder* midi_builder, guint delta_time, gchar* text, guint length )

No description available.

Virtual methods

AgsAudio.MidiBuilderClass.append_change_parameter

Appends change parameter.

since: 3.0.0

AgsAudio.MidiBuilderClass.append_change_pitch_bend

Change pitch bend.

since: 3.0.0

AgsAudio.MidiBuilderClass.append_change_pressure

Appends change pressure.

since: 3.0.0

AgsAudio.MidiBuilderClass.append_change_program

Appends change program.

since: 3.0.0

AgsAudio.MidiBuilderClass.append_header

Appends MIDI header to midi_builder.

since: 3.0.0

AgsAudio.MidiBuilderClass.append_key_off

Append key-off for note to midi_builder with key dynamics velocity, at delta_time.

since: 3.0.0

AgsAudio.MidiBuilderClass.append_key_on

Append key-on for note to midi_builder with key dynamics velocity, at delta_time.

since: 3.0.0

AgsAudio.MidiBuilderClass.append_key_pressure

Append key-pressure for note to midi_builder with key dynamics pressure, at delta_time.

since: 3.0.0

AgsAudio.MidiBuilderClass.append_key_signature

Appends key signature.

since: 3.0.0

AgsAudio.MidiBuilderClass.append_quarter_frame

Appends quarter frame.

since: 3.0.0

AgsAudio.MidiBuilderClass.append_sequence_number

Appends sequence number.

since: 3.0.0

AgsAudio.MidiBuilderClass.append_sequencer_meta_event

Appends sequencer meta event.

since: 3.0.0

AgsAudio.MidiBuilderClass.append_smtpe

Appends smtpe.

since: 3.0.0

AgsAudio.MidiBuilderClass.append_song_position

Appends song position.

since: 3.0.0

AgsAudio.MidiBuilderClass.append_song_select

Appends song select.

since: 3.0.0

AgsAudio.MidiBuilderClass.append_sysex

Appends sysex data.

since: 3.0.0

AgsAudio.MidiBuilderClass.append_tempo

Appends tempo.

since: 3.0.0

AgsAudio.MidiBuilderClass.append_text_event

Appends text event.

since: 3.0.0

AgsAudio.MidiBuilderClass.append_time_signature

Appends time signature.

since: 3.0.0

AgsAudio.MidiBuilderClass.append_track

Append a track called track_name to midi_builder.

since: 3.0.0

AgsAudio.MidiBuilderClass.append_tune_request

Appends tune request.

since: 3.0.0

AgsAudio.MidiBuilderClass.midi_putc

Put char in MIDI file.

since: 3.0.0

AgsAudio.MidiBuilderClass.on_error

Triggered as an error occurs.

since: 3.0.0