96 bool appliesToChannel (
int midiChannel)
override;
103 std::unique_ptr<AudioBuffer<float>> data;
104 double sourceSampleRate;
106 int length = 0, midiRootNote = 0;
141 void pitchWheelMoved (
int newValue)
override;
148 double pitchRatio = 0;
149 double sourceSamplePosition = 0;
150 float lgain = 0, rgain = 0;
A very simple ADSR envelope class.
Holds a resizable array of primitive or copy-by-value objects.
An arbitrarily large integer class.
A subclass of SynthesiserSound that represents a sampled audio clip.
AudioBuffer< float > * getAudioData() const noexcept
Returns the audio sample data.
void setEnvelopeParameters(ADSR::Parameters parametersToUse)
Changes the parameters of the ADSR envelope which will be applied to the sample.
const String & getName() const noexcept
Returns the sample's name.
A subclass of SynthesiserVoice that can play a SamplerSound.
Describes one of the sounds that a Synthesiser can play.
Represents a voice that a Synthesiser can use to play a SynthesiserSound.
Holds the parameters being used by an ADSR object.
#define JUCE_API
This macro is added to all JUCE public class declarations.