Type error? (Musescore 2.0 plugin))
Hi, I'm not too familiar with the new plugin syntax in Musescore 2, so pardon me if I'm asking something really dumb here..
I seem to have type errors within the first four lines of
var tempChord = new Chord();
var tempNote = new Note();
tempNote.pitch = startNote.ppitch + ((i + 1) / realNotesInBetweenGliss) * (pitchDiff - 1); tempChord.add(tempNote);
tempChord.duration = tickLengthDiff / realNotesInBetweenGliss;
tempChord.visible = false;
The error is usually on the third line, so I'm guessing I can't treat the Note.pitch as is? It could also be the division causing the error as realNotesInBetweenGliss is an integer and somehow i + 1 is a double?
C++/C# type declarations like
Chord tempChord = new Chord();
var tempChord : Chord = new Chord();
gives syntax errors like 'unknown symbol " ," or " :" ' for some reason.
Someone enlighten me please, thanks!