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
//--------------------------------------------------------- | |
// init | |
// this function will be called on startup of mscore | |
//--------------------------------------------------------- | |
function init() | |
{ | |
} | |
//------------------------------------------------------------------- |
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
//============================================================================= | |
// 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. |
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
//============================================================================= | |
// 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 |
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 | |
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 | |
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 |
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(); | |
var sArray= new Array(); | |
for (var track = 0; track < curScore.ntracks; ++track) { | |
cursor.track = track; |
OlderNewer