Skip to content

Commit 995f6c4

Browse files
committed
modifications to Sampler and Parameter
1 parent 5114747 commit 995f6c4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

modules/juce_audio_formats/sampler/juce_Sampler.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ class JUCE_API SamplerSound : public SynthesiserSound
8989
//==============================================================================
9090
bool appliesToNote (int midiNoteNumber) override;
9191
bool appliesToChannel (int midiChannel) override;
92+
93+
double getSourceSampleRate() const { return sourceSampleRate; }
94+
int getMidiRootNote() const { return midiRootNote; }
9295

9396
private:
9497
//==============================================================================

modules/juce_audio_processors/utilities/juce_AudioParameterFloat.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ class JUCE_API AudioParameterFloat : public RangedAudioParameter
133133

134134
/** Provides access to the parameter's range. */
135135
NormalisableRange<float> range;
136+
137+
//this should be public
138+
float getDefaultValue() const override;
136139

137140
protected:
138141
/** Override this method if you are interested in receiving callbacks
@@ -144,7 +147,7 @@ class JUCE_API AudioParameterFloat : public RangedAudioParameter
144147
//==============================================================================
145148
float getValue() const override;
146149
void setValue (float newValue) override;
147-
float getDefaultValue() const override;
150+
148151
int getNumSteps() const override;
149152
String getText (float, int) const override;
150153
float getValueForText (const String&) const override;

0 commit comments

Comments
 (0)