|
Gin
|
Sample-based oscillator with pitch tracking and looping capabilities. 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) |
Sample-based oscillator with pitch tracking and looping capabilities.
SampleOscillator plays back audio samples at different pitches, similar to a sampler. It supports looping, bidirectional playback, sample range selection, and automatic resampling to match the target pitch.
Key Features:
Direction Modes:
Usage:
|
default |
| void SampleOscillator::noteOn | ( | ) |
| void SampleOscillator::noteOff | ( | ) |
| bool SampleOscillator::read | ( | double | note, |
| juce::AudioSampleBuffer & | buffer, | ||
| int | start = 0, |
||
| int | length = -1 |
||
| ) |