Gin
|
Oscillator for playing samples. More...
#include <gin_sampleoscillator.h>
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::noteOn | ( | ) |
void SampleOscillator::noteOff | ( | ) |
bool SampleOscillator::read | ( | double | note, |
juce::AudioSampleBuffer & | buffer, | ||
int | start = 0 , |
||
int | length = -1 |
||
) |