Skip to content

Instantly share code, notes, and snippets.

@lgvr123
Created January 1, 2023 12:14
Show Gist options
  • Save lgvr123/da646ab7bbaafbabf7d6e4379305dadf to your computer and use it in GitHub Desktop.
Save lgvr123/da646ab7bbaafbabf7d6e4379305dadf to your computer and use it in GitHub Desktop.
import QtQuick 2.2
import MuseScore 3.0
MuseScore {
menuPath: "Plugins.MIDI Exporter"
description: "Export MIDI for REAPER"
id: exportMidi
version: "2.0"
Component.onCompleted: {
if (mscoreMajorVersion >= 4) {
some_id.title = "MIDI Exporter";
// some_id.thumbnailName = "thumbnail.png";
some_id.categoryCode = "composing-arranging-tools";
}
}
onRun: {
// curScore.startCmd();
var s = curScore;
var p = curScore.path;
p = p.slice(0, -5);
p = p.replace(/\//gi, "\\");
writeScore(s, p, 'mid');
console.log(p);
// curScore.endCmd();
// quit(); // Not supported by MS3
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment