Top |
AgsMidiSmfUtil * ags_midi_smf_util_alloc ();
Allocate MIDI util.
Since: 6.0.0
void
ags_midi_smf_util_free (AgsMidiSmfUtil *midi_smf_util
);
Free MIDI util.
Since: 6.0.0
AgsMidiSmfUtil *
ags_midi_smf_util_copy (AgsMidiSmfUtil *midi_smf_util
);
Copy MIDI util.
Since: 6.0.0
guint ags_midi_smf_util_get_varlength_size (AgsMidiSmfUtil *midi_smf_util
,gint varlength
);
Retrieve the size needed to store the variable length.
Since: 6.0.0
void ags_midi_smf_util_put_varlength (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint varlength
);
Put the variable lenght value to buffer
.
Since: 6.0.0
guint ags_midi_smf_util_get_varlength (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *varlength
);
Get the variable lenght value from buffer
.
Since: 6.0.0
void ags_midi_smf_util_put_int16 (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint val
);
Put signed 16 bit integer.
Since: 6.0.0
void ags_midi_smf_util_get_int16 (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *val
);
Get signed 32 bit integer.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
val |
return location of the integer. |
[out] |
Since: 6.0.0
void ags_midi_smf_util_put_int24 (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint val
);
Put signed 24 bit integer.
Since: 6.0.0
void ags_midi_smf_util_get_int24 (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *val
);
Get signed 24 bit integer.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
val |
return location of the integer. |
[out] |
Since: 6.0.0
void ags_midi_smf_util_put_int32 (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint val
);
Put signed 32 bit integer.
Since: 6.0.0
void ags_midi_smf_util_get_int32 (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *val
);
Get signed 32 bit integer.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
val |
return location of the integer. |
[out] |
Since: 6.0.0
void ags_midi_smf_util_put_header (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint chunk_length
,gint format
,gint track_count
,gint division
);
Puts the midi header.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
chunk_length |
header chunk length |
|
format |
either 0, 1 or 2. |
|
track_count |
the number of tracks |
|
division |
timing division |
Since: 6.0.0
guint ags_midi_smf_util_get_header (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *chunk_length
,gint *format
,gint *track_count
,gint *division
);
Gets the midi header
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
chunk_length |
the return location of header chunk length. |
[out] |
format |
the return location of format either 0, 1 or 2. |
[out] |
track_count |
the return location of the number of tracks. |
[out] |
division |
the return location of timing division. |
[out] |
Since: 6.0.0
void ags_midi_smf_util_put_track (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint chunk_length
);
Put track.
Since: 6.0.0
guint ags_midi_smf_util_get_track (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *chunk_length
);
Get track
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
chunk_length |
the return location of track chunk length. |
[out] |
Since: 6.0.0
void ags_midi_smf_util_put_key_on (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint delta_time
,gint channel
,gint key
,gint velocity
);
Puts the given values to buffer
with appropriate channel message.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
timing information |
|
channel |
valid channels from 0-15 |
|
key |
valid keys to play 0-128 |
|
velocity |
the key dynamics |
Since: 6.0.0
guint ags_midi_smf_util_get_key_on (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *delta_time
,gint *channel
,gint *key
,gint *velocity
);
Get the key-on message from buffer
.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
the return location of timing information. |
[out] |
channel |
the return location of channel. |
[out] |
key |
the return location of key. |
[out] |
velocity |
the return location of velocity. |
[out] |
Since: 6.0.0
void ags_midi_smf_util_put_key_off (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint delta_time
,gint channel
,gint key
,gint velocity
);
Puts the given values to buffer
with appropriate channel message.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
timing information |
|
channel |
valid channels from 0-15 |
|
key |
valid keys to play 0-128 |
|
velocity |
the key dynamics |
Since: 6.0.0
guint ags_midi_smf_util_get_key_off (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *delta_time
,gint *channel
,gint *key
,gint *velocity
);
Get the key-off message from buffer
.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
the return location of timing information. |
[out] |
channel |
the return location of channel. |
[out] |
key |
the return location of key. |
[out] |
velocity |
the return location of velocity. |
[out] |
Since: 6.0.0
void ags_midi_smf_util_put_key_pressure (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint delta_time
,gint channel
,gint key
,gint pressure
);
Puts the given values to buffer
with appropriate channel message.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
timing information |
|
channel |
valid channels from 0-15 |
|
key |
valid keys to play 0-128 |
|
pressure |
the key dynamics |
Since: 6.0.0
guint ags_midi_smf_util_get_key_pressure (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *delta_time
,gint *channel
,gint *key
,gint *pressure
);
Get the key-pressure message from buffer
.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
the return location of timing information. |
[out] |
channel |
the return location of channel. |
[out] |
key |
the return location of key. |
[out] |
pressure |
the return location of pressure. |
[out] |
Since: 6.0.0
void ags_midi_smf_util_put_change_parameter (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint delta_time
,gint channel
,gint control
,gint value
);
Put change parameter.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
timing information |
|
channel |
channel |
|
control |
the control |
|
value |
the value |
Since: 6.0.0
guint ags_midi_smf_util_get_change_parameter (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *delta_time
,gint *channel
,gint *control
,gint *value
);
Get change parameter.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
the return location of timing information. |
[out] |
channel |
the return location of channel. |
[out] |
control |
the return location of the control. |
[out] |
value |
the return location the value. |
[out] |
Since: 6.0.0
void ags_midi_smf_util_put_pitch_bend (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint delta_time
,gint channel
,gint transmitter
);
Put pitch bend.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
timing information |
|
channel |
channel |
|
transmitter |
the transmitter |
Since: 6.0.0
guint ags_midi_smf_util_get_pitch_bend (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *delta_time
,gint *channel
,gint *transmitter
);
Get pitch bend.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
the return location of timing information. |
[out] |
channel |
the return location of channel. |
[out] |
transmitter |
the return location the transmitter signed 14 bit integer. |
[out] |
Since: 6.0.0
void ags_midi_smf_util_put_change_program (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint delta_time
,gint channel
,gint program
);
Put change program.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
timing information |
|
channel |
channel |
|
program |
the program |
Since: 6.0.0
guint ags_midi_smf_util_get_change_program (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *delta_time
,gint *channel
,gint *program
);
Get change program.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
the return location of timing information. |
[out] |
channel |
the return location of channel. |
[out] |
program |
the return location of the program. |
[out] |
Since: 6.0.0
void ags_midi_smf_util_put_change_pressure (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint delta_time
,gint channel
,gint pressure
);
Put change pressure.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
timing information |
|
channel |
channel |
|
pressure |
the pressure |
Since: 6.0.0
guint ags_midi_smf_util_get_change_pressure (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *delta_time
,gint *channel
,gint *pressure
);
Get change pressure.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
the return location of timing information. |
[out] |
channel |
the return location of channel. |
[out] |
pressure |
the return location of the pressure. |
[out] |
Since: 6.0.0
void ags_midi_smf_util_put_sysex (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint delta_time
,guchar *data
,gint length
);
Put sysex.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
timing information |
|
data |
the data |
|
length |
the data's length |
Since: 6.0.0
guint ags_midi_smf_util_get_sysex (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *delta_time
,guchar **data
,gint *length
);
Get sysex.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
the return location of timing information. |
[out] |
data |
the return location of data. |
[out] |
length |
the return location of length. |
[out] |
Since: 6.0.0
void ags_midi_smf_util_put_quarter_frame (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint delta_time
,gint message_type
,gint values
);
Put quarter frame.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
timing information |
|
message_type |
the message type |
|
values |
the values |
Since: 6.0.0
guint ags_midi_smf_util_get_quarter_frame (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *delta_time
,gint *message_type
,gint *values
);
Get quarter frame.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
the return location of timing information. |
[out] |
message_type |
the return location of the message type. |
[out] |
values |
the return location of the values. |
[out] |
Since: 6.0.0
void ags_midi_smf_util_put_song_position (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint delta_time
,gint song_position
);
Put song position.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
timing information |
|
song_position |
the song position |
Since: 6.0.0
guint ags_midi_smf_util_get_song_position (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *delta_time
,gint *song_position
);
Get song position.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
the return location of timing information. |
[out] |
song_position |
the return location of the song position. |
[out] |
Since: 6.0.0
void ags_midi_smf_util_put_song_select (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint delta_time
,gint song_select
);
Put song select.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
timing information |
|
song_select |
the song select |
Since: 6.0.0
guint ags_midi_smf_util_get_song_select (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *delta_time
,gint *song_select
);
Get song select.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
the return location of timing information. |
[out] |
song_select |
the return location of the song select. |
[out] |
Since: 6.0.0
void ags_midi_smf_util_put_tune_request (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint delta_time
);
Put tune request
Since: 6.0.0
guint ags_midi_smf_util_get_tune_request (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *delta_time
);
Get tune request.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
the return location of timing information. |
[out] |
Since: 6.0.0
void ags_midi_smf_util_put_sequence_number (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint delta_time
,gint sequence
);
Put sequence number.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
timing information |
|
sequence |
the sequence |
Since: 6.0.0
guint ags_midi_smf_util_get_sequence_number (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *delta_time
,gint *sequence
);
Get sequence number.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
the return location of timing information. |
[out] |
sequence |
the return location of the sequence. |
[out] |
Since: 6.0.0
void ags_midi_smf_util_put_smtpe (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint delta_time
,gint rr
,gint hr
,gint mn
,gint se
,gint fr
);
Put smtpe timestamp.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
timing information |
|
rr |
frame rate |
|
hr |
hour |
|
mn |
minute |
|
se |
second |
|
fr |
frame number |
Since: 6.0.0
guint ags_midi_smf_util_get_smtpe (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *delta_time
,gint *rr
,gint *hr
,gint *mn
,gint *se
,gint *fr
);
Get smtpe timestamp.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
the return location of timing information. |
[out] |
rr |
the return location of frame rate. |
[out] |
hr |
the return location of hour. |
[out] |
mn |
the return location of minute. |
[out] |
se |
the return location of second. |
[out] |
fr |
the return location of frame number. |
[out] |
Since: 6.0.0
void ags_midi_smf_util_put_tempo (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint delta_time
,gint tempo
);
Put tempo.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
timing information |
|
tempo |
the tempo |
Since: 6.0.0
guint ags_midi_smf_util_get_tempo (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *delta_time
,gint *tempo
);
Get tempo.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
the return location of timing information. |
[out] |
tempo |
the tempo |
Since: 6.0.0
void ags_midi_smf_util_put_time_signature (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint delta_time
,gint nn
,gint dd
,gint cc
,gint bb
);
Put time signature
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
timing information |
|
nn |
numerator |
|
dd |
denominator |
|
cc |
clocks |
|
bb |
beats |
Since: 6.0.0
guint ags_midi_smf_util_get_time_signature (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *delta_time
,gint *nn
,gint *dd
,gint *cc
,gint *bb
);
Get time signature.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
the return location of timing information. |
[out] |
nn |
the return location of numerator. |
[out] |
dd |
the return location of denominator. |
[out] |
cc |
the return location of clocks. |
[out] |
bb |
the return location of beats. |
[out] |
Since: 6.0.0
void ags_midi_smf_util_put_key_signature (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint delta_time
,gint sf
,gint mi
);
Put key signature.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
timing information |
|
sf |
flats or sharps |
|
mi |
1 equals minor or 0 means major |
Since: 6.0.0
guint ags_midi_smf_util_get_key_signature (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *delta_time
,gint *sf
,gint *mi
);
Get key signature.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
the return location of timing information. |
[out] |
sf |
the return location of flats or sharps. |
[out] |
mi |
the return location of minor or major. |
[out] |
Since: 6.0.0
void ags_midi_smf_util_put_sequencer_meta_event (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint delta_time
,gint len
,gint id
,gint data
);
Put sequencer meta event.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
timing information |
|
len |
the length of data |
|
id |
the manufacturer id |
|
data |
the data |
Since: 6.0.0
guint ags_midi_smf_util_get_sequencer_meta_event (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *delta_time
,gint *len
,gint *id
,gint *data
);
Get sequencer meta event.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
the return location of timing information. |
[out] |
len |
the return location of the length of data. |
[out] |
id |
the return location of the manufacturer id. |
[out] |
data |
the return location of the data. |
[out] |
Since: 6.0.0
void ags_midi_smf_util_put_text_event (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint delta_time
,gchar *text
,gint length
);
Put text event.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
timing information |
|
text |
the text |
|
length |
the length |
Since: 6.0.0
guint ags_midi_smf_util_get_text_event (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *delta_time
,gchar **text
,gint *length
);
Get text event.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
the return location of timing information. |
[out] |
text |
the return location of the text. |
[out] |
length |
the return location of the length. |
[out] |
Since: 6.0.0
guint ags_midi_smf_util_get_undefined (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *delta_time
);
Get undefined.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
the return location of timing information. |
[out] |
Since: 6.16.18
void ags_midi_smf_util_put_midi_channel_prefix (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint delta_time
,gint midi_channel
);
Put MIDI channel prefix.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
timing information |
|
midi_channel |
the MIDI channel |
Since: 6.16.18
guint ags_midi_smf_util_get_midi_channel_prefix (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *delta_time
,gint *midi_channel
);
Get MIDI channel prefix.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
the return location of timing information. |
[out] |
midi_channel |
the return location MIDI channel. |
[out] |
Since: 6.16.18
void ags_midi_smf_util_put_end_of_track (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint delta_time
);
Put end of track.
Since: 6.0.0
guint ags_midi_smf_util_get_end_of_track (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,gint *delta_time
);
Get end of track.
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the MIDI buffer |
|
delta_time |
the return location of timing information. |
[out] |
Since: 6.0.0
guchar * ags_midi_smf_util_seek_message (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,guint message_count
,gint *delta_time
);
Seek MIDI messages from buffer
midi_smf_util |
the AgsMidiSmfUtil |
|
buffer |
the buffer to seek |
|
message_count |
seek count messages |
|
delta_time |
the return location of current delta time. |
[out] |
Since: 6.0.0
guint ags_midi_smf_util_decode (AgsMidiSmfUtil *midi_smf_util
,guchar *buffer
,snd_seq_event_t *event
);
Decode event
to buffer
Since: 6.0.0