Skip to content

Commit 02cec8b

Browse files
committed
update to MS4
1 parent 5003734 commit 02cec8b

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

TempoStretch.png

450 KB
Loading

TempoStretch.qml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ import Qt.labs.settings 1.0
1515
import MuseScore 3.0
1616

1717
MuseScore {
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.\nTempoStretch 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

asset/TempoStretch.xcf

4.42 MB
Binary file not shown.

0 commit comments

Comments
 (0)