您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
allows you to make tuplets of any size in Noteflight!
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.
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.
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.