|
Gin
|
Stereo oscillator with multiple voices for unison/detuning effects. More...
#include <gin_oscillators.h>
Public Member Functions | |
| VoicedStereoOscillator ()=default | |
| void | setSampleRate (double sr) |
| void | noteOn (float phase=-1) |
| void | noteOn (float phases[]) |
| void | process (float note, const P ¶ms, juce::AudioSampleBuffer &buffer) |
| void | processAdding (float note, const P ¶ms, juce::AudioSampleBuffer &buffer) |
Protected Attributes | |
| juce::OwnedArray< O > | oscillators |
Stereo oscillator with multiple voices for unison/detuning effects.
VoicedStereoOscillator is a template class that wraps any oscillator type (O) and adds multi-voice capabilities with stereo spread, detuning, and panning. This creates rich, thick unison sounds commonly used in synthesizers.
Key Features:
The voices are evenly distributed across:
Template Parameters:
Usage:
|
default |
| void VoicedStereoOscillator< O, P >::setSampleRate | ( | double | sr | ) |
References oscillators.
| void VoicedStereoOscillator< O, P >::noteOn | ( | float | phase = -1 | ) |
References oscillators.
| void VoicedStereoOscillator< O, P >::noteOn | ( | float | phases[] | ) |
References oscillators.
| void VoicedStereoOscillator< O, P >::process | ( | float | note, |
| const P & | params, | ||
| juce::AudioSampleBuffer & | buffer ) |
References processAdding().
| void VoicedStereoOscillator< O, P >::processAdding | ( | float | note, |
| const P & | params, | ||
| juce::AudioSampleBuffer & | buffer ) |
References oscillators.
Referenced by process().
|
protected |
Referenced by noteOn(), noteOn(), processAdding(), and setSampleRate().