AgsMidiFileWriter

AgsMidiFileWriter — the MIDI file writer

Functions

Properties

AgsMidiFile * midi-file Read / Write

Types and Values

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


AGS_IS_MIDI_FILE_WRITER()

#define AGS_IS_MIDI_FILE_WRITER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MIDI_FILE_WRITER))


AGS_IS_MIDI_FILE_WRITER_CLASS()

#define AGS_IS_MIDI_FILE_WRITER_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_MIDI_FILE_WRITER))


AGS_MIDI_FILE_WRITER()

#define AGS_MIDI_FILE_WRITER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MIDI_FILE_WRITER, AgsMidiFileWriter))


AGS_MIDI_FILE_WRITER_CLASS()

#define AGS_MIDI_FILE_WRITER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MIDI_FILE_WRITER, AgsMidiFileWriterClass))


AGS_MIDI_FILE_WRITER_GET_CLASS()

#define AGS_MIDI_FILE_WRITER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_MIDI_FILE_WRITER, AgsMidiFileWriterClass))


ags_midi_file_writer_get_type ()

GType
ags_midi_file_writer_get_type (void);

Types and Values

AGS_TYPE_MIDI_FILE_WRITER

#define AGS_TYPE_MIDI_FILE_WRITER                (ags_midi_file_writer_get_type ())


struct AgsMidiFileWriter

struct AgsMidiFileWriter;


struct AgsMidiFileWriterClass

struct AgsMidiFileWriterClass {
  GObjectClass gobject;
};

Property Details

The “midi-file” property

  “midi-file”                AgsMidiFile *

The assigned AgsMidiFile to read from.

Flags: Read / Write

Since: 0.7.74