|
DSPark 1.9.0
Header-only C++20 DSP for real-time and offline audio
|
One zone, as the caller describes it. More...
#include <SampleZone.h>

Public Attributes | |
| AudioBufferView< const T > | audio |
| The recording (1 or more channels). | |
| double | sampleRate = 48000.0 |
| Its sample rate. | |
| int | rootKey = 60 |
| MIDI key that plays it untransposed. | |
| double | tuneCents = 0.0 |
| Fine tuning added to every note. | |
| int | keyLow = 0 |
| Lowest key it answers (inclusive). | |
| int | keyHigh = 127 |
| Highest key it answers (inclusive). | |
| double | velocityLow = 0.0 |
| Lowest velocity it answers, 0..1 (inclusive). | |
| double | velocityHigh = 1.0 |
| Highest velocity it answers, 0..1 (inclusive). | |
| double | gainDb = 0.0 |
| Zone gain. | |
| double | pan = 0.0 |
| -1 left .. +1 right (balance for multichannel). | |
| int64_t | startOffset = 0 |
| First sample played. | |
| SampleLoopMode | loopMode = SampleLoopMode::None |
| int64_t | loopStart = 0 |
| First sample of the loop. | |
| int64_t | loopEnd = 0 |
| One past the last sample of the loop. | |
| int64_t | loopCrossfade = 0 |
| Crossfade length in samples (0 = hard loop). | |
| bool | equalPowerCrossfade = false |
One zone, as the caller describes it.
Definition at line 38 of file SampleZone.h.
| AudioBufferView<const T> dspark::SampleZoneSpec< T >::audio |
The recording (1 or more channels).
Definition at line 40 of file SampleZone.h.
| bool dspark::SampleZoneSpec< T >::equalPowerCrossfade = false |
Equal-power fade (uncorrelated material) instead of linear (phase-matched material).
Definition at line 55 of file SampleZone.h.
| double dspark::SampleZoneSpec< T >::gainDb = 0.0 |
Zone gain.
Definition at line 48 of file SampleZone.h.
| int dspark::SampleZoneSpec< T >::keyHigh = 127 |
Highest key it answers (inclusive).
Definition at line 45 of file SampleZone.h.
| int dspark::SampleZoneSpec< T >::keyLow = 0 |
Lowest key it answers (inclusive).
Definition at line 44 of file SampleZone.h.
| int64_t dspark::SampleZoneSpec< T >::loopCrossfade = 0 |
Crossfade length in samples (0 = hard loop).
Definition at line 54 of file SampleZone.h.
| int64_t dspark::SampleZoneSpec< T >::loopEnd = 0 |
One past the last sample of the loop.
Definition at line 53 of file SampleZone.h.
| SampleLoopMode dspark::SampleZoneSpec< T >::loopMode = SampleLoopMode::None |
Definition at line 51 of file SampleZone.h.
| int64_t dspark::SampleZoneSpec< T >::loopStart = 0 |
First sample of the loop.
Definition at line 52 of file SampleZone.h.
| double dspark::SampleZoneSpec< T >::pan = 0.0 |
-1 left .. +1 right (balance for multichannel).
Definition at line 49 of file SampleZone.h.
| int dspark::SampleZoneSpec< T >::rootKey = 60 |
MIDI key that plays it untransposed.
Definition at line 42 of file SampleZone.h.
| double dspark::SampleZoneSpec< T >::sampleRate = 48000.0 |
Its sample rate.
Definition at line 41 of file SampleZone.h.
| int64_t dspark::SampleZoneSpec< T >::startOffset = 0 |
First sample played.
Definition at line 50 of file SampleZone.h.
| double dspark::SampleZoneSpec< T >::tuneCents = 0.0 |
Fine tuning added to every note.
Definition at line 43 of file SampleZone.h.
| double dspark::SampleZoneSpec< T >::velocityHigh = 1.0 |
Highest velocity it answers, 0..1 (inclusive).
Definition at line 47 of file SampleZone.h.
| double dspark::SampleZoneSpec< T >::velocityLow = 0.0 |
Lowest velocity it answers, 0..1 (inclusive).
Definition at line 46 of file SampleZone.h.