#include <libopenmpt/libopenmpt_ext.h>
|
int(* | set_current_speed )(openmpt_module_ext *mod_ext, int32_t speed) |
|
int(* | set_current_tempo )(openmpt_module_ext *mod_ext, int32_t tempo) |
|
int(* | set_tempo_factor )(openmpt_module_ext *mod_ext, double factor) |
|
double(* | get_tempo_factor )(openmpt_module_ext *mod_ext) |
|
int(* | set_pitch_factor )(openmpt_module_ext *mod_ext, double factor) |
|
double(* | get_pitch_factor )(openmpt_module_ext *mod_ext) |
|
int(* | set_global_volume )(openmpt_module_ext *mod_ext, double volume) |
|
double(* | get_global_volume )(openmpt_module_ext *mod_ext) |
|
int(* | set_channel_volume )(openmpt_module_ext *mod_ext, int32_t channel, double volume) |
|
double(* | get_channel_volume )(openmpt_module_ext *mod_ext, int32_t channel) |
|
int(* | set_channel_mute_status )(openmpt_module_ext *mod_ext, int32_t channel, int mute) |
|
int(* | get_channel_mute_status )(openmpt_module_ext *mod_ext, int32_t channel) |
|
int(* | set_instrument_mute_status )(openmpt_module_ext *mod_ext, int32_t instrument, int mute) |
|
int(* | get_instrument_mute_status )(openmpt_module_ext *mod_ext, int32_t instrument) |
|
int32_t(* | play_note )(openmpt_module_ext *mod_ext, int32_t instrument, int32_t note, double volume, double panning) |
|
int(* | stop_note )(openmpt_module_ext *mod_ext, int32_t channel) |
|
◆ get_channel_mute_status
int(* openmpt_module_ext_interface_interactive::get_channel_mute_status) (openmpt_module_ext *mod_ext, int32_t channel) |
◆ get_channel_volume
double(* openmpt_module_ext_interface_interactive::get_channel_volume) (openmpt_module_ext *mod_ext, int32_t channel) |
◆ get_global_volume
double(* openmpt_module_ext_interface_interactive::get_global_volume) (openmpt_module_ext *mod_ext) |
◆ get_instrument_mute_status
int(* openmpt_module_ext_interface_interactive::get_instrument_mute_status) (openmpt_module_ext *mod_ext, int32_t instrument) |
◆ get_pitch_factor
double(* openmpt_module_ext_interface_interactive::get_pitch_factor) (openmpt_module_ext *mod_ext) |
◆ get_tempo_factor
double(* openmpt_module_ext_interface_interactive::get_tempo_factor) (openmpt_module_ext *mod_ext) |
◆ play_note
int32_t(* openmpt_module_ext_interface_interactive::play_note) (openmpt_module_ext *mod_ext, int32_t instrument, int32_t note, double volume, double panning) |
Play a note using the specified instrument
- Parameters
-
mod_ext | The module handle to work on. |
instrument | The instrument that should be played, in range [0, openmpt_module_get_num_instruments()[ if openmpt_module_get_num_instruments is not 0, otherwise in [0, openmpt_module_get_num_samples()[ |
note | The note to play, in rage [0, 119]. 60 is the middle C. |
volume | The volume at which the note should be triggered, in range [0.0, 1.0] |
panning | The panning position at which the note should be triggered, in range [-1.0, 1.0], 0.0 is center. |
- Returns
- The channel on which the note is played. This can pe be passed to openmpt_module_ext_interface_interactive::stop_note to stop the note. -1 means that no channel could be allocated and the note is not played.
- See also
- openmpt_module_ext_interface_interactive::stop_note
-
openmpt_module_ext_interface_interactive2::note_off
-
openmpt_module_ext_interface_interactive2::note_fade
◆ set_channel_mute_status
int(* openmpt_module_ext_interface_interactive::set_channel_mute_status) (openmpt_module_ext *mod_ext, int32_t channel, int mute) |
◆ set_channel_volume
int(* openmpt_module_ext_interface_interactive::set_channel_volume) (openmpt_module_ext *mod_ext, int32_t channel, double volume) |
◆ set_current_speed
int(* openmpt_module_ext_interface_interactive::set_current_speed) (openmpt_module_ext *mod_ext, int32_t speed) |
Set the current ticks per row (speed)
- Parameters
-
mod_ext | The module handle to work on. |
speed | The new tick count in range [1, 65535]. |
- Returns
- 1 on success, 0 on failure.
- See also
- openmpt_module_get_current_speed
◆ set_current_tempo
int(* openmpt_module_ext_interface_interactive::set_current_tempo) (openmpt_module_ext *mod_ext, int32_t tempo) |
◆ set_global_volume
int(* openmpt_module_ext_interface_interactive::set_global_volume) (openmpt_module_ext *mod_ext, double volume) |
◆ set_instrument_mute_status
int(* openmpt_module_ext_interface_interactive::set_instrument_mute_status) (openmpt_module_ext *mod_ext, int32_t instrument, int mute) |
◆ set_pitch_factor
int(* openmpt_module_ext_interface_interactive::set_pitch_factor) (openmpt_module_ext *mod_ext, double factor) |
Set the current module pitch factor without affecting playback speed
- Parameters
-
mod_ext | The module handle to work on. |
factor | The new pitch factor in range ]0.0, 4.0] - 1.0 means unmodified pitch. |
- Returns
- 1 on success, 0 on failure.
- See also
- openmpt_module_ext_interface_interactive::get_pitch_factor
◆ set_tempo_factor
int(* openmpt_module_ext_interface_interactive::set_tempo_factor) (openmpt_module_ext *mod_ext, double factor) |
Set the current module tempo factor without affecting playback pitch
- Parameters
-
mod_ext | The module handle to work on. |
factor | The new tempo factor in range ]0.0, 4.0] - 1.0 means unmodified tempo. |
- Returns
- 1 on success, 0 on failure.
- See also
- openmpt_module_ext_interface_interactive::get_tempo_factor
◆ stop_note
int(* openmpt_module_ext_interface_interactive::stop_note) (openmpt_module_ext *mod_ext, int32_t channel) |
The documentation for this struct was generated from the following file: