AgsMidiFileWriter

AgsMidiFileWriter — the MIDI file writer

Functions

Object Hierarchy

    GObject
    ╰── AgsMidiFileWriter

Includes

#include <ags/audio/midi/ags_midi_file_writer.h>

Description

AgsMidiFileWriter reads your midi files.

Functions

ags_midi_file_writer_write_bytes ()

void
ags_midi_file_writer_write_bytes (AgsMidiFileWriter *midi_file_writer,
                                  unsigned char buffer,
                                  guint buffer_length);

Write buffer_length count bytes from buffer to MIDI file.

Parameters

midi_file_writer

the AgsMidiFileWriter

 

buffer

the buffer

 

buffer_length

the buffer length

 

Since: 0.7.2


ags_midi_file_writer_write_channel_message ()

void
ags_midi_file_writer_write_channel_message
                               (AgsMidiFileWriter *midi_file_writer,
                                gchar *track_name,
                                guint status,
                                ...);

Writes a channel message.

Parameters

midi_file_writer

the AgsMidiFileWriter

 

track_name

the track name

 

status

the status

 

...

parameters

 

Since: 0.7.1


ags_midi_file_writer_write_status_message ()

void
ags_midi_file_writer_write_status_message
                               (AgsMidiFileWriter *midi_file_writer,
                                gchar *track_name,
                                guint status,
                                ...);

Writes a status message.

Parameters

midi_file_writer

the AgsMidiFileWriter

 

track_name

the track name

 

status

the status

 

...

parameters

 

Since: 0.7.1


ags_midi_file_writer_new ()

AgsMidiFileWriter *
ags_midi_file_writer_new (gchar *filename);

Instantiate a new AgsMidiFileWriter assigned to filename .

Parameters

filename

the filename, may be NULL

 

Returns

a new AgsMidiFileWriter

Since: 0.7.1

Types and Values