|
| 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 | + // 48 C C# D D# E F F# G G# A A# B |
| 21 | +var holes = ["+1", "<+1", "-1", "<-1", "+2", "-2", "<-2", "+3", "<+3", "-3", "<-3", "-4", |
| 22 | + "+4", "<+4", "-5", "<-5", "+6", "-6", "<-6", "+7", "<+7", "-7", "<-7", "-8", |
| 23 | + "+8", "<+8", "-9", "<-9", "+10", "-10", "<-10", "+11", "<+11", "-11", "<-11", "-12", |
| 24 | + "+12", "<+12", "-13", "<-13", "+14", "-14", "<-14", "+15", "<+15", "-15", "<-15", "-16", |
| 25 | + "+16" |
| 26 | +]; |
| 27 | + |
| 28 | +var shift = 48; |
| 29 | + |
| 30 | +//--------------------------------------------------------- |
| 31 | +// init |
| 32 | +//--------------------------------------------------------- |
| 33 | + |
| 34 | +function init() |
| 35 | + { |
| 36 | + } |
| 37 | + |
| 38 | +//------------------------------------------------------------------- |
| 39 | +// run |
| 40 | +//------------------------------------------------------------------- |
| 41 | + |
| 42 | +function run() |
| 43 | + { |
| 44 | + applyFingerings(curScore, holes, shift); |
| 45 | + } |
| 46 | + |
| 47 | +var mscorePlugin = { |
| 48 | + menu: 'Plugins.Harmonica Tablature.Chromatic C 16 holes', |
| 49 | + init: init, |
| 50 | + run: run |
| 51 | + }; |
| 52 | + |
| 53 | +mscorePlugin; |
| 54 | + |
0 commit comments