Skip to content

Instantly share code, notes, and snippets.

@lgvr123
lgvr123 / note enricher.qml
Last active Jan 7, 2021
Musecore plugin qml code for enriching a note with a name and octave ("A4", "Cb5", ...), and accidental name
View note enricher.qml
function enrichNote(note) {
// accidental
var id = note.accidentalType;
note.accidentalName = "NONE";
if (id != 0) {
for (var i = 0; i < accidentals.length; i++) {
var acc = accidentals[i];
if (id == eval("Accidental." + acc.name)) {
note.accidentalName = acc.name;
break;
@lgvr123
lgvr123 / StTimeLine.sc
Last active Jan 7, 2021
SuperCollider StTimeLine.sc
View StTimeLine.sc
StTimeline {
var <id;
var <>nodes;
var <>debug=false;
classvar <notifTypes;
*new {
^super.newCopyArgs(UniqueID.next,[]);
}