PLUGIN: Trumpet / Trombone Finger/Slide Plugin Simple and Under Notes

• Mar 8, 2023 - 10:12


In reply to by Jojo-Schmitz

Yes, i know.
But i mean: it would be better if these kinds of plugins would not be based on midi notes, but just on note names (and octave)
That way, it could be used for (almost) all brass instruments, with the exception of double F horn (on the Bb side) and euphonium/tuba
On the other hand, students needing fingering indications will probably not play on a C or Eb trumpet.

In reply to by graffesmusic

You can deduce easily if you have a transposing instrument or not.
You can deduce that from the notes them self, not from the instrument(*).

var note=curScore.selection.elements[0];
console.log(JSON.stringify({"pitch": note.pitch,"tpc1":note.tpc1,"tpc2":note.tpc2,"tpc":note.tpc, "basskey": note.tpc2-note.tpc1}));
if (note.tpc===note.tpc1) 
      console.log("In Concert Pitch")
      console.log("In Played Pitch")

For a "Eb Trumpet", the computed bass-key is -3.

(*) This is not available as an instrument property in the API, though it is defined at the instrument level in the ìnstruments.xml` file.

In reply to by Jojo-Schmitz

Yes, it can tell you that !! That's the magic ;-)

Comparing note.tpc with note.tpc1 (or note.tpc2) can tell you if you are in Concert Pitch or not.
But comparing note.tpc1 with note.tpc2 will tell if the instrument is transposing.

E.g. for which ever note, note.tpc2-note.tpc1 will return 3 for a Eb Trumpet, and 0 for a flute.
There you go. You've got your instrument's transposition.

Do you still have an unanswered question? Please log in first to post your question.