I’m sure this is a noob question so I apologize, I’m currently trying to follow the Tutorial: Create a basic Audio/MIDI plugin, Part 2: Coding your plug-in, and i’m running into some issues,
I believe I have everything coded correctly but seem to get the following errors,
No member named ‘noteOnVel’ in ‘juce::AudioProcessor’
Unknown type name ‘uint8’; did you mean ‘uint’?
Editor placeholder in source file (this is on sliderValueChanged(juce::Slider *slider))
Sorry if this is a super easy one that i just missed.
There are two versions of the noteOn method. One accepts a float for the velocity parameter and the other accepts a uint8. Possibly it isn’t clear to the compiler which version you’re calling. I notice that in the tutorial noteOnVel is cast to uint8 before being passed to noteOn, so make sure you’re doing that too.
juce::uint8 was a HUGE help! however still getting the “No member named noteOnVel” error, seems like most of the confusion is from differences in juce 6
Or even better in that case, don’t use a local variable at all! Notice that i’m this kind of old school pitiful guy that still resists to the generalized usage of auto.
If you like uninitialised variables, then yes, avoid auto
And local variables have an advantage, they can serve as implicit comments to explain, what you assigned to it. Granted in this example it doesn‘t tell much…