Samples
-
struct sample_t
Represents an audio sample.
Contains the instructions needed to retrieve the actual audio data from the buffer (and loop over it).
Public Members
-
std::string name
Name of the sample.
-
uint32_t start
Start index of the sample in the buffer.
-
uint32_t end
End index of the sample in the buffer.
-
uint32_t loop_start
Starting point of the loop.
-
uint32_t loop_end
Ending point of the loop.
-
uint32_t sample_rate
Sample rate, in hertz, at which this sample was acquired.
-
uint8_t original_pitch
The MIDI key number of the recorded pitch of the sample.
-
int8_t pitch_correction
Pitch correction in cents that should be applied to the sample on playback
-
sample_type_t sample_type
Type of the sample.
-
uint16_t sample_link
Index of the other channel sample (if non-mono)
-
std::string name
-
enum knm::sf::sample_type_t
The different types of samples.
Values:
-
enumerator SAMPLE_TYPE_MONO
-
enumerator SAMPLE_TYPE_RIGHT
-
enumerator SAMPLE_TYPE_LEFT
-
enumerator SAMPLE_TYPE_LINKED
-
enumerator SAMPLE_TYPE_ROM_MONO
-
enumerator SAMPLE_TYPE_ROM_RIGHT
-
enumerator SAMPLE_TYPE_ROM_LEFT
-
enumerator SAMPLE_TYPE_ROM_LINKED
-
enumerator SAMPLE_TYPE_MONO