@@ -37,6 +37,8 @@ namespace birdhouse
37
37
case MsgType::MidiBend:
38
38
midiMessage = juce::MidiMessage::pitchWheel (outputMidiChannel, static_cast <int > (normalizedValue * 16383 ) - 8192 );
39
39
break ;
40
+ case MsgType::NumMsgTypes:
41
+ break ;
40
42
default :
41
43
break ;
42
44
}
@@ -152,33 +154,33 @@ namespace birdhouse
152
154
DBG (" Changing path from " + mPath + " to " + newPath);
153
155
mPath = newPath;
154
156
}
155
- void setInputMin (auto newFromMin)
157
+ void setInputMin (float newFromMin)
156
158
{
157
159
DBG (" Changing input min from " + juce::String (mInputMin .load ()) + " to " + juce::String (newFromMin) + " for path " + mPath );
158
160
mInputMin = newFromMin;
159
161
}
160
162
161
- void setInputMax (auto newFromMax)
163
+ void setInputMax (float newFromMax)
162
164
{
163
165
DBG (" Changing input max from " + juce::String (mInputMax .load ()) + " to " + juce::String (newFromMax) + " for path " + mPath );
164
166
mInputMax = newFromMax;
165
167
}
166
168
167
- void setOutputMidiChannel (auto newOutputMidiChannel)
169
+ void setOutputMidiChannel (int newOutputMidiChannel)
168
170
{
169
171
DBG (" Changing output MIDI channel from " + juce::String (mOutputMidiChan ) + " to " + juce::String (newOutputMidiChannel) + " for path " + mPath );
170
172
mMidiChanged .store (true );
171
173
mOutputMidiChan = newOutputMidiChannel;
172
174
}
173
175
174
- void setOutputMidiNum (auto newOutputNum)
176
+ void setOutputMidiNum (int newOutputNum)
175
177
{
176
178
DBG (" Changing output MIDI number from " + juce::String (mOutMidiNum ) + " to " + juce::String (newOutputNum) + " for path " + mPath );
177
179
mMidiChanged .store (true );
178
180
mOutMidiNum = newOutputNum;
179
181
}
180
182
181
- void setOutputType (auto newOutputType)
183
+ void setOutputType (MsgType newOutputType)
182
184
{
183
185
DBG (" Changing output type from " + juce::String (mMsgType ) + " to " + juce::String (newOutputType) + " for path " + mPath );
184
186
mMidiChanged .store (true );
@@ -191,14 +193,14 @@ namespace birdhouse
191
193
mMuted = shouldBeMuted;
192
194
}
193
195
194
- inline void setRawValue (auto newValue)
196
+ inline void setRawValue (float newValue)
195
197
{
196
198
DBG (" Changing raw value from " + juce::String (mRawValue .load ()) + " to " + juce::String (newValue) + " for path " + mPath );
197
199
mRawValue = newValue;
198
200
}
199
201
inline auto getRawValue () const { return mRawValue .load (); }
200
202
201
- inline auto normalizeValue (auto rawValue) -> auto
203
+ inline auto normalizeValue (float rawValue) -> auto
202
204
{
203
205
return juce::jmap (rawValue, mInputMin .load (), mInputMax .load (), 0 .0f , 1 .0f );
204
206
}
0 commit comments