Skip to content

Instantly share code, notes, and snippets.

@lasconic
lasconic / symbolUseInMuseScore.py
Created March 20, 2014 16:50
Python script to find all SMuFL symbols used in MuseScore source
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:
"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"
@lasconic
lasconic / uncrustify.cfg
Created June 29, 2015 16:58
Uncrustify configuration file for MuseScore. To be used with https://github.com/lasconic/uncrustify/tree/indent_param
# Uncrustify 0.61
#
# General options
#
# The type of line endings
newlines = auto # auto/lf/crlf/cr
# The original size of tabs in the input
@lasconic
lasconic / gist:712f15ff9fddbd5edb7b
Created July 13, 2015 14:21
reorder musescore font
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"
accidentalBakiyeFlat
accidentalBuyukMucennebFlat
accidentalBuyukMucennebSharp
accidentalDoubleFlat
accidentalDoubleSharp
accidentalFlat
accidentalKomaSharp
accidentalKoron
accidentalKucukMucennebSharp
accidentalNatural
<?xml version="1.0" encoding="UTF-8"?>
<mnx>
<head>
<identification>
<title>Hot Cross Buns</title>
</identification>
</head>
<score content="cwmn">
<part>
<part-name>Melody</part-name>
targetOS=macosx-x86_64
:git_build
:generateProgramId
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:compileTestJava UP-TO-DATE
:processTestResources NO-SOURCE
:testClasses UP-TO-DATE
:test UP-TO-DATE
SvgPaintEngine() : QPaintEngine(svgEngineFeatures()),
stateStream(&stateString)
{
d_ptr = new SvgPaintEnginePrivate;
}
@lasconic
lasconic / randomvelocity.qml
Last active September 25, 2018 08:16
This plugin for MuseScore 2 randomizes the velocity of notes between minRandom and maxRandom
//=============================================================================
// MuseScore
// Music Composition & Notation
//
// Copyright (C) 2018 Nicolas Froment
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2
// as published by the Free Software Foundation and appearing in
// the file LICENCE.GPL
(function() {
function readAll() {
const links = document.querySelectorAll("div.forum__topic-status--new + div.forum__title div.forum__name a")
for (const a of links) {
console.log(a.href)
var sArray = a.href.split("/")
var nid = sArray[sArray.length - 1];