|
SF2cute
0.1
Modern C++ Library for SoundFont 2
|
The SFModulator class represents a controller in a modulator. More...
#include <modulator.hpp>
Public Member Functions | |
| SFModulator () | |
| Constructs a new SFModulator with no controller. | |
| SFModulator (uint16_t value) | |
| Constructs a new SFModulator from a pre-encoded integer. More... | |
| SFModulator (SFGeneralController controller, SFControllerDirection direction, SFControllerPolarity polarity, SFControllerType type) | |
| Constructs a new SFModulator with a general controller. More... | |
| SFModulator (SFMidiController controller, SFControllerDirection direction, SFControllerPolarity polarity, SFControllerType type) | |
| Constructs a new SFModulator with a MIDI controller. More... | |
| SFModulator (const SFModulator &origin)=default | |
| Constructs a new copy of specified SFModulator. More... | |
| SFModulator & | operator= (const SFModulator &origin)=default |
| Copy-assigns a new value to the SFModulator, replacing its current contents. More... | |
| SFModulator (SFModulator &&origin)=default | |
| Acquires the contents of specified SFModulator. More... | |
| SFModulator & | operator= (SFModulator &&origin)=default |
| Move-assigns a new value to the SFModulator, replacing its current contents. More... | |
| ~SFModulator ()=default | |
| Destructs the SFModulator. | |
| uint8_t | controller () const noexcept |
| Returns the index of the controller. More... | |
| SFGeneralController | general_controller () const noexcept |
| Returns the type of this general controller. More... | |
| SFMidiController | midi_controller () const noexcept |
| Returns the type of this MIDI controller. More... | |
| void | set_controller (uint8_t controller) |
| Sets the index of the controller. More... | |
| void | set_general_controller (SFGeneralController controller) |
| Sets the general controller index and the type of controller palette. More... | |
| void | set_midi_controller (SFMidiController controller) |
| Sets the MIDI controller index and the type of controller palette. More... | |
| SFControllerPalette | controller_palette () const noexcept |
| Returns the type of controller palette. More... | |
| void | set_controller_palette (SFControllerPalette controller_palette) |
| Sets the type of controller palette. More... | |
| SFControllerDirection | direction () const noexcept |
| Returns the direction of the controller. More... | |
| void | set_direction (SFControllerDirection direction) |
| Sets the direction of the controller. More... | |
| SFControllerPolarity | polarity () const noexcept |
| Returns the polarity of the controller. More... | |
| void | set_polarity (SFControllerPolarity polarity) |
| Sets the polarity of the controller. More... | |
| SFControllerType | type () const noexcept |
| Returns the source type of the controller. More... | |
| void | set_type (SFControllerType type) |
| Sets the source type of the controller. More... | |
| operator uint16_t () const noexcept | |
| Converts SFModulator to an integer value. | |
Friends | |
| bool | operator== (const SFModulator &x, const SFModulator &y) noexcept |
| Indicates a SFModulator object is "equal to" the other one. More... | |
| bool | operator!= (const SFModulator &x, const SFModulator &y) noexcept |
| Indicates a SFModulator object is "not equal to" the other one. More... | |
| bool | operator< (const SFModulator &x, const SFModulator &y) noexcept |
| Indicates a SFModulator object is "less than" the other one. More... | |
| bool | operator<= (const SFModulator &x, const SFModulator &y) noexcept |
| Indicates a SFModulator object is "less than or equal to" the other one. More... | |
| bool | operator> (const SFModulator &x, const SFModulator &y) noexcept |
| Indicates a SFModulator object is "greater than" the other one. More... | |
| bool | operator>= (const SFModulator &x, const SFModulator &y) noexcept |
| Indicates a SFModulator object is "greater than or equal to" the other one. More... | |
The SFModulator class represents a controller in a modulator.
|
explicit |
Constructs a new SFModulator from a pre-encoded integer.
| value | the value that represents a SFModulator |
| sf2cute::SFModulator::SFModulator | ( | SFGeneralController | controller, |
| SFControllerDirection | direction, | ||
| SFControllerPolarity | polarity, | ||
| SFControllerType | type | ||
| ) |
Constructs a new SFModulator with a general controller.
| controller | the type of general controller. |
| direction | the direction of the controller. |
| polarity | the polarity of the controller. |
| type | the source type of the controller. |
| sf2cute::SFModulator::SFModulator | ( | SFMidiController | controller, |
| SFControllerDirection | direction, | ||
| SFControllerPolarity | polarity, | ||
| SFControllerType | type | ||
| ) |
Constructs a new SFModulator with a MIDI controller.
| controller | the type of MIDI controller. |
| direction | the direction of the controller. |
| polarity | the polarity of the controller. |
| type | the source type of the controller. |
|
default |
Constructs a new copy of specified SFModulator.
| origin | a SFModulator object. |
|
default |
Acquires the contents of specified SFModulator.
| origin | a SFModulator object. |
|
noexcept |
Returns the index of the controller.
|
noexcept |
Returns the type of controller palette.
|
noexcept |
Returns the direction of the controller.
|
noexcept |
Returns the type of this general controller.
|
noexcept |
Returns the type of this MIDI controller.
|
default |
Copy-assigns a new value to the SFModulator, replacing its current contents.
| origin | a SFModulator object. |
|
default |
Move-assigns a new value to the SFModulator, replacing its current contents.
| origin | a SFModulator object. |
|
noexcept |
Returns the polarity of the controller.
| void sf2cute::SFModulator::set_controller | ( | uint8_t | controller | ) |
Sets the index of the controller.
| controller | the index of the controller. |
| void sf2cute::SFModulator::set_controller_palette | ( | SFControllerPalette | controller_palette | ) |
Sets the type of controller palette.
| controller_palette | the type of controller palette. |
| void sf2cute::SFModulator::set_direction | ( | SFControllerDirection | direction | ) |
Sets the direction of the controller.
| direction | the direction of the controller. |
| void sf2cute::SFModulator::set_general_controller | ( | SFGeneralController | controller | ) |
Sets the general controller index and the type of controller palette.
| controller | the type of general controller. |
| void sf2cute::SFModulator::set_midi_controller | ( | SFMidiController | controller | ) |
Sets the MIDI controller index and the type of controller palette.
| controller | the type of MIDI controller. |
| void sf2cute::SFModulator::set_polarity | ( | SFControllerPolarity | polarity | ) |
Sets the polarity of the controller.
| polarity | the polarity of the controller. |
| void sf2cute::SFModulator::set_type | ( | SFControllerType | type | ) |
Sets the source type of the controller.
| type | the source type of the controller. |
|
noexcept |
Returns the source type of the controller.
|
friend |
Indicates a SFModulator object is "not equal to" the other one.
| x | the first object to be compared. |
| y | the second object to be compared. |
|
friend |
Indicates a SFModulator object is "less than" the other one.
| x | the first object to be compared. |
| y | the second object to be compared. |
|
friend |
Indicates a SFModulator object is "less than or equal to" the other one.
| x | the first object to be compared. |
| y | the second object to be compared. |
|
friend |
Indicates a SFModulator object is "equal to" the other one.
| x | the first object to be compared. |
| y | the second object to be compared. |
|
friend |
Indicates a SFModulator object is "greater than" the other one.
| x | the first object to be compared. |
| y | the second object to be compared. |
|
friend |
Indicates a SFModulator object is "greater than or equal to" the other one.
| x | the first object to be compared. |
| y | the second object to be compared. |