GPS04RhythmPatternExporterToSmf

GPS04RhythmPatternExporterToSmf — Exporter of rhythm patterns to Standard MIDI files

Synopsis


#include <gps04-rhythm-pattern-exporter-to-smf.h>


            GPS04RhythmPatternExporterToSmf;
#define     GPS04_MIDI_N_CHANNELS
GPS04RhythmPatternExporterToSmf* gps04_rhythm_pattern_exporter_to_smf_new
                                            (GPS04SmfFormat smf_format,
                                             PS04Stream *output_stream);
void        gps04_rhythm_pattern_exporter_to_smf_add_midi_from_pattern_event
                                            (GPS04SmfTrack *track,
                                             guint pos,
                                             const PS04RhythmPatternEvent *pattern_event);
void        gps04_rhythm_pattern_exporter_to_smf_export
                                            (GPS04RhythmPatternExporterToSmf *self,
                                             const PS04RhythmPattern *pattern,
                                             GError **error);
char*       gps04_rhythm_pattern_exporter_to_smf_suggest_filename
                                            (const PS04RhythmPattern *pattern);

Object Hierarchy


  GObject
   +----GPS04RhythmPatternExporterToSmf

Description

The GPS04RhythmPatternExporterToSmf class exports rhythm patterns to Standard MIDI files.

Details

GPS04RhythmPatternExporterToSmf

typedef struct _GPS04RhythmPatternExporterToSmf GPS04RhythmPatternExporterToSmf;


GPS04_MIDI_N_CHANNELS

#define GPS04_MIDI_N_CHANNELS 16


gps04_rhythm_pattern_exporter_to_smf_new ()

GPS04RhythmPatternExporterToSmf* gps04_rhythm_pattern_exporter_to_smf_new
                                            (GPS04SmfFormat smf_format,
                                             PS04Stream *output_stream);

Creates a new rhythm pattern exporter.

smf_format :
output_stream : A PS04Stream to receive the Standard MIDI file data.
Returns : a new GPS04RhythmPatternExporterToSmf.

gps04_rhythm_pattern_exporter_to_smf_add_midi_from_pattern_event ()

void        gps04_rhythm_pattern_exporter_to_smf_add_midi_from_pattern_event
                                            (GPS04SmfTrack *track,
                                             guint pos,
                                             const PS04RhythmPatternEvent *pattern_event);

track :
pos :
pattern_event :

gps04_rhythm_pattern_exporter_to_smf_export ()

void        gps04_rhythm_pattern_exporter_to_smf_export
                                            (GPS04RhythmPatternExporterToSmf *self,
                                             const PS04RhythmPattern *pattern,
                                             GError **error);

Exports pattern to the stream associated with the exporter. If the function fails, error is set.

self : A GPS04RhythmPatternExporterToSmf.
pattern : A PS04RhythmPattern to be exported.
error : A placeholder for a GError, or NULL.

gps04_rhythm_pattern_exporter_to_smf_suggest_filename ()

char*       gps04_rhythm_pattern_exporter_to_smf_suggest_filename
                                            (const PS04RhythmPattern *pattern);

pattern :
Returns :

See Also

PS04RhythmPattern, GPS04StandardMidiFile