Changing Notehead Letters to Numbers

• Apr 24, 2021 - 05:20

Hello.

I would like to use Jianpu-style numbered notation for my particular project, but I understand this is not an option in Musescore at this time.

What would be satisfactory, however, would be to have the numbers inside the notehead. I would like something like Pitch Name Notehead Scheme, only with 1-7 instead of C-B. Thus rename C to 1, D to 2, E to 3, F to 4, G to 5, A to 6, & B to 7. This system adds a sharp or flat when applicable, which would work very well for my project.

How would I go about either creating a Notehead Scheme with these numbers inside of the noteheads or going into the system & changing the letters to numbers?

Also, this April 23, 2021, is Jianpu still not an option for Musescore? (Just making sure I wasn't reading an old post.)

I appreciate any guidance you can give me.


Comments

In reply to by wolfgan

This is the relevant code snippet

         switch (notes[i].tpc) {
            case -1: text.text = qsTranslate("InspectorAmbitus", "F♭♭") + text.text; break;
            case  0: text.text = qsTranslate("InspectorAmbitus", "C♭♭") + text.text; break;
            case  1: text.text = qsTranslate("InspectorAmbitus", "G♭♭") + text.text; break;
            case  2: text.text = qsTranslate("InspectorAmbitus", "D♭♭") + text.text; break;
            case  3: text.text = qsTranslate("InspectorAmbitus", "A♭♭") + text.text; break;
            case  4: text.text = qsTranslate("InspectorAmbitus", "E♭♭") + text.text; break;
            case  5: text.text = qsTranslate("InspectorAmbitus", "B♭♭") + text.text; break;
            case  6: text.text = qsTranslate("InspectorAmbitus", "F♭")  + text.text; break;
            case  7: text.text = qsTranslate("InspectorAmbitus", "C♭")  + text.text; break;
 
            case  8: text.text = qsTranslate("InspectorAmbitus", "G♭")  + text.text; break;
            case  9: text.text = qsTranslate("InspectorAmbitus", "D♭")  + text.text; break;
            case 10: text.text = qsTranslate("InspectorAmbitus", "A♭")  + text.text; break;
            case 11: text.text = qsTranslate("InspectorAmbitus", "E♭")  + text.text; break;
            case 12: text.text = qsTranslate("InspectorAmbitus", "B♭")  + text.text; break;
            case 13: text.text = qsTranslate("InspectorAmbitus", "F")   + text.text; break;
            case 14: text.text = qsTranslate("InspectorAmbitus", "C")   + text.text; break;
            case 15: text.text = qsTranslate("InspectorAmbitus", "G")   + text.text; break;
            case 16: text.text = qsTranslate("InspectorAmbitus", "D")   + text.text; break;
            case 17: text.text = qsTranslate("InspectorAmbitus", "A")   + text.text; break;
            case 18: text.text = qsTranslate("InspectorAmbitus", "E")   + text.text; break;
            case 19: text.text = qsTranslate("InspectorAmbitus", "B")   + text.text; break;
 
            case 20: text.text = qsTranslate("InspectorAmbitus", "F♯")  + text.text; break;
            case 21: text.text = qsTranslate("InspectorAmbitus", "C♯")  + text.text; break;
            case 22: text.text = qsTranslate("InspectorAmbitus", "G♯")  + text.text; break;
            case 23: text.text = qsTranslate("InspectorAmbitus", "D♯")  + text.text; break;
            case 24: text.text = qsTranslate("InspectorAmbitus", "A♯")  + text.text; break;
            case 25: text.text = qsTranslate("InspectorAmbitus", "E♯")  + text.text; break;
            case 26: text.text = qsTranslate("InspectorAmbitus", "B♯")  + text.text; break;
            case 27: text.text = qsTranslate("InspectorAmbitus", "F♯♯") + text.text; break;
            case 28: text.text = qsTranslate("InspectorAmbitus", "C♯♯") + text.text; break;
            case 29: text.text = qsTranslate("InspectorAmbitus", "G♯♯") + text.text; break;
            case 30: text.text = qsTranslate("InspectorAmbitus", "D♯♯") + text.text; break;
            case 31: text.text = qsTranslate("InspectorAmbitus", "A♯♯") + text.text; break;
            case 32: text.text = qsTranslate("InspectorAmbitus", "E♯♯") + text.text; break;
            case 33: text.text = qsTranslate("InspectorAmbitus", "B♯♯") + text.text; break;
            default: text.text = qsTr("?")   + text.text; break;
         } // end switch tpc

Just replace the letter with numbers. You may drop the qsTranslate("InspectorAmbitus", (and the closing paren), but don't need to)

Thank you so much for your helpful replies.

I think I will be able to manage substituting numbers for letters in that code chain, but where do I find this chain?

Sorry for my confusion.

In reply to by Jojo-Schmitz

I'm really sorry. I downloaded the Note Names plugin (Version 3.x). I changed my Musescore language to British English as not to possibly screw up my letter note input. Yet I'm not really sure just what to open or where to change it, where this list is.

Locale_en, TS File?

Or do I need to somehow use a modified keyboard & change the pertinent QWERTY letters to the numbers I want?

Sorry again for my confusion. I appreciate your help.

My relative designed me a plugin that puts in the note numbers a while back. I'm sure I uploaded it to Musescore. It goes 1-7 so the C6 will need to be altered to 1+ or 8. The bass keys 1-7 and I put L2 L3 etc. the name allocated to it was Number AJF. if you can find it as a plugin

Thank you all for your help.

I have downloaded the Note Numbers plugin, run it, & gotten the numbers above the staff. This is similar to how the Note Names has worked for me in the past.

I have LibreOffice, Apache Open Office, & of course Notepad. LibreOffice claims the qml file is corrupt & won't open it, while Open Office & Notepad will open it, but most of the symbols are rather nonsensical.

I have access to Microsoft Office on another computer. Would Word work, or is there some software I need to download to alter the qml file?

I really appreciate everyone's help.

In reply to by LadyBluebell

Any decent text editor can edit this. Some may not deale properly with the flats and sharps though, which are UTF8 characters, others, like Notepad, might stumble accross the file having UNIX style line endings rather then DOS style ones.
You can also just use MuseScores builtin Plugin Editor

For whatever reason, I was able to pull up this qml file in Word in a recognizable format. I created 2 files that ended in qml.txt that perhaps might be of use of interest to someone.

The Numbers was switched to all numbers in the default order, number then accidental, & I altered Jianpu to accidentals then numbers. Not sure if this is accurate naming, but this is the difference with the files I altered.

I appreciate everyone's help.

Attachment Size
numbernotenames.qml.txt 11.04 KB
jianpunotenames.qml.txt 11.04 KB

In reply to by mpvick

But just slightly. At least in Windows 7 it was crap and couldn't deal with UNIX line endings. Seems improved with Windows 10, but there it seems to have been renamed to "Editor".
At least it doesn't tamper with the extension, like Word or WordPad does

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