|
| 1 | +//============================================================================= |
| 2 | +// MuseScore |
| 3 | +// Harmonica plugin |
| 4 | +// |
| 5 | +// Copyright (C)2012 lasconic |
| 6 | +// |
| 7 | +// This program is free software; you can redistribute it and/or modify |
| 8 | +// it under the terms of the GNU General Public License version 2. |
| 9 | +// |
| 10 | +// This program is distributed in the hope that it will be useful, |
| 11 | +// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | +// GNU General Public License for more details. |
| 14 | +// |
| 15 | +// You should have received a copy of the GNU General Public License |
| 16 | +// along with this program; if not, write to the Free Software |
| 17 | +// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 18 | +//============================================================================= |
| 19 | + |
| 20 | + // 60 C C# D D# E F F# G G# A A# B |
| 21 | +var holes = ["+1", "", "-1", "", "+2", "-2\"", "", "+3", "", "-3\"", "", "-3", |
| 22 | + "+4", "", "-4", "", "+5", "-5", "", "+6", "", "-6", "", "-7", |
| 23 | + "+7", "", "-8", "", "+8", "-9", "", "+9", "", "-10", "", "+10'", |
| 24 | + "+10" |
| 25 | +]; |
| 26 | + |
| 27 | +var shift = 60; |
| 28 | + |
| 29 | +//--------------------------------------------------------- |
| 30 | +// init |
| 31 | +//--------------------------------------------------------- |
| 32 | + |
| 33 | +function init() |
| 34 | + { |
| 35 | + } |
| 36 | + |
| 37 | +//------------------------------------------------------------------- |
| 38 | +// run |
| 39 | +//------------------------------------------------------------------- |
| 40 | + |
| 41 | +function run() |
| 42 | + { |
| 43 | + applyFingerings(curScore, holes, shift); |
| 44 | + } |
| 45 | + |
| 46 | +var mscorePlugin = { |
| 47 | + menu: 'Plugins.Harmonica Tablature.Lee Oskar, Diatonic C', |
| 48 | + init: init, |
| 49 | + run: run |
| 50 | + }; |
| 51 | + |
| 52 | +mscorePlugin; |
| 53 | + |
0 commit comments