About
Noteflight only gives you the option to make tuplets with up to 7 notes, but if you take a look at its code, you'll notice that you can actually make tuplets of any size! I made this userscript because I didn't want to have to keep pasting code into the console every time I opened a score.
How to use
- Select the note or rest you want to turn into a tuplet.
- In the Rhythm palette, click the septuplet button.
- Enter the number of notes you want in the dialog that will open.
- Press enter or click OK.
Credits
- Original code:
- Variable/constant finder:
Extra stuff
If anyone wants the original code but doesn't want to go to the comment section of the score to find the code, here it is:
nfeditor.palette().currentPalette().applyTuplet=(e) => {if (e=="septuplet") {l=prompt("Enter number of notes in tuplet: ");nfeditor.documentController.controller.createTuplet(parseInt(l));} else {nfeditor.palette().currentPalette().applyAction("tuplet",{duplet:2,triplet:3,quadruplet:4,quintuplet:5,sextuplet:6}[e])}}
But there's really no point in not going to the score because it's an amazing piece of music.
Notes
In a later version, I might add an item to either the userscript context menu, the site context menu, or both, I'm not sure yet. I might also add a new button to the palette (obviously with GM_addElement) for larger tuplets.
Changelog