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

One zone, as the caller describes it. More...

#include <SampleZone.h>

Collaboration diagram for dspark::SampleZoneSpec< T >:

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
 

Detailed Description

template<FloatType T>
struct dspark::SampleZoneSpec< T >

One zone, as the caller describes it.

Definition at line 38 of file SampleZone.h.

Member Data Documentation

◆ audio

template<FloatType T>
AudioBufferView<const T> dspark::SampleZoneSpec< T >::audio

The recording (1 or more channels).

Definition at line 40 of file SampleZone.h.

◆ equalPowerCrossfade

template<FloatType T>
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.

◆ gainDb

template<FloatType T>
double dspark::SampleZoneSpec< T >::gainDb = 0.0

Zone gain.

Definition at line 48 of file SampleZone.h.

◆ keyHigh

template<FloatType T>
int dspark::SampleZoneSpec< T >::keyHigh = 127

Highest key it answers (inclusive).

Definition at line 45 of file SampleZone.h.

◆ keyLow

template<FloatType T>
int dspark::SampleZoneSpec< T >::keyLow = 0

Lowest key it answers (inclusive).

Definition at line 44 of file SampleZone.h.

◆ loopCrossfade

template<FloatType T>
int64_t dspark::SampleZoneSpec< T >::loopCrossfade = 0

Crossfade length in samples (0 = hard loop).

Definition at line 54 of file SampleZone.h.

◆ loopEnd

template<FloatType T>
int64_t dspark::SampleZoneSpec< T >::loopEnd = 0

One past the last sample of the loop.

Definition at line 53 of file SampleZone.h.

◆ loopMode

template<FloatType T>
SampleLoopMode dspark::SampleZoneSpec< T >::loopMode = SampleLoopMode::None

Definition at line 51 of file SampleZone.h.

◆ loopStart

template<FloatType T>
int64_t dspark::SampleZoneSpec< T >::loopStart = 0

First sample of the loop.

Definition at line 52 of file SampleZone.h.

◆ pan

template<FloatType T>
double dspark::SampleZoneSpec< T >::pan = 0.0

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

Definition at line 49 of file SampleZone.h.

◆ rootKey

template<FloatType T>
int dspark::SampleZoneSpec< T >::rootKey = 60

MIDI key that plays it untransposed.

Definition at line 42 of file SampleZone.h.

◆ sampleRate

template<FloatType T>
double dspark::SampleZoneSpec< T >::sampleRate = 48000.0

Its sample rate.

Definition at line 41 of file SampleZone.h.

◆ startOffset

template<FloatType T>
int64_t dspark::SampleZoneSpec< T >::startOffset = 0

First sample played.

Definition at line 50 of file SampleZone.h.

◆ tuneCents

template<FloatType T>
double dspark::SampleZoneSpec< T >::tuneCents = 0.0

Fine tuning added to every note.

Definition at line 43 of file SampleZone.h.

◆ velocityHigh

template<FloatType T>
double dspark::SampleZoneSpec< T >::velocityHigh = 1.0

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

Definition at line 47 of file SampleZone.h.

◆ velocityLow

template<FloatType T>
double dspark::SampleZoneSpec< T >::velocityLow = 0.0

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

Definition at line 46 of file SampleZone.h.


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