Gin
|
Oscillator for playing samples. More...
Public Types | |
enum | Direction { forwards , backwards , pingpong } |
Public Member Functions | |
SampleOscillator ()=default | |
void | setSampleRateAndBlockSize (double sr, int bs) |
void | setSample (Sample *) |
void | setRange (int s, int e) |
void | setLooping (bool l, int s=0, int e=-1) |
void | setDirection (Direction d) |
void | setCrossfadeDuration (double s) |
void | noteOn () |
void | noteOff () |
bool | read (double note, juce::AudioSampleBuffer &buffer, int start=0, int length=-1) |
Oscillator for playing samples.
|
default |
void SampleOscillator::setSampleRateAndBlockSize | ( | double | sr, |
int | bs | ||
) |
void SampleOscillator::setSample | ( | Sample * | ) |
void SampleOscillator::setRange | ( | int | s, |
int | e | ||
) |
void SampleOscillator::setLooping | ( | bool | l, |
int | s = 0 , |
||
int | e = -1 |
||
) |
void SampleOscillator::setDirection | ( | Direction | d | ) |
void SampleOscillator::setCrossfadeDuration | ( | double | s | ) |
void SampleOscillator::noteOn | ( | ) |
void SampleOscillator::noteOff | ( | ) |
bool SampleOscillator::read | ( | double | note, |
juce::AudioSampleBuffer & | buffer, | ||
int | start = 0 , |
||
int | length = -1 |
||
) |