SoundFontInfoLib
2.21.6
Library for parsing and rendering SF2 files
|
Memory layout of a 'inst' entry. More...
#include <Instrument.hpp>
Inherits SF2::Entity::Entity.
Public Member Functions | |
Instrument (IO::Pos &pos) | |
std::string | name () const |
uint16_t | firstZoneIndex () const |
uint16_t | zoneCount () const |
void | dump (const std::string &indent, int index) const |
Static Public Attributes | |
constexpr static size_t | size = 22 |
Memory layout of a 'inst' entry.
The size of this is defined to be 22 bytes.
An instrument
is ultimately defined by its samples, but there can be multiple instruments defined that use the same sample source with different gen/mod settings (the sample source is indeed itself a generator setting).
|
inlineexplicit |
References SF2::IO::Pos::readInto(), size, and SF2::IO::trim_property().
void Instrument::dump | ( | const std::string & | indent, |
int | index | ||
) | const |
References firstZoneIndex(), name(), and zoneCount().
|
inline |
Referenced by dump(), SF2::Render::Instrument::Instrument(), and zoneCount().
|
inline |
Referenced by dump().
|
inline |
References SF2::Entity::Entity::calculateSize(), firstZoneIndex(), and SF2::Entity::Entity::next().
Referenced by dump(), and SF2::Render::Instrument::Instrument().
|
staticconstexpr |
Referenced by Instrument().