The SFModulatorItem class represents a modulator.
More...
#include <modulator_item.hpp>
The SFModulatorItem class represents a modulator.
- See also
- "7.4 The PMOD Sub-chunk". In SoundFont Technical Specification 2.04.
-
"7.8 The IMOD Sub-chunk". In SoundFont Technical Specification 2.04.
Constructs a new SFModulatorItem using the specified controllers.
- Parameters
-
source_op | the source of data for the modulator. |
destination_op | the destination of the modulator. |
amount | the degree to which the source modulates the destination. |
amount_source_op | the modulation source to be applied to the modulation amount. |
transform_op | the transform type to be applied to the modulation source. |
sf2cute::SFModulatorItem::SFModulatorItem |
( |
const SFModulatorItem & |
origin | ) |
|
|
default |
int16_t sf2cute::SFModulatorItem::amount |
( |
| ) |
const |
|
noexcept |
Returns the constant of modulation amount.
- Returns
- the constant of modulation amount.
SFModulator sf2cute::SFModulatorItem::amount_source_op |
( |
| ) |
const |
|
noexcept |
Returns the modulation source to be applied to the modulation amount.
- Returns
- the modulation source to be applied to the modulation amount.
SFGenerator sf2cute::SFModulatorItem::destination_op |
( |
| ) |
const |
|
noexcept |
Returns the destination of the modulator.
- Returns
- the destination of the modulator.
Copy-assigns a new value to the SFModulatorItem, replacing its current contents.
- Parameters
-
Move-assigns a new value to the SFModulatorItem, replacing its current contents.
- Parameters
-
void sf2cute::SFModulatorItem::set_amount |
( |
int16_t |
amount | ) |
|
Sets the constant of modulation amount.
- Parameters
-
amount | the degree to which the source modulates the destination. |
void sf2cute::SFModulatorItem::set_amount_source_op |
( |
SFModulator |
amount_source_op | ) |
|
Sets the modulation source to be applied to the modulation amount.
- Parameters
-
amount_source_op | the modulation source to be applied to the modulation amount. |
void sf2cute::SFModulatorItem::set_destination_op |
( |
SFGenerator |
destination_op | ) |
|
Sets the destination of the modulator.
- Parameters
-
destination_op | the destination of the modulator. |
void sf2cute::SFModulatorItem::set_source_op |
( |
SFModulator |
source_op | ) |
|
Sets the source of data for the modulator.
- Parameters
-
source_op | the source of data for the modulator. |
void sf2cute::SFModulatorItem::set_transform_op |
( |
SFTransform |
transform_op | ) |
|
Sets the transform type to be applied to the modulation source.
- Parameters
-
transform_op | the transform type to be applied to the modulation source. |
SFModulator sf2cute::SFModulatorItem::source_op |
( |
| ) |
const |
|
noexcept |
Returns the source of data for the modulator.
- Returns
- the source of data for the modulator.
SFTransform sf2cute::SFModulatorItem::transform_op |
( |
| ) |
const |
|
noexcept |
Returns the transform type to be applied to the modulation source.
- Returns
- the transform type to be applied to the modulation source.
The documentation for this class was generated from the following file: