OpenShot Library | libopenshot-audio
0.2.0
|
73 int midiNoteForNormalPitch,
74 double attackTimeSecs,
75 double releaseTimeSecs,
76 double maxSampleLengthSeconds);
95 bool appliesToNote (
int midiNoteNumber)
override;
96 bool appliesToChannel (
int midiChannel)
override;
103 std::unique_ptr<AudioBuffer<float>> data;
104 double sourceSampleRate;
106 int length = 0, midiRootNote = 0;
138 void startNote (
int midiNoteNumber,
float velocity,
SynthesiserSound*,
int pitchWheel)
override;
139 void stopNote (
float velocity,
bool allowTailOff)
override;
141 void pitchWheelMoved (
int newValue)
override;
142 void controllerMoved (
int controllerNumber,
int newValue)
override;
148 double pitchRatio = 0;
149 double sourceSamplePosition = 0;
150 float lgain = 0, rgain = 0;
Describes one of the sounds that a Synthesiser can play.
An arbitrarily large integer class.
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 SynthesiserSound that represents a sampled audio clip.
#define JUCE_API
This macro is added to all JUCE public class declarations.
Represents a voice that a Synthesiser can use to play a SynthesiserSound.
A very simple ADSR envelope class.
Holds the parameters being used by an ADSR object.
AudioBuffer< float > * getAudioData() const noexcept
Returns the audio sample data.
A subclass of SynthesiserVoice that can play a SamplerSound.