SF2cute  0.1
Modern C++ Library for SoundFont 2
sf2cute::GenAmountType Union Reference

The GenAmountType class represents an amount of generator. More...

#include <types.hpp>

Public Member Functions

 GenAmountType () noexcept
 Constructs a new zero-valued GenAmountType.
 
 GenAmountType (RangesType range) noexcept
 Constructs a new GenAmountType using the specified range. More...
 
 GenAmountType (int16_t value) noexcept
 Constructs a new GenAmountType using the specified integer value. More...
 

Public Attributes

RangesType range
 Range of the amount.
 
int16_t value
 Integer value of the amount.
 
uint16_t uvalue
 Unsigned integer value of the amount.
 

Detailed Description

The GenAmountType class represents an amount of generator.

Remarks
This class represents the official genAmountType type.
See also
"4.5 SoundFont 2 RIFF File Format Type Definitions". In SoundFont Technical Specification 2.04.

Constructor & Destructor Documentation

sf2cute::GenAmountType::GenAmountType ( RangesType  range)
inlinenoexcept

Constructs a new GenAmountType using the specified range.

Parameters
rangethe range.
sf2cute::GenAmountType::GenAmountType ( int16_t  value)
inlinenoexcept

Constructs a new GenAmountType using the specified integer value.

Parameters
valuethe amount.

The documentation for this union was generated from the following file: