DSPark 1.8.0
Header-only C++20 DSP for real-time and offline audio
Loading...
Searching...
No Matches
dspark::Sampler< T >::ZoneSpec Struct Reference

One zone, as the caller describes it. The audio is copied. More...

#include <Sampler.h>

Collaboration diagram for dspark::Sampler< T >::ZoneSpec:

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.
 
LoopMode loopMode = LoopMode::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
 

Detailed Description

template<FloatType T>
struct dspark::Sampler< T >::ZoneSpec

One zone, as the caller describes it. The audio is copied.

Definition at line 116 of file Sampler.h.

Member Data Documentation

◆ audio

template<FloatType T>
AudioBufferView<const T> dspark::Sampler< T >::ZoneSpec::audio

The recording (1 or more channels).

Definition at line 118 of file Sampler.h.

◆ equalPowerCrossfade

template<FloatType T>
bool dspark::Sampler< T >::ZoneSpec::equalPowerCrossfade = false

Equal-power fade (uncorrelated material) instead of linear (phase-matched material).

Definition at line 133 of file Sampler.h.

◆ gainDb

template<FloatType T>
double dspark::Sampler< T >::ZoneSpec::gainDb = 0.0

Zone gain.

Definition at line 126 of file Sampler.h.

◆ keyHigh

template<FloatType T>
int dspark::Sampler< T >::ZoneSpec::keyHigh = 127

Highest key it answers (inclusive).

Definition at line 123 of file Sampler.h.

◆ keyLow

template<FloatType T>
int dspark::Sampler< T >::ZoneSpec::keyLow = 0

Lowest key it answers (inclusive).

Definition at line 122 of file Sampler.h.

◆ loopCrossfade

template<FloatType T>
int64_t dspark::Sampler< T >::ZoneSpec::loopCrossfade = 0

Crossfade length in samples (0 = hard loop).

Definition at line 132 of file Sampler.h.

◆ loopEnd

template<FloatType T>
int64_t dspark::Sampler< T >::ZoneSpec::loopEnd = 0

One past the last sample of the loop.

Definition at line 131 of file Sampler.h.

◆ loopMode

template<FloatType T>
LoopMode dspark::Sampler< T >::ZoneSpec::loopMode = LoopMode::None

Definition at line 129 of file Sampler.h.

◆ loopStart

template<FloatType T>
int64_t dspark::Sampler< T >::ZoneSpec::loopStart = 0

First sample of the loop.

Definition at line 130 of file Sampler.h.

◆ pan

template<FloatType T>
double dspark::Sampler< T >::ZoneSpec::pan = 0.0

-1 left .. +1 right (balance for multichannel).

Definition at line 127 of file Sampler.h.

◆ rootKey

template<FloatType T>
int dspark::Sampler< T >::ZoneSpec::rootKey = 60

MIDI key that plays it untransposed.

Definition at line 120 of file Sampler.h.

◆ sampleRate

template<FloatType T>
double dspark::Sampler< T >::ZoneSpec::sampleRate = 48000.0

Its sample rate.

Definition at line 119 of file Sampler.h.

◆ startOffset

template<FloatType T>
int64_t dspark::Sampler< T >::ZoneSpec::startOffset = 0

First sample played.

Definition at line 128 of file Sampler.h.

◆ tuneCents

template<FloatType T>
double dspark::Sampler< T >::ZoneSpec::tuneCents = 0.0

Fine tuning added to every note.

Definition at line 121 of file Sampler.h.

◆ velocityHigh

template<FloatType T>
double dspark::Sampler< T >::ZoneSpec::velocityHigh = 1.0

Highest velocity it answers, 0..1 (inclusive).

Definition at line 125 of file Sampler.h.

◆ velocityLow

template<FloatType T>
double dspark::Sampler< T >::ZoneSpec::velocityLow = 0.0

Lowest velocity it answers, 0..1 (inclusive).

Definition at line 124 of file Sampler.h.


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