File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed
Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,13 @@ import Qt.labs.settings 1.0
1515import MuseScore 3.0
1616
1717MuseScore {
18- menuPath: " Plugins.TempoStretch"
19- version: " 1.2.0"
18+ menuPath: ' Plugins.TempoStretch'
19+ title: ' TempoStretch'
20+ version: ' 4.0.0'
2021 description: qsTr (" Apply a % change to (selected) tempo markers" )
21- pluginType: " dialog"
22+ thumbnailName: ' TempoStretch.png'
23+ categoryCode: ' tools'
24+ pluginType: ' dialog'
2225 requiresScore: true
2326 id: ' pluginId'
2427
@@ -46,11 +49,6 @@ MuseScore {
4649 height: 160
4750
4851 onRun: {
49- if ((mscoreMajorVersion == 3 ) && (mscoreMinorVersion == 0 ) && (mscoreUpdateVersion < 5 )) {
50- console .log (qsTr (" Unsupported MuseScore version.\n TempoStretch needs v3.0.5 or above.\n " ));
51- pluginId .parent .Window .window .close ();
52- return ;
53- }
5452 findStartBPM ();
5553 // Now show it
5654 var beatBaseItem = beatBaseList[beatBaseIndex];
@@ -189,7 +187,7 @@ MuseScore {
189187 // Scan through all relevant segments
190188 var segment = sel .startSeg ;
191189 do {
192- if (segment .segmentType == Ms .ChordRest ) {
190+ if (segment .segmentType == Segment .ChordRest ) {
193191 var foundTempoMarking = findExistingTempoElement (segment);
194192 if (foundTempoMarking !== undefined ) {
195193 // Found a tempo marking; analyse it
@@ -263,7 +261,7 @@ MuseScore {
263261 return (segment .annotations [i]);
264262 }
265263 }
266- }
264+ }
267265 return undefined ; // invalid - no tempo text found
268266 }
269267
You can’t perform that action at this time.
0 commit comments