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 json | |
import collections | |
with open('glyphnames.json') as data_file: | |
data = json.load(data_file) | |
data = collections.OrderedDict(sorted(data.items())) | |
f = open('glyphnames.txt', 'w') |
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 os | |
import re | |
def grep(path, regex, regexcontent): | |
regObj = re.compile(regex) | |
res = set() | |
for root, dirs, fnames in os.walk(path): | |
for fname in fnames: | |
if regObj.match(fname) and not "sym.cpp" in fname: |
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
"element:symbol", "Symbol" | |
"element:text", "Text" | |
"element:instrumentname", "Instrument Name" | |
"element:slursegment", "Slur Segment" | |
"element:stafflines", "Staff Lines" | |
"element:barline", "Bar Line" | |
"element:stemslash", "Stem Slash" | |
"element:line", "Line" | |
"element:bracket", "Bracket" | |
"element:arpeggio", "Arpeggio" |
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 fontforge #Load the module | |
import json | |
import shutil | |
import os | |
source = "mscore" | |
#source = "MScoreText" | |
fontFile = source + ".sfd" | |
tmpFile = source + "tmp.sfd" | |
outFile = "out/" + source + ".ttf" |
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
// Apply the given function to all notes in selection | |
function applyToNotesInSelection(func) | |
{ | |
var cursor = new Cursor(curScore); | |
var selectionEnd = new Cursor(curScore); | |
cursor.goToSelectionStart(); | |
selectionEnd.goToSelectionEnd(); | |
var startStaff = cursor.staff; | |
var endStaff = selectionEnd.staff; |
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
function getSettings() | |
{ | |
var settings = new Object(); | |
settings.name = "Youtube Resolver"; | |
settings.weight = 50; | |
settings.timeout = 5; | |
settings.maxResults = 5; | |
return settings; | |
} |
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
//read the UI file and create a form out of it | |
var loader = new QUiLoader(null); | |
var file = new QFile(pluginPath + "/my.ui"); | |
file.open(QIODevice.OpenMode(QIODevice.ReadOnly, QIODevice.Text)); | |
form = loader.load(file, null); | |
//initialize some widget value if necessary | |
form.verticalLayoutWidget.myLabel.text = curScore.title; | |
form.verticalLayoutWidget.myLabel2.text = curScore.composer; |
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 1.0 | |
import MuseScore 1.0 | |
import QtWebKit 1.0 | |
import FileIO 1.0 | |
MuseScore { | |
menuPath: "Plugins.ABC Web" | |
onRun: { | |
} |
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 1.0 | |
import MuseScore 1.0 | |
import FileIO 1.0 | |
MuseScore { | |
menuPath: "Plugins.ABC Import" | |
width: 640 | |
height: 480 | |
onRun: {} |
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 1.0 | |
import MuseScore 1.0 | |
MuseScore { | |
menuPath: "Plugins.pluginName" | |
onRun: { | |
var cursor = curScore.newCursor(); | |
for (var track = 0; track < curScore.ntracks; ++track) { | |
cursor.track = track; | |
cursor.rewind(0); // set cursor to first chord/rest |
OlderNewer