Skip to content

Instantly share code, notes, and snippets.

MuseScore 1.3 all included (cloc mscore)

  --------------------------------------------------------------------------------
  Language                      files          blank        comment           code
  --------------------------------------------------------------------------------
  C++                             998          42647          29127         346825
  XML                             214            952           1481         148280
  HTML                             34             37             54          30425
  C/C++ Header                    537           6800           6961          25966

C 20 1044 1513 5729

@lasconic
lasconic / colorNoteSel.qml
Last active December 12, 2015 06:49
colorNoteSel.qml
import QtQuick 1.0
import MuseScore 1.0
MuseScore {
version: "1.0"
description: "This demo plugin colors notes in the selection depending on pitch"
menuPath: "Plugins.colornotes"
property variant colors : [
"#e21c48", "#f26622", "#f99d1c",
@lasconic
lasconic / cmhd_scores.md
Last active December 11, 2015 21:59
List of scores for classical MHD
@lasconic
lasconic / gist:4234030
Created December 7, 2012 15:39
Extract lyrics from score - MuseScore 2.0
import QtQuick 1.0
import MuseScore 1.0
MuseScore {
menuPath: "Plugins.pluginName"
onRun: {
var cursor = curScore.newCursor();
var sArray= new Array();
for (var track = 0; track < curScore.ntracks; ++track) {
cursor.track = track;
@lasconic
lasconic / gist:4148636
Created November 26, 2012 14:59
Lyrics
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
import QtQuick 1.0
import MuseScore 1.0
import QtWebKit 1.0
import FileIO 1.0
MuseScore {
menuPath: "Plugins.ABC Web"
onRun: {
}
import QtQuick 1.0
import MuseScore 1.0
import FileIO 1.0
MuseScore {
menuPath: "Plugins.ABC Import"
width: 640
height: 480
onRun: {}
@lasconic
lasconic / trumpetfingeringfr.js
Created May 8, 2012 15:58
Trumpet fingering plugin for MuseScore with french note names
//=============================================================================
// MuseScore
//
// Note names and fingerings for Trumpet Bb
// changable for other Brass
//
// Contribution Artur Vilá Canal
// Copyright (c) 2011 Karl Gerhards, (C)2008 Werner Schweer and others
//
// This program is free software; you can redistribute it and/or modify
@lasconic
lasconic / diatonic_accordion_25_key.js
Created April 19, 2012 22:44
Diatonic Accordion Tablature
//=============================================================================
// MuseScore
// Linux Music Score Editor
// $Id:$
//
// G/C Diatonic accordion plugin
// This version is for the 25 keys Hohner Galaad diatonic accordion.
//
// Copyright (C)2012 Pierre Thomas, Rich Helms, Werner Schweer and others
// This is a variation of Werner Schweer very famous recorder_fingering plugin.
@lasconic
lasconic / readui.js
Created March 10, 2012 17:45
Creating a GUI in QtScript using .ui file
//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;