-
-
Save lgvr123/da646ab7bbaafbabf7d6e4379305dadf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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