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.
That would tell you whether the concert button is pressed or nor, but not whether (in general) the instrument is transposing. At least as far as I can tell?
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.
Comments
So you're talking about https://musescore.org/en/project/trumpet-trombone-fingerslide-plugin-si…, right?
If so, check the plugin code, esp. this:
Change to 0 for a non-transposing trumpet
In reply to So you're talking about… by Jojo-Schmitz
yes.
sorry for double post. can this be deleted?
In reply to yes. sorry for double post… by graffesmusic
See my edited reply above
In reply to See my edited reply above 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 Yes, i know. But i mean: it… 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(*).
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 You can deduce easily if you… by parkingb
That would tell you whether the concert button is pressed or nor, but not whether (in general) the instrument is transposing. At least as far as I can tell?
In reply to That would tell you whether… by Jojo-Schmitz
Yes, it can tell you that !! That's the magic ;-)
Comparing
note.tpc
withnote.tpc1
(ornote.tpc2
) can tell you if you are in Concert Pitch or not.But comparing
note.tpc1
withnote.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.
In reply to Yes, it can tell you that !!… by parkingb
Ah, I see
In reply to Ah, I see by Jojo-Schmitz
Thanks for the tip.
I'll check it when i have some time. It would solve the problem.