Skip to content

Commit 805c328

Browse files
committed
Updated to latest JUCE + error and warning fixes.
1 parent 22cdd92 commit 805c328

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

demo/JuceLibraryCode/AppConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// [END_USER_CODE_SECTION]
2222

23-
#define JUCE_PROJUCER_VERSION 0x80006
23+
#define JUCE_PROJUCER_VERSION 0x80007
2424

2525
//==============================================================================
2626
#define JUCE_MODULE_AVAILABLE_juce_analytics 1

modules/squarepine_audio/effects/LFOProcessor.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ LFOProcessor::LFOProcessor (double minFreqHz, double maxFreqHz,
3434
InternalProcessor (false),
3535
isMultiplying (isMult)
3636
{
37-
jassert (minFreqHz > 0.0f);
37+
jassert (minFreqHz > 0.0);
3838
jassert (maxFreqHz > minFreqHz);
3939

4040
auto layout = createDefaultParameterLayout();
@@ -43,7 +43,8 @@ LFOProcessor::LFOProcessor (double minFreqHz, double maxFreqHz,
4343
type = tp.get();
4444
layout.add (std::move (tp));
4545

46-
auto pf = std::make_unique<AudioParameterFloat> (ParameterID ("frequency", 1), "Frequency", minFreqHz, maxFreqHz, defaultFreqHz);
46+
auto pf = std::make_unique<AudioParameterFloat> (ParameterID ("frequency", 1), "Frequency",
47+
(float) minFreqHz, (float) maxFreqHz, (float) defaultFreqHz);
4748
frequency = pf.get();
4849
layout.add (std::move (pf));
4950

modules/squarepine_audio/music/Pitch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Pitch final
4848
[[nodiscard]] constexpr double getFrequencyHz() const noexcept { return frequency; }
4949

5050
/** @returns the MIDI note of the pitch. e.g. 440 = 69. */
51-
[[nodiscard]] constexpr int getMIDINote() const noexcept { return frequencyToMIDINote (frequency); }
51+
[[nodiscard]] int getMIDINote() const noexcept { return frequencyToMIDINote (frequency); }
5252

5353
/** @returns the note name of the pitch. e.g. 440 = A4. */
5454
[[nodiscard]] String getMIDINoteName() const;

0 commit comments

Comments
 (0)