Howdy! I’m walking myself through the “Build A Midi Synthesizer” tutorial here:
https://docs.juce.com/master/tutorial_synth_using_midi_input.html
And I’ve run into two bits of syntax I don’t understand in the startNote function. (I am new to C++ in addition to JUCE, so my apologies if this is really basic stuff. I’m coming from only a basic understanding of Java.) The function starts as follows:
void startNote (int midiNoteNumber, float velocity,
SynthesiserSound*, int /*currentPitchWheelPosition*/) override
-
What is happening with the “SynthesizerSound*” argument being passed into the function? I’ve not seen a declaration (of a pointer or otherwise) without a variable name like that, and it doesn’t seem like it’s used at all in the function itself.
-
What is happening with the “int /*currentPitchWheelPosition*/” argument? Is “currentPitchWheelPosition” actually commented out (making it like the above example, a type but no variable name), or is this another piece of syntax I don’t understand?
If it’s easier to link me to some basic C++ tutorials covering these topics that would also be greatly appreciated. I just didn’t have much luck searching for “pointer without name variable argument function C++” =P
Thanks and cheers,
John