File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
juce_audio_formats/sampler
juce_audio_processors/utilities Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff 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
9396private:
9497 // ==============================================================================
Original file line number Diff line number Diff 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
137140protected:
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 ;
You can’t perform that action at this time.
0 commit comments