The SFGeneratorItem class represents a generator.
More...
#include <generator_item.hpp>
The SFGeneratorItem class represents a generator.
- See also
- "7.5 The PGEN Sub-chunk". In SoundFont Technical Specification 2.04.
-
"7.9 The IGEN Sub-chunk". In SoundFont Technical Specification 2.04.
Constructs a new SFGeneratorItem using the specified properties.
- Parameters
-
op | the type of the generator. |
amount | the value to be assigned to the generator. |
sf2cute::SFGeneratorItem::SFGeneratorItem |
( |
const SFGeneratorItem & |
origin | ) |
|
|
default |
Returns the amount of the generator.
- Returns
- the value represents the amount of the generator.
Indicates a SFGenerator object is "less than" the other one.
- Parameters
-
x | the first SFGenerator to be compared. |
y | the second SFGenerator to be compared. |
- Returns
- true if a SFGenerator object is "less than" the other one.
Returns the type of the generator.
- Returns
- the type of the generator.
Copy-assigns a new value to the SFGeneratorItem, replacing its current contents.
- Parameters
-
Move-assigns a new value to the SFGeneratorItem, replacing its current contents.
- Parameters
-
void sf2cute::SFGeneratorItem::set_amount |
( |
GenAmountType |
amount | ) |
|
Sets the amount of the generator.
- Parameters
-
amount | the value to be assigned to the generator. |
void sf2cute::SFGeneratorItem::set_amount |
( |
uint8_t |
lo, |
|
|
uint8_t |
hi |
|
) |
| |
Sets the amount of the generator in a range.
- Parameters
-
lo | the low end of range. |
hi | the high end of range. |
void sf2cute::SFGeneratorItem::set_amount |
( |
int16_t |
amount | ) |
|
Sets the amount of the generator in an integer.
- Parameters
-
amount | the value to be assigned to the generator. |
void sf2cute::SFGeneratorItem::set_amount |
( |
uint16_t |
amount | ) |
|
Sets the amount of the generator in an unsigned integer.
- Parameters
-
amount | the value to be assigned to the generator. |
void sf2cute::SFGeneratorItem::set_op |
( |
SFGenerator |
op | ) |
|
Sets the type of the generator.
- Parameters
-
op | the type of the generator. |
The documentation for this class was generated from the following file: