Noteflight Tuplet Improver

Colton Stone
2025-06-14T22:37:47Z

allows you to make tuplets of any size in Noteflight!

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

1. Select the note or rest you want to turn into a tuplet.

2. In the Rhythm palette, click the septuplet button.

3. Enter the number of notes you want in the dialog that will open.

4. Press enter or click OK.

Credits

Original code:

Author: Regan K. Zieber

Source: INTERSTELLAR (Virtuoso Piano Arrangement) (the code is in one of Regan's comments)

Variable/constant finder:

GitHub Gist: https://gist.github.com/chrisjhoughton/7890239

The code I used: https://gist.github.com/chrisjhoughton/7890239?permalink_comment_id=3299151#gistcomment-3299151

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

v1.0.0 — Initial release