| GPS04 Reference Manual | ||||
|---|---|---|---|---|
GPS04RhythmPatternExporterToSmfGPS04RhythmPatternExporterToSmf — Exporter of rhythm patterns to Standard MIDI files |
#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);
The GPS04RhythmPatternExporterToSmf class exports rhythm patterns to Standard MIDI files.
typedef struct _GPS04RhythmPatternExporterToSmf GPS04RhythmPatternExporterToSmf;
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. |
void gps04_rhythm_pattern_exporter_to_smf_add_midi_from_pattern_event
(GPS04SmfTrack *track,
guint pos,
const PS04RhythmPatternEvent *pattern_event);
track : |
|
pos : |
|
pattern_event : |
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.
|
char* gps04_rhythm_pattern_exporter_to_smf_suggest_filename
(const PS04RhythmPattern *pattern);
pattern : |
|
| Returns : |