Merge pull request #1001 from shredpub/swing_UI2
Swing functionality with user-controlled swing ratio implemented
This commit is contained in:
commit
f4383446ce
25 changed files with 2400 additions and 148 deletions
|
@ -561,6 +561,46 @@ void Score::renderStaff(EventMap* events, Staff* staff)
|
|||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------
|
||||
// swingAdjustParams
|
||||
//--------------------------------------------------------
|
||||
|
||||
void Score::swingAdjustParams(Chord* chord, int& gateTime, int& ontime, int swingUnit, int swingRatio)
|
||||
{
|
||||
int tick = chord->tick();
|
||||
int swingBeat = swingUnit * 2;
|
||||
qreal ticksDuration = (qreal)chord->actualTicks();
|
||||
qreal swingTickAdjust = ((qreal)swingBeat) * (((qreal)(swingRatio-50))/100.0);
|
||||
qreal swingActualAdjust = (swingTickAdjust/ticksDuration) * 1000.0;
|
||||
ChordRest *ncr = nextChordRest(chord);
|
||||
|
||||
//Check the position of the chord to apply changes accordingly
|
||||
if (tick % swingBeat == swingUnit) {
|
||||
if (!isSubdivided(chord,swingUnit)) {
|
||||
ontime = ontime + swingActualAdjust;
|
||||
}
|
||||
}
|
||||
int endTick = tick + ticksDuration;
|
||||
if ((endTick % swingBeat == swingUnit) && (!isSubdivided(ncr,swingUnit))) {
|
||||
gateTime = gateTime + (swingActualAdjust/10);
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------
|
||||
// isSubdivided
|
||||
// Check for subdivided beat
|
||||
//---------------------------------------------------------
|
||||
|
||||
bool Score::isSubdivided(ChordRest* chord, int swingUnit)
|
||||
{
|
||||
ChordRest* prev = prevChordRest(chord);
|
||||
|
||||
if (chord->actualTicks() < swingUnit || prev->actualTicks() < swingUnit)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------
|
||||
// renderChord
|
||||
// ontime in 1/1000 of duration
|
||||
|
@ -789,6 +829,13 @@ void Score::createPlayEvents(Chord* chord)
|
|||
on += graceDuration;
|
||||
}
|
||||
}
|
||||
|
||||
// Check if swing needs to be applied
|
||||
int swingUnit = styleI(StyleIdx::swingUnit);
|
||||
if (swingUnit) {
|
||||
int swingRatio = styleI(StyleIdx::swingRatio);
|
||||
swingAdjustParams(chord, gateTime, ontime, swingUnit, swingRatio);
|
||||
}
|
||||
//
|
||||
// render normal (and articulated) chords
|
||||
//
|
||||
|
|
|
@ -718,6 +718,10 @@ class Score : public QObject {
|
|||
void pasteSymbols(XmlReader& e, ChordRest* dst);
|
||||
void renderMidi(EventMap* events);
|
||||
void renderStaff(EventMap* events, Staff*);
|
||||
|
||||
void swingAdjustParams(Chord*, int&, int&, int, int);
|
||||
bool isSubdivided(ChordRest*, int);
|
||||
|
||||
int mscVersion() const { return _mscVersion; }
|
||||
void setMscVersion(int v) { _mscVersion = v; }
|
||||
|
||||
|
|
|
@ -140,6 +140,8 @@ static const StyleTypes2 styleTypes2[] = {
|
|||
{ StyleIdx::genCourtesyTimesig, StyleType("genCourtesyTimesig", StyleValueType::BOOL) },
|
||||
{ StyleIdx::genCourtesyKeysig, StyleType("genCourtesyKeysig", StyleValueType::BOOL) },
|
||||
{ StyleIdx::genCourtesyClef, StyleType("genCourtesyClef", StyleValueType::BOOL) },
|
||||
{ StyleIdx::swingRatio, StyleType("swingRatio", StyleValueType::INT) },
|
||||
{ StyleIdx::swingUnit, StyleType("swingUnit", StyleValueType::INT) },
|
||||
{ StyleIdx::useStandardNoteNames, StyleType("useStandardNoteNames", StyleValueType::BOOL) },
|
||||
{ StyleIdx::useGermanNoteNames, StyleType("useGermanNoteNames", StyleValueType::BOOL) },
|
||||
{ StyleIdx::useSolfeggioNoteNames, StyleType("useSolfeggioNoteNames", StyleValueType::BOOL) },
|
||||
|
@ -437,6 +439,8 @@ StyleData::StyleData()
|
|||
{ StyleIdx::genCourtesyTimesig, QVariant(true) },
|
||||
{ StyleIdx::genCourtesyKeysig, QVariant(true) },
|
||||
{ StyleIdx::genCourtesyClef, QVariant(true) },
|
||||
{ StyleIdx::swingRatio, QVariant(60) },
|
||||
{ StyleIdx::swingUnit, QVariant(0) },
|
||||
{ StyleIdx::useStandardNoteNames, QVariant(true) },
|
||||
{ StyleIdx::useGermanNoteNames, QVariant(false) },
|
||||
{ StyleIdx::useSolfeggioNoteNames, QVariant(false) },
|
||||
|
|
|
@ -265,6 +265,9 @@ enum class StyleIdx : unsigned char {
|
|||
genCourtesyKeysig,
|
||||
genCourtesyClef,
|
||||
|
||||
swingRatio,
|
||||
swingUnit,
|
||||
|
||||
useStandardNoteNames,
|
||||
useGermanNoteNames,
|
||||
useSolfeggioNoteNames,
|
||||
|
|
|
@ -164,7 +164,9 @@ EditStyle::EditStyle(Score* s, QWidget* parent)
|
|||
connect(chordsStandard, SIGNAL(toggled(bool)), SLOT(setChordStyle(bool)));
|
||||
connect(chordsJazz, SIGNAL(toggled(bool)), SLOT(setChordStyle(bool)));
|
||||
connect(chordsCustom, SIGNAL(toggled(bool)), SLOT(setChordStyle(bool)));
|
||||
|
||||
connect(SwingOff, SIGNAL(toggled(bool)), SLOT(setSwingParams(bool)));
|
||||
connect(swingEighth, SIGNAL(toggled(bool)), SLOT(setSwingParams(bool)));
|
||||
connect(swingSixteenth, SIGNAL(toggled(bool)), SLOT(setSwingParams(bool)));
|
||||
connect(hideEmptyStaves, SIGNAL(clicked(bool)), dontHideStavesInFirstSystem, SLOT(setEnabled(bool)));
|
||||
|
||||
connect(bg, SIGNAL(buttonClicked(int)), SLOT(editTextClicked(int)));
|
||||
|
@ -326,6 +328,7 @@ void EditStyle::getValues()
|
|||
lstyle.set(StyleIdx::genCourtesyTimesig, genCourtesyTimesig->isChecked());
|
||||
lstyle.set(StyleIdx::genCourtesyKeysig, genCourtesyKeysig->isChecked());
|
||||
lstyle.set(StyleIdx::genCourtesyClef, genCourtesyClef->isChecked());
|
||||
lstyle.set(StyleIdx::swingRatio, swingBox->value());
|
||||
|
||||
bool customChords = false;
|
||||
if (chordsStandard->isChecked())
|
||||
|
@ -590,7 +593,20 @@ void EditStyle::setValues()
|
|||
genCourtesyTimesig->setChecked(lstyle.value(StyleIdx::genCourtesyTimesig).toBool());
|
||||
genCourtesyKeysig->setChecked(lstyle.value(StyleIdx::genCourtesyKeysig).toBool());
|
||||
genCourtesyClef->setChecked(lstyle.value(StyleIdx::genCourtesyClef).toBool());
|
||||
|
||||
swingBox->setValue(lstyle.value(StyleIdx::swingRatio).toInt());
|
||||
QVariant unit(lstyle.value(StyleIdx::swingUnit).toInt());
|
||||
if (unit == 240) {
|
||||
swingEighth->setChecked(true);
|
||||
swingBox->setEnabled(true);
|
||||
}
|
||||
else if (unit == 120) {
|
||||
swingSixteenth->setChecked(true);
|
||||
swingBox->setEnabled(true);
|
||||
}
|
||||
else if (unit == 0) {
|
||||
SwingOff->setChecked(true);
|
||||
swingBox->setEnabled(false);
|
||||
}
|
||||
QString s(lstyle.value(StyleIdx::chordDescriptionFile).toString());
|
||||
chordDescriptionFile->setText(s);
|
||||
chordsXmlFile->setChecked(lstyle.value(StyleIdx::chordsXmlFile).toBool());
|
||||
|
@ -774,6 +790,24 @@ void EditStyle::selectChordDescriptionFile()
|
|||
chordDescriptionFile->setText(fn);
|
||||
}
|
||||
|
||||
void EditStyle::setSwingParams(bool checked)
|
||||
{
|
||||
if( !checked)
|
||||
return;
|
||||
if (SwingOff->isChecked()) {
|
||||
lstyle.set(StyleIdx::swingUnit, 0);
|
||||
swingBox->setEnabled(false);
|
||||
}
|
||||
else if (swingEighth->isChecked()) {
|
||||
lstyle.set(StyleIdx::swingUnit, 240);
|
||||
swingBox->setEnabled(true);
|
||||
}
|
||||
else if (swingSixteenth->isChecked()) {
|
||||
lstyle.set(StyleIdx::swingUnit, 120);
|
||||
swingBox->setEnabled(true);
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------
|
||||
// setChordStyle
|
||||
//---------------------------------------------------------
|
||||
|
|
|
@ -56,6 +56,7 @@ class EditStyle : public QDialog, private Ui::EditStyleBase {
|
|||
void toggleHeaderOddEven(bool);
|
||||
void toggleFooterOddEven(bool);
|
||||
void buttonClicked(QAbstractButton*);
|
||||
void setSwingParams(bool);
|
||||
void editTextClicked(int id);
|
||||
void resetStyleValue(int i);
|
||||
|
||||
|
|
|
@ -14,129 +14,6 @@
|
|||
<string>MuseScore: Edit Style</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_11">
|
||||
<item row="0" column="0">
|
||||
<widget class="QListWidget" name="pageList">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="horizontalScrollBarPolicy">
|
||||
<enum>Qt::ScrollBarAlwaysOff</enum>
|
||||
</property>
|
||||
<property name="alternatingRowColors">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizeMode">
|
||||
<enum>QListView::Fixed</enum>
|
||||
</property>
|
||||
<property name="uniformItemSizes">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Score</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Page</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Header, Footer, Numbers</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string extracomment="a music system, a line of music">System</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Measure</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Barlines</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Notes</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Clefs</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Arpeggios</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Beams</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Slurs/Ties</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Sizes</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Hairpins, Volta, Ottava</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Pedal, Trill</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Chord Symbols, Fretboard Diagrams</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Figured Bass</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Articulations, Ornaments</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Accidentals</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Tuplets</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="2">
|
||||
<layout class="QHBoxLayout">
|
||||
<property name="spacing">
|
||||
|
@ -172,7 +49,7 @@
|
|||
<item row="0" column="1">
|
||||
<widget class="QStackedWidget" name="pageStack">
|
||||
<property name="currentIndex">
|
||||
<number>2</number>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="Page1">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_20">
|
||||
|
@ -261,26 +138,9 @@
|
|||
<layout class="QVBoxLayout" name="verticalLayout_5">
|
||||
<item>
|
||||
<layout class="QFormLayout" name="formLayout_3">
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_16">
|
||||
<property name="text">
|
||||
<string>Minimum width of measure:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QDoubleSpinBox" name="minMeasureWidth">
|
||||
<property name="suffix">
|
||||
<string>sp</string>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<double>2.000000000000000</double>
|
||||
</property>
|
||||
<property name="value">
|
||||
<double>4.000000000000000</double>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<property name="fieldGrowthPolicy">
|
||||
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
|
||||
</property>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_15">
|
||||
<property name="text">
|
||||
|
@ -290,6 +150,12 @@
|
|||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QSpinBox" name="minEmptyMeasures">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>1</number>
|
||||
</property>
|
||||
|
@ -298,6 +164,32 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_16">
|
||||
<property name="text">
|
||||
<string>Minimum width of measure:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QDoubleSpinBox" name="minMeasureWidth">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="suffix">
|
||||
<string>sp</string>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<double>2.000000000000000</double>
|
||||
</property>
|
||||
<property name="value">
|
||||
<double>4.000000000000000</double>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
|
@ -331,6 +223,138 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer_10">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>QSizePolicy::Preferred</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>10</width>
|
||||
<height>10</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="font">
|
||||
<font>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Swing Settings</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_10">
|
||||
<property name="spacing">
|
||||
<number>10</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>10</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="SwingLabel">
|
||||
<property name="text">
|
||||
<string>Swing :</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="SwingOff">
|
||||
<property name="text">
|
||||
<string>Off</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="swingEighth">
|
||||
<property name="text">
|
||||
<string>Eighth Note</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="swingSixteenth">
|
||||
<property name="text">
|
||||
<string>Sixteenth Note</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="zontalSpacer_16">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_11">
|
||||
<property name="bottomMargin">
|
||||
<number>30</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Select swing ratio : </string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="swingBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
<property name="suffix">
|
||||
<string>%</string>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>50</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>60</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_16">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
|
@ -5551,6 +5575,129 @@
|
|||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QListWidget" name="pageList">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="horizontalScrollBarPolicy">
|
||||
<enum>Qt::ScrollBarAlwaysOff</enum>
|
||||
</property>
|
||||
<property name="alternatingRowColors">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="resizeMode">
|
||||
<enum>QListView::Fixed</enum>
|
||||
</property>
|
||||
<property name="uniformItemSizes">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Score</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Page</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Header, Footer, Numbers</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string extracomment="a music system, a line of music">System</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Measure</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Barlines</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Notes</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Clefs</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Arpeggios</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Beams</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Slurs/Ties</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Sizes</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Hairpins, Volta, Ottava</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Pedal, Trill</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Chord Symbols, Fretboard Diagrams</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Figured Bass</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Articulations, Ornaments</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Accidentals</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Tuplets</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<tabstops>
|
||||
|
|
|
@ -14,4 +14,3 @@
|
|||
set(TARGET tst_midi)
|
||||
|
||||
include(${PROJECT_SOURCE_DIR}/mtest/cmake.inc)
|
||||
|
||||
|
|
30
mtest/libmscore/midi/testSwing16thDots-ref.txt
Normal file
30
mtest/libmscore/midi/testSwing16thDots-ref.txt
Normal file
|
@ -0,0 +1,30 @@
|
|||
Tick = 0 Type = 144 Pitch = 72 Velocity = 80 Channel = 0
|
||||
Tick = 0 Type = 3 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 387 Type = 144 Pitch = 72 Velocity = 0 Channel = 0
|
||||
Tick = 408 Type = 144 Pitch = 77 Velocity = 80 Channel = 0
|
||||
Tick = 475 Type = 144 Pitch = 77 Velocity = 0 Channel = 0
|
||||
Tick = 480 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 960 Type = 144 Pitch = 64 Velocity = 80 Channel = 0
|
||||
Tick = 960 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 1121 Type = 144 Pitch = 64 Velocity = 0 Channel = 0
|
||||
Tick = 1127 Type = 144 Pitch = 62 Velocity = 80 Channel = 0
|
||||
Tick = 1422 Type = 144 Pitch = 62 Velocity = 0 Channel = 0
|
||||
Tick = 1440 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 1920 Type = 144 Pitch = 65 Velocity = 80 Channel = 0
|
||||
Tick = 1920 Type = 3 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 2081 Type = 144 Pitch = 65 Velocity = 0 Channel = 0
|
||||
Tick = 2088 Type = 144 Pitch = 64 Velocity = 80 Channel = 0
|
||||
Tick = 2307 Type = 144 Pitch = 64 Velocity = 0 Channel = 0
|
||||
Tick = 2328 Type = 144 Pitch = 62 Velocity = 80 Channel = 0
|
||||
Tick = 2395 Type = 144 Pitch = 62 Velocity = 0 Channel = 0
|
||||
Tick = 2400 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 2880 Type = 144 Pitch = 67 Velocity = 80 Channel = 0
|
||||
Tick = 2880 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 3107 Type = 144 Pitch = 67 Velocity = 0 Channel = 0
|
||||
Tick = 3120 Type = 144 Pitch = 62 Velocity = 80 Channel = 0
|
||||
Tick = 3347 Type = 144 Pitch = 62 Velocity = 0 Channel = 0
|
||||
Tick = 3360 Type = 144 Pitch = 65 Velocity = 80 Channel = 0
|
||||
Tick = 3360 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 3587 Type = 144 Pitch = 65 Velocity = 0 Channel = 0
|
||||
Tick = 3600 Type = 144 Pitch = 64 Velocity = 80 Channel = 0
|
||||
Tick = 3827 Type = 144 Pitch = 64 Velocity = 0 Channel = 0
|
220
mtest/libmscore/midi/testSwing16thDots.mscx
Normal file
220
mtest/libmscore/midi/testSwing16thDots.mscx
Normal file
|
@ -0,0 +1,220 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<museScore version="1.24">
|
||||
<programVersion>2.0.0</programVersion>
|
||||
<programRevision>3543170</programRevision>
|
||||
<Score>
|
||||
<LayerTag id="0" tag="default"></LayerTag>
|
||||
<currentLayer>0</currentLayer>
|
||||
<Synthesizer>
|
||||
</Synthesizer>
|
||||
<Division>480</Division>
|
||||
<Style>
|
||||
<figuredBassFontFamily>MScoreBC</figuredBassFontFamily>
|
||||
<beamMinLen>1.32</beamMinLen>
|
||||
<beamNoSlope>0</beamNoSlope>
|
||||
<swingRatio>70</swingRatio>
|
||||
<swingUnit>120</swingUnit>
|
||||
<page-layout>
|
||||
<page-height>1683.36</page-height>
|
||||
<page-width>1190.88</page-width>
|
||||
<page-margins type="even">
|
||||
<left-margin>56.6929</left-margin>
|
||||
<right-margin>57.0217</right-margin>
|
||||
<top-margin>56.6929</top-margin>
|
||||
<bottom-margin>113.386</bottom-margin>
|
||||
</page-margins>
|
||||
<page-margins type="odd">
|
||||
<left-margin>56.6929</left-margin>
|
||||
<right-margin>57.0217</right-margin>
|
||||
<top-margin>56.6929</top-margin>
|
||||
<bottom-margin>113.386</bottom-margin>
|
||||
</page-margins>
|
||||
</page-layout>
|
||||
<Spatium>1.76389</Spatium>
|
||||
</Style>
|
||||
<showInvisible>1</showInvisible>
|
||||
<showUnprintable>1</showUnprintable>
|
||||
<showFrames>1</showFrames>
|
||||
<showMargins>0</showMargins>
|
||||
<metaTag name="arranger"></metaTag>
|
||||
<metaTag name="composer"></metaTag>
|
||||
<metaTag name="copyright"></metaTag>
|
||||
<metaTag name="creationDate">2014-06-27</metaTag>
|
||||
<metaTag name="lyricist"></metaTag>
|
||||
<metaTag name="movementNumber"></metaTag>
|
||||
<metaTag name="movementTitle"></metaTag>
|
||||
<metaTag name="platform">Linux</metaTag>
|
||||
<metaTag name="poet"></metaTag>
|
||||
<metaTag name="source"></metaTag>
|
||||
<metaTag name="translator"></metaTag>
|
||||
<metaTag name="workNumber"></metaTag>
|
||||
<metaTag name="workTitle">TestDots</metaTag>
|
||||
<PageList>
|
||||
<Page>
|
||||
<System>
|
||||
</System>
|
||||
<System>
|
||||
</System>
|
||||
</Page>
|
||||
</PageList>
|
||||
<Part>
|
||||
<Staff id="1">
|
||||
<StaffType group="pitched">
|
||||
<name>Standard</name>
|
||||
</StaffType>
|
||||
<bracket type="-1" span="0"/>
|
||||
</Staff>
|
||||
<trackName>Flute</trackName>
|
||||
<Instrument>
|
||||
<longName pos="0">Flute</longName>
|
||||
<shortName pos="0">Fl.</shortName>
|
||||
<trackName>Flute</trackName>
|
||||
<minPitchP>59</minPitchP>
|
||||
<maxPitchP>98</maxPitchP>
|
||||
<minPitchA>60</minPitchA>
|
||||
<maxPitchA>93</maxPitchA>
|
||||
<Articulation>
|
||||
<velocity>100</velocity>
|
||||
<gateTime>95</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="staccato">
|
||||
<velocity>100</velocity>
|
||||
<gateTime>50</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="tenuto">
|
||||
<velocity>100</velocity>
|
||||
<gateTime>100</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="sforzato">
|
||||
<velocity>120</velocity>
|
||||
<gateTime>100</gateTime>
|
||||
</Articulation>
|
||||
<Channel>
|
||||
<program value="73"/>
|
||||
<synti>Fluid</synti>
|
||||
</Channel>
|
||||
</Instrument>
|
||||
</Part>
|
||||
<Staff id="1">
|
||||
<VBox>
|
||||
<height>10</height>
|
||||
<Text>
|
||||
<style>Title</style>
|
||||
<text>TestSixteenthDots</text>
|
||||
</Text>
|
||||
</VBox>
|
||||
<Measure number="1">
|
||||
<Clef>
|
||||
<concertClefType>G</concertClefType>
|
||||
<transposingClefType>G</transposingClefType>
|
||||
</Clef>
|
||||
<KeySig>
|
||||
<accidental>0</accidental>
|
||||
</KeySig>
|
||||
<TimeSig>
|
||||
<sigN>4</sigN>
|
||||
<sigD>4</sigD>
|
||||
<showCourtesySig>1</showCourtesySig>
|
||||
</TimeSig>
|
||||
<Chord>
|
||||
<dots>1</dots>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>72</pitch>
|
||||
<tpc>14</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>77</pitch>
|
||||
<tpc>13</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Rest>
|
||||
<durationType>quarter</durationType>
|
||||
</Rest>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>64</pitch>
|
||||
<tpc>18</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<dots>1</dots>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>62</pitch>
|
||||
<tpc>16</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Rest>
|
||||
<durationType>quarter</durationType>
|
||||
</Rest>
|
||||
<BarLine>
|
||||
<subtype>normal</subtype>
|
||||
<span>1</span>
|
||||
</BarLine>
|
||||
</Measure>
|
||||
<Measure number="2">
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>65</pitch>
|
||||
<tpc>13</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>64</pitch>
|
||||
<tpc>18</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>62</pitch>
|
||||
<tpc>16</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Rest>
|
||||
<durationType>quarter</durationType>
|
||||
</Rest>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>67</pitch>
|
||||
<tpc>15</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>62</pitch>
|
||||
<tpc>16</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>65</pitch>
|
||||
<tpc>13</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>64</pitch>
|
||||
<tpc>18</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<BarLine>
|
||||
<subtype>end</subtype>
|
||||
<span>1</span>
|
||||
</BarLine>
|
||||
</Measure>
|
||||
</Staff>
|
||||
</Score>
|
||||
</museScore>
|
24
mtest/libmscore/midi/testSwing16thSimple-ref.txt
Normal file
24
mtest/libmscore/midi/testSwing16thSimple-ref.txt
Normal file
|
@ -0,0 +1,24 @@
|
|||
Tick = 0 Type = 144 Pitch = 65 Velocity = 80 Channel = 0
|
||||
Tick = 0 Type = 3 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 161 Type = 144 Pitch = 65 Velocity = 0 Channel = 0
|
||||
Tick = 168 Type = 144 Pitch = 67 Velocity = 80 Channel = 0
|
||||
Tick = 235 Type = 144 Pitch = 67 Velocity = 0 Channel = 0
|
||||
Tick = 480 Type = 144 Pitch = 60 Velocity = 80 Channel = 0
|
||||
Tick = 480 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 593 Type = 144 Pitch = 60 Velocity = 0 Channel = 0
|
||||
Tick = 600 Type = 144 Pitch = 65 Velocity = 80 Channel = 0
|
||||
Tick = 656 Type = 144 Pitch = 65 Velocity = 0 Channel = 0
|
||||
Tick = 660 Type = 144 Pitch = 67 Velocity = 80 Channel = 0
|
||||
Tick = 716 Type = 144 Pitch = 67 Velocity = 0 Channel = 0
|
||||
Tick = 960 Type = 144 Pitch = 67 Velocity = 80 Channel = 0
|
||||
Tick = 960 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 1016 Type = 144 Pitch = 67 Velocity = 0 Channel = 0
|
||||
Tick = 1020 Type = 144 Pitch = 65 Velocity = 80 Channel = 0
|
||||
Tick = 1076 Type = 144 Pitch = 65 Velocity = 0 Channel = 0
|
||||
Tick = 1080 Type = 144 Pitch = 71 Velocity = 80 Channel = 0
|
||||
Tick = 1193 Type = 144 Pitch = 71 Velocity = 0 Channel = 0
|
||||
Tick = 1440 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 1920 Type = 3 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 2400 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 2880 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 3360 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
204
mtest/libmscore/midi/testSwing16thSimple.mscx
Normal file
204
mtest/libmscore/midi/testSwing16thSimple.mscx
Normal file
|
@ -0,0 +1,204 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<museScore version="1.24">
|
||||
<programVersion>2.0.0</programVersion>
|
||||
<programRevision>3543170</programRevision>
|
||||
<Score>
|
||||
<LayerTag id="0" tag="default"></LayerTag>
|
||||
<currentLayer>0</currentLayer>
|
||||
<Synthesizer>
|
||||
</Synthesizer>
|
||||
<Division>480</Division>
|
||||
<Style>
|
||||
<figuredBassFontFamily>MScoreBC</figuredBassFontFamily>
|
||||
<beamMinLen>1.32</beamMinLen>
|
||||
<beamNoSlope>0</beamNoSlope>
|
||||
<swingRatio>70</swingRatio>
|
||||
<swingUnit>120</swingUnit>
|
||||
<page-layout>
|
||||
<page-height>1683.36</page-height>
|
||||
<page-width>1190.88</page-width>
|
||||
<page-margins type="even">
|
||||
<left-margin>56.6929</left-margin>
|
||||
<right-margin>57.0217</right-margin>
|
||||
<top-margin>56.6929</top-margin>
|
||||
<bottom-margin>113.386</bottom-margin>
|
||||
</page-margins>
|
||||
<page-margins type="odd">
|
||||
<left-margin>56.6929</left-margin>
|
||||
<right-margin>57.0217</right-margin>
|
||||
<top-margin>56.6929</top-margin>
|
||||
<bottom-margin>113.386</bottom-margin>
|
||||
</page-margins>
|
||||
</page-layout>
|
||||
<Spatium>1.76389</Spatium>
|
||||
</Style>
|
||||
<showInvisible>1</showInvisible>
|
||||
<showUnprintable>1</showUnprintable>
|
||||
<showFrames>1</showFrames>
|
||||
<showMargins>0</showMargins>
|
||||
<metaTag name="arranger"></metaTag>
|
||||
<metaTag name="composer"></metaTag>
|
||||
<metaTag name="copyright"></metaTag>
|
||||
<metaTag name="creationDate">2014-06-27</metaTag>
|
||||
<metaTag name="lyricist"></metaTag>
|
||||
<metaTag name="movementNumber"></metaTag>
|
||||
<metaTag name="movementTitle"></metaTag>
|
||||
<metaTag name="platform">Linux</metaTag>
|
||||
<metaTag name="poet"></metaTag>
|
||||
<metaTag name="source"></metaTag>
|
||||
<metaTag name="translator"></metaTag>
|
||||
<metaTag name="workNumber"></metaTag>
|
||||
<metaTag name="workTitle">TestSixteenthSwing</metaTag>
|
||||
<PageList>
|
||||
<Page>
|
||||
<System>
|
||||
</System>
|
||||
<System>
|
||||
</System>
|
||||
</Page>
|
||||
</PageList>
|
||||
<Part>
|
||||
<Staff id="1">
|
||||
<StaffType group="pitched">
|
||||
<name>Standard</name>
|
||||
</StaffType>
|
||||
<bracket type="-1" span="0"/>
|
||||
</Staff>
|
||||
<trackName>Flute</trackName>
|
||||
<Instrument>
|
||||
<longName pos="0">Flute</longName>
|
||||
<shortName pos="0">Fl.</shortName>
|
||||
<trackName>Flute</trackName>
|
||||
<minPitchP>59</minPitchP>
|
||||
<maxPitchP>98</maxPitchP>
|
||||
<minPitchA>60</minPitchA>
|
||||
<maxPitchA>93</maxPitchA>
|
||||
<Articulation>
|
||||
<velocity>100</velocity>
|
||||
<gateTime>95</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="staccato">
|
||||
<velocity>100</velocity>
|
||||
<gateTime>50</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="tenuto">
|
||||
<velocity>100</velocity>
|
||||
<gateTime>100</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="sforzato">
|
||||
<velocity>120</velocity>
|
||||
<gateTime>100</gateTime>
|
||||
</Articulation>
|
||||
<Channel>
|
||||
<program value="73"/>
|
||||
<synti>Fluid</synti>
|
||||
</Channel>
|
||||
</Instrument>
|
||||
</Part>
|
||||
<Staff id="1">
|
||||
<VBox>
|
||||
<height>10</height>
|
||||
<Text>
|
||||
<style>Title</style>
|
||||
<text>TestSixteenthSimple</text>
|
||||
</Text>
|
||||
</VBox>
|
||||
<Measure number="1">
|
||||
<Clef>
|
||||
<concertClefType>G</concertClefType>
|
||||
<transposingClefType>G</transposingClefType>
|
||||
</Clef>
|
||||
<KeySig>
|
||||
<accidental>0</accidental>
|
||||
</KeySig>
|
||||
<TimeSig>
|
||||
<sigN>4</sigN>
|
||||
<sigD>4</sigD>
|
||||
<showCourtesySig>1</showCourtesySig>
|
||||
</TimeSig>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>65</pitch>
|
||||
<tpc>13</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>67</pitch>
|
||||
<tpc>15</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Rest>
|
||||
<durationType>eighth</durationType>
|
||||
</Rest>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>60</pitch>
|
||||
<tpc>14</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>32nd</durationType>
|
||||
<Note>
|
||||
<pitch>65</pitch>
|
||||
<tpc>13</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>32nd</durationType>
|
||||
<Note>
|
||||
<pitch>67</pitch>
|
||||
<tpc>15</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Rest>
|
||||
<durationType>eighth</durationType>
|
||||
</Rest>
|
||||
<Chord>
|
||||
<durationType>32nd</durationType>
|
||||
<Note>
|
||||
<pitch>67</pitch>
|
||||
<tpc>15</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>32nd</durationType>
|
||||
<Note>
|
||||
<pitch>65</pitch>
|
||||
<tpc>13</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>71</pitch>
|
||||
<tpc>19</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Rest>
|
||||
<durationType>eighth</durationType>
|
||||
</Rest>
|
||||
<Rest>
|
||||
<durationType>quarter</durationType>
|
||||
</Rest>
|
||||
<BarLine>
|
||||
<subtype>normal</subtype>
|
||||
<span>1</span>
|
||||
</BarLine>
|
||||
</Measure>
|
||||
<Measure number="2">
|
||||
<Rest>
|
||||
<durationType>measure</durationType>
|
||||
<duration z="4" n="4"/>
|
||||
</Rest>
|
||||
<BarLine>
|
||||
<subtype>end</subtype>
|
||||
<span>1</span>
|
||||
</BarLine>
|
||||
</Measure>
|
||||
</Staff>
|
||||
</Score>
|
||||
</museScore>
|
22
mtest/libmscore/midi/testSwing16thTies-ref.txt
Normal file
22
mtest/libmscore/midi/testSwing16thTies-ref.txt
Normal file
|
@ -0,0 +1,22 @@
|
|||
Tick = 0 Type = 144 Pitch = 65 Velocity = 80 Channel = 0
|
||||
Tick = 0 Type = 3 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 161 Type = 144 Pitch = 65 Velocity = 0 Channel = 0
|
||||
Tick = 168 Type = 144 Pitch = 71 Velocity = 80 Channel = 0
|
||||
Tick = 397 Type = 144 Pitch = 71 Velocity = 0 Channel = 0
|
||||
Tick = 408 Type = 144 Pitch = 62 Velocity = 80 Channel = 0
|
||||
Tick = 475 Type = 144 Pitch = 62 Velocity = 0 Channel = 0
|
||||
Tick = 480 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 960 Type = 144 Pitch = 67 Velocity = 80 Channel = 0
|
||||
Tick = 960 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 1349 Type = 144 Pitch = 67 Velocity = 0 Channel = 0
|
||||
Tick = 1368 Type = 144 Pitch = 71 Velocity = 80 Channel = 0
|
||||
Tick = 1435 Type = 144 Pitch = 71 Velocity = 0 Channel = 0
|
||||
Tick = 1440 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 1920 Type = 144 Pitch = 65 Velocity = 80 Channel = 0
|
||||
Tick = 1920 Type = 3 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 2081 Type = 144 Pitch = 65 Velocity = 0 Channel = 0
|
||||
Tick = 2088 Type = 144 Pitch = 62 Velocity = 80 Channel = 0
|
||||
Tick = 2400 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 2543 Type = 144 Pitch = 62 Velocity = 0 Channel = 0
|
||||
Tick = 2880 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 3360 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
227
mtest/libmscore/midi/testSwing16thTies.mscx
Normal file
227
mtest/libmscore/midi/testSwing16thTies.mscx
Normal file
|
@ -0,0 +1,227 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<museScore version="1.24">
|
||||
<programVersion>2.0.0</programVersion>
|
||||
<programRevision>3543170</programRevision>
|
||||
<Score>
|
||||
<LayerTag id="0" tag="default"></LayerTag>
|
||||
<currentLayer>0</currentLayer>
|
||||
<Synthesizer>
|
||||
</Synthesizer>
|
||||
<Division>480</Division>
|
||||
<Style>
|
||||
<figuredBassFontFamily>MScoreBC</figuredBassFontFamily>
|
||||
<beamMinLen>1.32</beamMinLen>
|
||||
<beamNoSlope>0</beamNoSlope>
|
||||
<swingRatio>70</swingRatio>
|
||||
<swingUnit>120</swingUnit>
|
||||
<page-layout>
|
||||
<page-height>1683.36</page-height>
|
||||
<page-width>1190.88</page-width>
|
||||
<page-margins type="even">
|
||||
<left-margin>56.6929</left-margin>
|
||||
<right-margin>57.0217</right-margin>
|
||||
<top-margin>56.6929</top-margin>
|
||||
<bottom-margin>113.386</bottom-margin>
|
||||
</page-margins>
|
||||
<page-margins type="odd">
|
||||
<left-margin>56.6929</left-margin>
|
||||
<right-margin>57.0217</right-margin>
|
||||
<top-margin>56.6929</top-margin>
|
||||
<bottom-margin>113.386</bottom-margin>
|
||||
</page-margins>
|
||||
</page-layout>
|
||||
<Spatium>1.76389</Spatium>
|
||||
</Style>
|
||||
<showInvisible>1</showInvisible>
|
||||
<showUnprintable>1</showUnprintable>
|
||||
<showFrames>1</showFrames>
|
||||
<showMargins>0</showMargins>
|
||||
<metaTag name="arranger"></metaTag>
|
||||
<metaTag name="composer"></metaTag>
|
||||
<metaTag name="copyright"></metaTag>
|
||||
<metaTag name="creationDate">2014-06-27</metaTag>
|
||||
<metaTag name="lyricist"></metaTag>
|
||||
<metaTag name="movementNumber"></metaTag>
|
||||
<metaTag name="movementTitle"></metaTag>
|
||||
<metaTag name="platform">Linux</metaTag>
|
||||
<metaTag name="poet"></metaTag>
|
||||
<metaTag name="source"></metaTag>
|
||||
<metaTag name="translator"></metaTag>
|
||||
<metaTag name="workNumber"></metaTag>
|
||||
<metaTag name="workTitle">TestTiesSixteenth</metaTag>
|
||||
<PageList>
|
||||
<Page>
|
||||
<System>
|
||||
</System>
|
||||
<System>
|
||||
</System>
|
||||
</Page>
|
||||
</PageList>
|
||||
<Part>
|
||||
<Staff id="1">
|
||||
<StaffType group="pitched">
|
||||
<name>Standard</name>
|
||||
</StaffType>
|
||||
<bracket type="-1" span="0"/>
|
||||
</Staff>
|
||||
<trackName>Flute</trackName>
|
||||
<Instrument>
|
||||
<longName pos="0">Flute</longName>
|
||||
<shortName pos="0">Fl.</shortName>
|
||||
<trackName>Flute</trackName>
|
||||
<minPitchP>59</minPitchP>
|
||||
<maxPitchP>98</maxPitchP>
|
||||
<minPitchA>60</minPitchA>
|
||||
<maxPitchA>93</maxPitchA>
|
||||
<Articulation>
|
||||
<velocity>100</velocity>
|
||||
<gateTime>95</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="staccato">
|
||||
<velocity>100</velocity>
|
||||
<gateTime>50</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="tenuto">
|
||||
<velocity>100</velocity>
|
||||
<gateTime>100</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="sforzato">
|
||||
<velocity>120</velocity>
|
||||
<gateTime>100</gateTime>
|
||||
</Articulation>
|
||||
<Channel>
|
||||
<program value="73"/>
|
||||
<synti>Fluid</synti>
|
||||
</Channel>
|
||||
</Instrument>
|
||||
</Part>
|
||||
<Staff id="1">
|
||||
<VBox>
|
||||
<height>10</height>
|
||||
<Text>
|
||||
<style>Title</style>
|
||||
<text>TestSixteenthTies</text>
|
||||
</Text>
|
||||
</VBox>
|
||||
<Measure number="1">
|
||||
<Clef>
|
||||
<concertClefType>G</concertClefType>
|
||||
<transposingClefType>G</transposingClefType>
|
||||
</Clef>
|
||||
<KeySig>
|
||||
<accidental>0</accidental>
|
||||
</KeySig>
|
||||
<TimeSig>
|
||||
<sigN>4</sigN>
|
||||
<sigD>4</sigD>
|
||||
<showCourtesySig>1</showCourtesySig>
|
||||
</TimeSig>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>65</pitch>
|
||||
<tpc>13</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<Tie id="2">
|
||||
</Tie>
|
||||
<pitch>71</pitch>
|
||||
<tpc>19</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<endSpanner id="2"/>
|
||||
<pitch>71</pitch>
|
||||
<tpc>19</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>62</pitch>
|
||||
<tpc>16</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Rest>
|
||||
<durationType>quarter</durationType>
|
||||
</Rest>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<Tie id="3">
|
||||
</Tie>
|
||||
<pitch>67</pitch>
|
||||
<tpc>15</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<endSpanner id="3"/>
|
||||
<pitch>67</pitch>
|
||||
<tpc>15</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>71</pitch>
|
||||
<tpc>19</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Rest>
|
||||
<durationType>quarter</durationType>
|
||||
</Rest>
|
||||
<BarLine>
|
||||
<subtype>normal</subtype>
|
||||
<span>1</span>
|
||||
</BarLine>
|
||||
</Measure>
|
||||
<Measure number="2">
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>65</pitch>
|
||||
<tpc>13</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<Tie id="4">
|
||||
</Tie>
|
||||
<pitch>62</pitch>
|
||||
<tpc>16</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<dots>1</dots>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<endSpanner id="4"/>
|
||||
<pitch>62</pitch>
|
||||
<tpc>16</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Rest>
|
||||
<durationType>16th</durationType>
|
||||
</Rest>
|
||||
<Rest>
|
||||
<durationType>eighth</durationType>
|
||||
</Rest>
|
||||
<Rest>
|
||||
<durationType>half</durationType>
|
||||
</Rest>
|
||||
<BarLine>
|
||||
<subtype>end</subtype>
|
||||
<span>1</span>
|
||||
</BarLine>
|
||||
</Measure>
|
||||
</Staff>
|
||||
</Score>
|
||||
</museScore>
|
16
mtest/libmscore/midi/testSwing16thTriplets-ref.txt
Normal file
16
mtest/libmscore/midi/testSwing16thTriplets-ref.txt
Normal file
|
@ -0,0 +1,16 @@
|
|||
Tick = 0 Type = 144 Pitch = 65 Velocity = 80 Channel = 0
|
||||
Tick = 0 Type = 3 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 75 Type = 144 Pitch = 65 Velocity = 0 Channel = 0
|
||||
Tick = 80 Type = 144 Pitch = 64 Velocity = 80 Channel = 0
|
||||
Tick = 155 Type = 144 Pitch = 64 Velocity = 0 Channel = 0
|
||||
Tick = 160 Type = 144 Pitch = 67 Velocity = 80 Channel = 0
|
||||
Tick = 235 Type = 144 Pitch = 67 Velocity = 0 Channel = 0
|
||||
Tick = 480 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 960 Type = 144 Pitch = 67 Velocity = 80 Channel = 0
|
||||
Tick = 960 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 1121 Type = 144 Pitch = 67 Velocity = 0 Channel = 0
|
||||
Tick = 1128 Type = 144 Pitch = 64 Velocity = 80 Channel = 0
|
||||
Tick = 1195 Type = 144 Pitch = 64 Velocity = 0 Channel = 0
|
||||
Tick = 1200 Type = 144 Pitch = 65 Velocity = 80 Channel = 0
|
||||
Tick = 1361 Type = 144 Pitch = 65 Velocity = 0 Channel = 0
|
||||
Tick = 1440 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
192
mtest/libmscore/midi/testSwing16thTriplets.mscx
Normal file
192
mtest/libmscore/midi/testSwing16thTriplets.mscx
Normal file
|
@ -0,0 +1,192 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<museScore version="1.24">
|
||||
<programVersion>2.0.0</programVersion>
|
||||
<programRevision>3543170</programRevision>
|
||||
<Score>
|
||||
<LayerTag id="0" tag="default"></LayerTag>
|
||||
<currentLayer>0</currentLayer>
|
||||
<Synthesizer>
|
||||
</Synthesizer>
|
||||
<Division>480</Division>
|
||||
<Style>
|
||||
<figuredBassFontFamily>MScoreBC</figuredBassFontFamily>
|
||||
<beamMinLen>1.32</beamMinLen>
|
||||
<beamNoSlope>0</beamNoSlope>
|
||||
<swingRatio>70</swingRatio>
|
||||
<swingUnit>120</swingUnit>
|
||||
<page-layout>
|
||||
<page-height>1683.36</page-height>
|
||||
<page-width>1190.88</page-width>
|
||||
<page-margins type="even">
|
||||
<left-margin>56.6929</left-margin>
|
||||
<right-margin>57.0217</right-margin>
|
||||
<top-margin>56.6929</top-margin>
|
||||
<bottom-margin>113.386</bottom-margin>
|
||||
</page-margins>
|
||||
<page-margins type="odd">
|
||||
<left-margin>56.6929</left-margin>
|
||||
<right-margin>57.0217</right-margin>
|
||||
<top-margin>56.6929</top-margin>
|
||||
<bottom-margin>113.386</bottom-margin>
|
||||
</page-margins>
|
||||
</page-layout>
|
||||
<Spatium>1.76389</Spatium>
|
||||
</Style>
|
||||
<showInvisible>1</showInvisible>
|
||||
<showUnprintable>1</showUnprintable>
|
||||
<showFrames>1</showFrames>
|
||||
<showMargins>0</showMargins>
|
||||
<metaTag name="arranger"></metaTag>
|
||||
<metaTag name="composer"></metaTag>
|
||||
<metaTag name="copyright"></metaTag>
|
||||
<metaTag name="creationDate">2014-06-27</metaTag>
|
||||
<metaTag name="lyricist"></metaTag>
|
||||
<metaTag name="movementNumber"></metaTag>
|
||||
<metaTag name="movementTitle"></metaTag>
|
||||
<metaTag name="platform">Linux</metaTag>
|
||||
<metaTag name="poet"></metaTag>
|
||||
<metaTag name="source"></metaTag>
|
||||
<metaTag name="translator"></metaTag>
|
||||
<metaTag name="workNumber"></metaTag>
|
||||
<metaTag name="workTitle">TestTripletsSixteenth</metaTag>
|
||||
<PageList>
|
||||
<Page>
|
||||
<System>
|
||||
</System>
|
||||
<System>
|
||||
</System>
|
||||
</Page>
|
||||
</PageList>
|
||||
<Part>
|
||||
<Staff id="1">
|
||||
<StaffType group="pitched">
|
||||
<name>Standard</name>
|
||||
</StaffType>
|
||||
<bracket type="-1" span="0"/>
|
||||
</Staff>
|
||||
<trackName>Flute</trackName>
|
||||
<Instrument>
|
||||
<longName pos="0">Flute</longName>
|
||||
<shortName pos="0">Fl.</shortName>
|
||||
<trackName>Flute</trackName>
|
||||
<minPitchP>59</minPitchP>
|
||||
<maxPitchP>98</maxPitchP>
|
||||
<minPitchA>60</minPitchA>
|
||||
<maxPitchA>93</maxPitchA>
|
||||
<Articulation>
|
||||
<velocity>100</velocity>
|
||||
<gateTime>95</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="staccato">
|
||||
<velocity>100</velocity>
|
||||
<gateTime>50</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="tenuto">
|
||||
<velocity>100</velocity>
|
||||
<gateTime>100</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="sforzato">
|
||||
<velocity>120</velocity>
|
||||
<gateTime>100</gateTime>
|
||||
</Articulation>
|
||||
<Channel>
|
||||
<program value="73"/>
|
||||
<synti>Fluid</synti>
|
||||
</Channel>
|
||||
</Instrument>
|
||||
</Part>
|
||||
<Staff id="1">
|
||||
<VBox>
|
||||
<height>10</height>
|
||||
<Text>
|
||||
<style>Title</style>
|
||||
<text>TestSixteenthTriplets</text>
|
||||
</Text>
|
||||
</VBox>
|
||||
<Measure number="1">
|
||||
<Clef>
|
||||
<concertClefType>G</concertClefType>
|
||||
<transposingClefType>G</transposingClefType>
|
||||
</Clef>
|
||||
<KeySig>
|
||||
<accidental>0</accidental>
|
||||
</KeySig>
|
||||
<TimeSig>
|
||||
<sigN>4</sigN>
|
||||
<sigD>4</sigD>
|
||||
<showCourtesySig>1</showCourtesySig>
|
||||
</TimeSig>
|
||||
<Tuplet id="1">
|
||||
<normalNotes>2</normalNotes>
|
||||
<actualNotes>3</actualNotes>
|
||||
<baseNote>16th</baseNote>
|
||||
<Number>
|
||||
<style>Tuplet</style>
|
||||
<text>3</text>
|
||||
</Number>
|
||||
</Tuplet>
|
||||
<Chord>
|
||||
<Tuplet>1</Tuplet>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>65</pitch>
|
||||
<tpc>13</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<Tuplet>1</Tuplet>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>64</pitch>
|
||||
<tpc>18</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<Tuplet>1</Tuplet>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>67</pitch>
|
||||
<tpc>15</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Rest>
|
||||
<durationType>eighth</durationType>
|
||||
</Rest>
|
||||
<Rest>
|
||||
<durationType>quarter</durationType>
|
||||
</Rest>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>67</pitch>
|
||||
<tpc>15</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>64</pitch>
|
||||
<tpc>18</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>65</pitch>
|
||||
<tpc>13</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Rest>
|
||||
<durationType>16th</durationType>
|
||||
</Rest>
|
||||
<Rest>
|
||||
<durationType>quarter</durationType>
|
||||
</Rest>
|
||||
<BarLine>
|
||||
<subtype>end</subtype>
|
||||
<span>1</span>
|
||||
</BarLine>
|
||||
</Measure>
|
||||
</Staff>
|
||||
</Score>
|
||||
</museScore>
|
34
mtest/libmscore/midi/testSwing8thDots-ref.txt
Normal file
34
mtest/libmscore/midi/testSwing8thDots-ref.txt
Normal file
|
@ -0,0 +1,34 @@
|
|||
Tick = 0 Type = 144 Pitch = 72 Velocity = 80 Channel = 0
|
||||
Tick = 0 Type = 3 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 323 Type = 144 Pitch = 72 Velocity = 0 Channel = 0
|
||||
Tick = 336 Type = 144 Pitch = 76 Velocity = 80 Channel = 0
|
||||
Tick = 480 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 776 Type = 144 Pitch = 76 Velocity = 0 Channel = 0
|
||||
Tick = 816 Type = 144 Pitch = 71 Velocity = 80 Channel = 0
|
||||
Tick = 951 Type = 144 Pitch = 71 Velocity = 0 Channel = 0
|
||||
Tick = 960 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 1440 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 1920 Type = 144 Pitch = 72 Velocity = 80 Channel = 0
|
||||
Tick = 1920 Type = 3 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 2375 Type = 144 Pitch = 72 Velocity = 0 Channel = 0
|
||||
Tick = 2400 Type = 144 Pitch = 74 Velocity = 80 Channel = 0
|
||||
Tick = 2400 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 2855 Type = 144 Pitch = 74 Velocity = 0 Channel = 0
|
||||
Tick = 2880 Type = 144 Pitch = 72 Velocity = 80 Channel = 0
|
||||
Tick = 2880 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 3335 Type = 144 Pitch = 72 Velocity = 0 Channel = 0
|
||||
Tick = 3360 Type = 144 Pitch = 71 Velocity = 80 Channel = 0
|
||||
Tick = 3360 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 3815 Type = 144 Pitch = 71 Velocity = 0 Channel = 0
|
||||
Tick = 3840 Type = 144 Pitch = 76 Velocity = 80 Channel = 0
|
||||
Tick = 3840 Type = 3 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 4320 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 4616 Type = 144 Pitch = 76 Velocity = 0 Channel = 0
|
||||
Tick = 4656 Type = 144 Pitch = 72 Velocity = 80 Channel = 0
|
||||
Tick = 4791 Type = 144 Pitch = 72 Velocity = 0 Channel = 0
|
||||
Tick = 4800 Type = 144 Pitch = 74 Velocity = 80 Channel = 0
|
||||
Tick = 4800 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 5123 Type = 144 Pitch = 74 Velocity = 0 Channel = 0
|
||||
Tick = 5135 Type = 144 Pitch = 71 Velocity = 80 Channel = 0
|
||||
Tick = 5280 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 5726 Type = 144 Pitch = 71 Velocity = 0 Channel = 0
|
216
mtest/libmscore/midi/testSwing8thDots.mscx
Normal file
216
mtest/libmscore/midi/testSwing8thDots.mscx
Normal file
|
@ -0,0 +1,216 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<museScore version="1.24">
|
||||
<programVersion>2.0.0</programVersion>
|
||||
<programRevision>3543170</programRevision>
|
||||
<Score>
|
||||
<LayerTag id="0" tag="default"></LayerTag>
|
||||
<currentLayer>0</currentLayer>
|
||||
<Synthesizer>
|
||||
</Synthesizer>
|
||||
<Division>480</Division>
|
||||
<Style>
|
||||
<figuredBassFontFamily>MScoreBC</figuredBassFontFamily>
|
||||
<beamMinLen>1.32</beamMinLen>
|
||||
<beamNoSlope>0</beamNoSlope>
|
||||
<swingRatio>70</swingRatio>
|
||||
<swingUnit>240</swingUnit>
|
||||
<page-layout>
|
||||
<page-height>1683.36</page-height>
|
||||
<page-width>1190.88</page-width>
|
||||
<page-margins type="even">
|
||||
<left-margin>56.6929</left-margin>
|
||||
<right-margin>57.0217</right-margin>
|
||||
<top-margin>56.6929</top-margin>
|
||||
<bottom-margin>113.386</bottom-margin>
|
||||
</page-margins>
|
||||
<page-margins type="odd">
|
||||
<left-margin>56.6929</left-margin>
|
||||
<right-margin>57.0217</right-margin>
|
||||
<top-margin>56.6929</top-margin>
|
||||
<bottom-margin>113.386</bottom-margin>
|
||||
</page-margins>
|
||||
</page-layout>
|
||||
<Spatium>1.76389</Spatium>
|
||||
</Style>
|
||||
<showInvisible>1</showInvisible>
|
||||
<showUnprintable>1</showUnprintable>
|
||||
<showFrames>1</showFrames>
|
||||
<showMargins>0</showMargins>
|
||||
<metaTag name="arranger"></metaTag>
|
||||
<metaTag name="composer"></metaTag>
|
||||
<metaTag name="copyright"></metaTag>
|
||||
<metaTag name="creationDate">2014-06-27</metaTag>
|
||||
<metaTag name="lyricist"></metaTag>
|
||||
<metaTag name="movementNumber"></metaTag>
|
||||
<metaTag name="movementTitle"></metaTag>
|
||||
<metaTag name="platform">Linux</metaTag>
|
||||
<metaTag name="poet"></metaTag>
|
||||
<metaTag name="source"></metaTag>
|
||||
<metaTag name="translator"></metaTag>
|
||||
<metaTag name="workNumber"></metaTag>
|
||||
<metaTag name="workTitle">TestQuarters</metaTag>
|
||||
<PageList>
|
||||
<Page>
|
||||
<System>
|
||||
</System>
|
||||
<System>
|
||||
</System>
|
||||
</Page>
|
||||
</PageList>
|
||||
<Part>
|
||||
<Staff id="1">
|
||||
<StaffType group="pitched">
|
||||
<name>Standard</name>
|
||||
</StaffType>
|
||||
<bracket type="-1" span="0"/>
|
||||
</Staff>
|
||||
<trackName>Flute</trackName>
|
||||
<Instrument>
|
||||
<longName pos="0">Flute</longName>
|
||||
<shortName pos="0">Fl.</shortName>
|
||||
<trackName>Flute</trackName>
|
||||
<minPitchP>59</minPitchP>
|
||||
<maxPitchP>98</maxPitchP>
|
||||
<minPitchA>60</minPitchA>
|
||||
<maxPitchA>93</maxPitchA>
|
||||
<Articulation>
|
||||
<velocity>100</velocity>
|
||||
<gateTime>95</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="staccato">
|
||||
<velocity>100</velocity>
|
||||
<gateTime>50</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="tenuto">
|
||||
<velocity>100</velocity>
|
||||
<gateTime>100</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="sforzato">
|
||||
<velocity>120</velocity>
|
||||
<gateTime>100</gateTime>
|
||||
</Articulation>
|
||||
<Channel>
|
||||
<program value="73"/>
|
||||
<synti>Fluid</synti>
|
||||
</Channel>
|
||||
</Instrument>
|
||||
</Part>
|
||||
<Staff id="1">
|
||||
<VBox>
|
||||
<height>10</height>
|
||||
<Text>
|
||||
<style>Title</style>
|
||||
<text>TestEighthDots</text>
|
||||
</Text>
|
||||
</VBox>
|
||||
<Measure number="1">
|
||||
<Clef>
|
||||
<concertClefType>G</concertClefType>
|
||||
<transposingClefType>G</transposingClefType>
|
||||
</Clef>
|
||||
<KeySig>
|
||||
<accidental>0</accidental>
|
||||
</KeySig>
|
||||
<TimeSig>
|
||||
<sigN>4</sigN>
|
||||
<sigD>4</sigD>
|
||||
<showCourtesySig>1</showCourtesySig>
|
||||
</TimeSig>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>72</pitch>
|
||||
<tpc>14</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>quarter</durationType>
|
||||
<Note>
|
||||
<pitch>76</pitch>
|
||||
<tpc>18</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>71</pitch>
|
||||
<tpc>19</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Rest>
|
||||
<durationType>half</durationType>
|
||||
</Rest>
|
||||
<BarLine>
|
||||
<subtype>normal</subtype>
|
||||
<span>1</span>
|
||||
</BarLine>
|
||||
</Measure>
|
||||
<Measure number="2">
|
||||
<Chord>
|
||||
<durationType>quarter</durationType>
|
||||
<Note>
|
||||
<pitch>72</pitch>
|
||||
<tpc>14</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>quarter</durationType>
|
||||
<Note>
|
||||
<pitch>74</pitch>
|
||||
<tpc>16</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>quarter</durationType>
|
||||
<Note>
|
||||
<pitch>72</pitch>
|
||||
<tpc>14</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>quarter</durationType>
|
||||
<Note>
|
||||
<pitch>71</pitch>
|
||||
<tpc>19</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
</Measure>
|
||||
<Measure number="3">
|
||||
<Chord>
|
||||
<dots>1</dots>
|
||||
<durationType>quarter</durationType>
|
||||
<Note>
|
||||
<pitch>76</pitch>
|
||||
<tpc>18</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>72</pitch>
|
||||
<tpc>14</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>74</pitch>
|
||||
<tpc>16</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<dots>1</dots>
|
||||
<durationType>quarter</durationType>
|
||||
<Note>
|
||||
<pitch>71</pitch>
|
||||
<tpc>19</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<BarLine>
|
||||
<subtype>end</subtype>
|
||||
<span>1</span>
|
||||
</BarLine>
|
||||
</Measure>
|
||||
</Staff>
|
||||
</Score>
|
||||
</museScore>
|
50
mtest/libmscore/midi/testSwing8thSimple-ref.txt
Normal file
50
mtest/libmscore/midi/testSwing8thSimple-ref.txt
Normal file
|
@ -0,0 +1,50 @@
|
|||
Tick = 0 Type = 144 Pitch = 72 Velocity = 80 Channel = 0
|
||||
Tick = 0 Type = 3 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 323 Type = 144 Pitch = 72 Velocity = 0 Channel = 0
|
||||
Tick = 336 Type = 144 Pitch = 67 Velocity = 80 Channel = 0
|
||||
Tick = 471 Type = 144 Pitch = 67 Velocity = 0 Channel = 0
|
||||
Tick = 480 Type = 144 Pitch = 74 Velocity = 80 Channel = 0
|
||||
Tick = 480 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 707 Type = 144 Pitch = 74 Velocity = 0 Channel = 0
|
||||
Tick = 720 Type = 144 Pitch = 79 Velocity = 80 Channel = 0
|
||||
Tick = 833 Type = 144 Pitch = 79 Velocity = 0 Channel = 0
|
||||
Tick = 840 Type = 144 Pitch = 79 Velocity = 80 Channel = 0
|
||||
Tick = 953 Type = 144 Pitch = 79 Velocity = 0 Channel = 0
|
||||
Tick = 960 Type = 144 Pitch = 77 Velocity = 80 Channel = 0
|
||||
Tick = 960 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 1073 Type = 144 Pitch = 77 Velocity = 0 Channel = 0
|
||||
Tick = 1080 Type = 144 Pitch = 77 Velocity = 80 Channel = 0
|
||||
Tick = 1193 Type = 144 Pitch = 77 Velocity = 0 Channel = 0
|
||||
Tick = 1200 Type = 144 Pitch = 71 Velocity = 80 Channel = 0
|
||||
Tick = 1427 Type = 144 Pitch = 71 Velocity = 0 Channel = 0
|
||||
Tick = 1440 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 1920 Type = 144 Pitch = 72 Velocity = 80 Channel = 0
|
||||
Tick = 1920 Type = 3 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 2243 Type = 144 Pitch = 72 Velocity = 0 Channel = 0
|
||||
Tick = 2256 Type = 144 Pitch = 74 Velocity = 80 Channel = 0
|
||||
Tick = 2391 Type = 144 Pitch = 74 Velocity = 0 Channel = 0
|
||||
Tick = 2400 Type = 144 Pitch = 72 Velocity = 80 Channel = 0
|
||||
Tick = 2400 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 2723 Type = 144 Pitch = 72 Velocity = 0 Channel = 0
|
||||
Tick = 2736 Type = 144 Pitch = 71 Velocity = 80 Channel = 0
|
||||
Tick = 2871 Type = 144 Pitch = 71 Velocity = 0 Channel = 0
|
||||
Tick = 2880 Type = 144 Pitch = 84 Velocity = 80 Channel = 0
|
||||
Tick = 2880 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 2993 Type = 144 Pitch = 84 Velocity = 0 Channel = 0
|
||||
Tick = 3000 Type = 144 Pitch = 86 Velocity = 80 Channel = 0
|
||||
Tick = 3113 Type = 144 Pitch = 86 Velocity = 0 Channel = 0
|
||||
Tick = 3120 Type = 144 Pitch = 84 Velocity = 80 Channel = 0
|
||||
Tick = 3233 Type = 144 Pitch = 84 Velocity = 0 Channel = 0
|
||||
Tick = 3240 Type = 144 Pitch = 83 Velocity = 80 Channel = 0
|
||||
Tick = 3353 Type = 144 Pitch = 83 Velocity = 0 Channel = 0
|
||||
Tick = 3360 Type = 144 Pitch = 96 Velocity = 80 Channel = 0
|
||||
Tick = 3360 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 3416 Type = 144 Pitch = 96 Velocity = 0 Channel = 0
|
||||
Tick = 3420 Type = 144 Pitch = 98 Velocity = 80 Channel = 0
|
||||
Tick = 3476 Type = 144 Pitch = 98 Velocity = 0 Channel = 0
|
||||
Tick = 3480 Type = 144 Pitch = 96 Velocity = 80 Channel = 0
|
||||
Tick = 3536 Type = 144 Pitch = 96 Velocity = 0 Channel = 0
|
||||
Tick = 3540 Type = 144 Pitch = 95 Velocity = 80 Channel = 0
|
||||
Tick = 3596 Type = 144 Pitch = 95 Velocity = 0 Channel = 0
|
||||
Tick = 3600 Type = 144 Pitch = 72 Velocity = 80 Channel = 0
|
||||
Tick = 3827 Type = 144 Pitch = 72 Velocity = 0 Channel = 0
|
283
mtest/libmscore/midi/testSwing8thSimple.mscx
Normal file
283
mtest/libmscore/midi/testSwing8thSimple.mscx
Normal file
|
@ -0,0 +1,283 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<museScore version="1.24">
|
||||
<programVersion>2.0.0</programVersion>
|
||||
<programRevision>3543170</programRevision>
|
||||
<Score>
|
||||
<LayerTag id="0" tag="default"></LayerTag>
|
||||
<currentLayer>0</currentLayer>
|
||||
<Synthesizer>
|
||||
</Synthesizer>
|
||||
<Division>480</Division>
|
||||
<Style>
|
||||
<figuredBassFontFamily>MScoreBC</figuredBassFontFamily>
|
||||
<beamMinLen>1.32</beamMinLen>
|
||||
<beamNoSlope>0</beamNoSlope>
|
||||
<swingRatio>70</swingRatio>
|
||||
<swingUnit>240</swingUnit>
|
||||
<page-layout>
|
||||
<page-height>1683.36</page-height>
|
||||
<page-width>1190.88</page-width>
|
||||
<page-margins type="even">
|
||||
<left-margin>56.6929</left-margin>
|
||||
<right-margin>57.0217</right-margin>
|
||||
<top-margin>56.6929</top-margin>
|
||||
<bottom-margin>113.386</bottom-margin>
|
||||
</page-margins>
|
||||
<page-margins type="odd">
|
||||
<left-margin>56.6929</left-margin>
|
||||
<right-margin>57.0217</right-margin>
|
||||
<top-margin>56.6929</top-margin>
|
||||
<bottom-margin>113.386</bottom-margin>
|
||||
</page-margins>
|
||||
</page-layout>
|
||||
<Spatium>1.76389</Spatium>
|
||||
</Style>
|
||||
<showInvisible>1</showInvisible>
|
||||
<showUnprintable>1</showUnprintable>
|
||||
<showFrames>1</showFrames>
|
||||
<showMargins>0</showMargins>
|
||||
<metaTag name="arranger"></metaTag>
|
||||
<metaTag name="composer"></metaTag>
|
||||
<metaTag name="copyright"></metaTag>
|
||||
<metaTag name="creationDate">2014-06-27</metaTag>
|
||||
<metaTag name="lyricist"></metaTag>
|
||||
<metaTag name="movementNumber"></metaTag>
|
||||
<metaTag name="movementTitle"></metaTag>
|
||||
<metaTag name="platform">Linux</metaTag>
|
||||
<metaTag name="poet"></metaTag>
|
||||
<metaTag name="source"></metaTag>
|
||||
<metaTag name="translator"></metaTag>
|
||||
<metaTag name="workNumber"></metaTag>
|
||||
<metaTag name="workTitle">TestEighthsSixteenths</metaTag>
|
||||
<PageList>
|
||||
<Page>
|
||||
<System>
|
||||
</System>
|
||||
<System>
|
||||
</System>
|
||||
</Page>
|
||||
</PageList>
|
||||
<Part>
|
||||
<Staff id="1">
|
||||
<StaffType group="pitched">
|
||||
<name>Standard</name>
|
||||
</StaffType>
|
||||
<bracket type="-1" span="0"/>
|
||||
</Staff>
|
||||
<trackName>Flute</trackName>
|
||||
<Instrument>
|
||||
<longName pos="0">Flute</longName>
|
||||
<shortName pos="0">Fl.</shortName>
|
||||
<trackName>Flute</trackName>
|
||||
<minPitchP>59</minPitchP>
|
||||
<maxPitchP>98</maxPitchP>
|
||||
<minPitchA>60</minPitchA>
|
||||
<maxPitchA>93</maxPitchA>
|
||||
<Articulation>
|
||||
<velocity>100</velocity>
|
||||
<gateTime>95</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="staccato">
|
||||
<velocity>100</velocity>
|
||||
<gateTime>50</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="tenuto">
|
||||
<velocity>100</velocity>
|
||||
<gateTime>100</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="sforzato">
|
||||
<velocity>120</velocity>
|
||||
<gateTime>100</gateTime>
|
||||
</Articulation>
|
||||
<Channel>
|
||||
<program value="73"/>
|
||||
<synti>Fluid</synti>
|
||||
</Channel>
|
||||
</Instrument>
|
||||
</Part>
|
||||
<Staff id="1">
|
||||
<VBox>
|
||||
<height>10</height>
|
||||
<Text>
|
||||
<style>Title</style>
|
||||
<text>TestEighthSimple
|
||||
</text>
|
||||
</Text>
|
||||
</VBox>
|
||||
<Measure number="1">
|
||||
<Clef>
|
||||
<concertClefType>G</concertClefType>
|
||||
<transposingClefType>G</transposingClefType>
|
||||
</Clef>
|
||||
<KeySig>
|
||||
<accidental>0</accidental>
|
||||
</KeySig>
|
||||
<TimeSig>
|
||||
<sigN>4</sigN>
|
||||
<sigD>4</sigD>
|
||||
<showCourtesySig>1</showCourtesySig>
|
||||
</TimeSig>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>72</pitch>
|
||||
<tpc>14</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>67</pitch>
|
||||
<tpc>15</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>74</pitch>
|
||||
<tpc>16</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>79</pitch>
|
||||
<tpc>15</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>79</pitch>
|
||||
<tpc>15</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>77</pitch>
|
||||
<tpc>13</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>77</pitch>
|
||||
<tpc>13</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>71</pitch>
|
||||
<tpc>19</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Rest>
|
||||
<durationType>quarter</durationType>
|
||||
</Rest>
|
||||
<BarLine>
|
||||
<subtype>normal</subtype>
|
||||
<span>1</span>
|
||||
</BarLine>
|
||||
</Measure>
|
||||
<Measure number="2">
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>72</pitch>
|
||||
<tpc>14</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>74</pitch>
|
||||
<tpc>16</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>72</pitch>
|
||||
<tpc>14</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>71</pitch>
|
||||
<tpc>19</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>84</pitch>
|
||||
<tpc>14</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>86</pitch>
|
||||
<tpc>16</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>84</pitch>
|
||||
<tpc>14</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>16th</durationType>
|
||||
<Note>
|
||||
<pitch>83</pitch>
|
||||
<tpc>19</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>32nd</durationType>
|
||||
<Note>
|
||||
<pitch>96</pitch>
|
||||
<tpc>14</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>32nd</durationType>
|
||||
<Note>
|
||||
<pitch>98</pitch>
|
||||
<tpc>16</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>32nd</durationType>
|
||||
<Note>
|
||||
<pitch>96</pitch>
|
||||
<tpc>14</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>32nd</durationType>
|
||||
<Note>
|
||||
<pitch>95</pitch>
|
||||
<tpc>19</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>72</pitch>
|
||||
<tpc>14</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<BarLine>
|
||||
<subtype>end</subtype>
|
||||
<span>1</span>
|
||||
</BarLine>
|
||||
</Measure>
|
||||
</Staff>
|
||||
</Score>
|
||||
</museScore>
|
20
mtest/libmscore/midi/testSwing8thTies-ref.txt
Normal file
20
mtest/libmscore/midi/testSwing8thTies-ref.txt
Normal file
|
@ -0,0 +1,20 @@
|
|||
Tick = 0 Type = 144 Pitch = 75 Velocity = 80 Channel = 0
|
||||
Tick = 0 Type = 3 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 323 Type = 144 Pitch = 75 Velocity = 0 Channel = 0
|
||||
Tick = 336 Type = 144 Pitch = 72 Velocity = 80 Channel = 0
|
||||
Tick = 480 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 795 Type = 144 Pitch = 72 Velocity = 0 Channel = 0
|
||||
Tick = 816 Type = 144 Pitch = 71 Velocity = 80 Channel = 0
|
||||
Tick = 951 Type = 144 Pitch = 71 Velocity = 0 Channel = 0
|
||||
Tick = 960 Type = 144 Pitch = 74 Velocity = 80 Channel = 0
|
||||
Tick = 960 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 1440 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 1739 Type = 144 Pitch = 74 Velocity = 0 Channel = 0
|
||||
Tick = 1920 Type = 144 Pitch = 71 Velocity = 80 Channel = 0
|
||||
Tick = 1920 Type = 3 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 2243 Type = 144 Pitch = 71 Velocity = 0 Channel = 0
|
||||
Tick = 2256 Type = 144 Pitch = 65 Velocity = 80 Channel = 0
|
||||
Tick = 2400 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 2880 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 3168 Type = 144 Pitch = 65 Velocity = 0 Channel = 0
|
||||
Tick = 3360 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
217
mtest/libmscore/midi/testSwing8thTies.mscx
Normal file
217
mtest/libmscore/midi/testSwing8thTies.mscx
Normal file
|
@ -0,0 +1,217 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<museScore version="1.24">
|
||||
<programVersion>2.0.0</programVersion>
|
||||
<programRevision>3543170</programRevision>
|
||||
<Score>
|
||||
<LayerTag id="0" tag="default"></LayerTag>
|
||||
<currentLayer>0</currentLayer>
|
||||
<Synthesizer>
|
||||
</Synthesizer>
|
||||
<Division>480</Division>
|
||||
<Style>
|
||||
<figuredBassFontFamily>MScoreBC</figuredBassFontFamily>
|
||||
<beamMinLen>1.32</beamMinLen>
|
||||
<beamNoSlope>0</beamNoSlope>
|
||||
<swingRatio>70</swingRatio>
|
||||
<swingUnit>240</swingUnit>
|
||||
<page-layout>
|
||||
<page-height>1683.36</page-height>
|
||||
<page-width>1190.88</page-width>
|
||||
<page-margins type="even">
|
||||
<left-margin>56.6929</left-margin>
|
||||
<right-margin>57.0217</right-margin>
|
||||
<top-margin>56.6929</top-margin>
|
||||
<bottom-margin>113.386</bottom-margin>
|
||||
</page-margins>
|
||||
<page-margins type="odd">
|
||||
<left-margin>56.6929</left-margin>
|
||||
<right-margin>57.0217</right-margin>
|
||||
<top-margin>56.6929</top-margin>
|
||||
<bottom-margin>113.386</bottom-margin>
|
||||
</page-margins>
|
||||
</page-layout>
|
||||
<Spatium>1.76389</Spatium>
|
||||
</Style>
|
||||
<showInvisible>1</showInvisible>
|
||||
<showUnprintable>1</showUnprintable>
|
||||
<showFrames>1</showFrames>
|
||||
<showMargins>0</showMargins>
|
||||
<metaTag name="arranger"></metaTag>
|
||||
<metaTag name="composer"></metaTag>
|
||||
<metaTag name="copyright"></metaTag>
|
||||
<metaTag name="creationDate">2014-06-27</metaTag>
|
||||
<metaTag name="lyricist"></metaTag>
|
||||
<metaTag name="movementNumber"></metaTag>
|
||||
<metaTag name="movementTitle"></metaTag>
|
||||
<metaTag name="platform">Linux</metaTag>
|
||||
<metaTag name="poet"></metaTag>
|
||||
<metaTag name="source"></metaTag>
|
||||
<metaTag name="translator"></metaTag>
|
||||
<metaTag name="workNumber"></metaTag>
|
||||
<metaTag name="workTitle">TestTies</metaTag>
|
||||
<PageList>
|
||||
<Page>
|
||||
<System>
|
||||
</System>
|
||||
<System>
|
||||
</System>
|
||||
</Page>
|
||||
</PageList>
|
||||
<Part>
|
||||
<Staff id="1">
|
||||
<StaffType group="pitched">
|
||||
<name>Standard</name>
|
||||
</StaffType>
|
||||
<bracket type="-1" span="0"/>
|
||||
</Staff>
|
||||
<trackName>Flute</trackName>
|
||||
<Instrument>
|
||||
<longName pos="0">Flute</longName>
|
||||
<shortName pos="0">Fl.</shortName>
|
||||
<trackName>Flute</trackName>
|
||||
<minPitchP>59</minPitchP>
|
||||
<maxPitchP>98</maxPitchP>
|
||||
<minPitchA>60</minPitchA>
|
||||
<maxPitchA>93</maxPitchA>
|
||||
<Articulation>
|
||||
<velocity>100</velocity>
|
||||
<gateTime>95</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="staccato">
|
||||
<velocity>100</velocity>
|
||||
<gateTime>50</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="tenuto">
|
||||
<velocity>100</velocity>
|
||||
<gateTime>100</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="sforzato">
|
||||
<velocity>120</velocity>
|
||||
<gateTime>100</gateTime>
|
||||
</Articulation>
|
||||
<Channel>
|
||||
<program value="73"/>
|
||||
<synti>Fluid</synti>
|
||||
</Channel>
|
||||
</Instrument>
|
||||
</Part>
|
||||
<Staff id="1">
|
||||
<VBox>
|
||||
<height>10</height>
|
||||
<Text>
|
||||
<style>Title</style>
|
||||
<text>TestEighthTies</text>
|
||||
</Text>
|
||||
</VBox>
|
||||
<Measure number="1">
|
||||
<Clef>
|
||||
<concertClefType>G</concertClefType>
|
||||
<transposingClefType>G</transposingClefType>
|
||||
</Clef>
|
||||
<KeySig>
|
||||
<accidental>0</accidental>
|
||||
</KeySig>
|
||||
<TimeSig>
|
||||
<sigN>4</sigN>
|
||||
<sigD>4</sigD>
|
||||
<showCourtesySig>1</showCourtesySig>
|
||||
</TimeSig>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<Accidental>
|
||||
<subtype>flat</subtype>
|
||||
</Accidental>
|
||||
<pitch>75</pitch>
|
||||
<tpc>11</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<Tie id="2">
|
||||
</Tie>
|
||||
<pitch>72</pitch>
|
||||
<tpc>14</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<endSpanner id="2"/>
|
||||
<pitch>72</pitch>
|
||||
<tpc>14</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>71</pitch>
|
||||
<tpc>19</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>quarter</durationType>
|
||||
<Note>
|
||||
<Tie id="3">
|
||||
</Tie>
|
||||
<pitch>74</pitch>
|
||||
<tpc>16</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<endSpanner id="3"/>
|
||||
<pitch>74</pitch>
|
||||
<tpc>16</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Rest>
|
||||
<durationType>eighth</durationType>
|
||||
</Rest>
|
||||
<BarLine>
|
||||
<subtype>normal</subtype>
|
||||
<span>1</span>
|
||||
</BarLine>
|
||||
</Measure>
|
||||
<Measure number="2">
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>71</pitch>
|
||||
<tpc>19</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<Tie id="4">
|
||||
</Tie>
|
||||
<pitch>65</pitch>
|
||||
<tpc>13</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<dots>1</dots>
|
||||
<durationType>quarter</durationType>
|
||||
<Note>
|
||||
<endSpanner id="4"/>
|
||||
<pitch>65</pitch>
|
||||
<tpc>13</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Rest>
|
||||
<durationType>eighth</durationType>
|
||||
</Rest>
|
||||
<Rest>
|
||||
<durationType>quarter</durationType>
|
||||
</Rest>
|
||||
<BarLine>
|
||||
<subtype>end</subtype>
|
||||
<span>1</span>
|
||||
</BarLine>
|
||||
</Measure>
|
||||
</Staff>
|
||||
</Score>
|
||||
</museScore>
|
16
mtest/libmscore/midi/testSwing8thTriplets-ref.txt
Normal file
16
mtest/libmscore/midi/testSwing8thTriplets-ref.txt
Normal file
|
@ -0,0 +1,16 @@
|
|||
Tick = 0 Type = 144 Pitch = 72 Velocity = 80 Channel = 0
|
||||
Tick = 0 Type = 3 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 455 Type = 144 Pitch = 72 Velocity = 0 Channel = 0
|
||||
Tick = 480 Type = 144 Pitch = 77 Velocity = 80 Channel = 0
|
||||
Tick = 480 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 631 Type = 144 Pitch = 77 Velocity = 0 Channel = 0
|
||||
Tick = 640 Type = 144 Pitch = 76 Velocity = 80 Channel = 0
|
||||
Tick = 791 Type = 144 Pitch = 76 Velocity = 0 Channel = 0
|
||||
Tick = 800 Type = 144 Pitch = 74 Velocity = 80 Channel = 0
|
||||
Tick = 951 Type = 144 Pitch = 74 Velocity = 0 Channel = 0
|
||||
Tick = 960 Type = 144 Pitch = 72 Velocity = 80 Channel = 0
|
||||
Tick = 960 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 1415 Type = 144 Pitch = 72 Velocity = 0 Channel = 0
|
||||
Tick = 1440 Type = 144 Pitch = 62 Velocity = 80 Channel = 0
|
||||
Tick = 1440 Type = 4 Pitch = 0 Velocity = 0 Channel = 0
|
||||
Tick = 1895 Type = 144 Pitch = 62 Velocity = 0 Channel = 0
|
180
mtest/libmscore/midi/testSwing8thTriplets.mscx
Normal file
180
mtest/libmscore/midi/testSwing8thTriplets.mscx
Normal file
|
@ -0,0 +1,180 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<museScore version="1.24">
|
||||
<programVersion>2.0.0</programVersion>
|
||||
<programRevision>3543170</programRevision>
|
||||
<Score>
|
||||
<LayerTag id="0" tag="default"></LayerTag>
|
||||
<currentLayer>0</currentLayer>
|
||||
<Synthesizer>
|
||||
</Synthesizer>
|
||||
<Division>480</Division>
|
||||
<Style>
|
||||
<figuredBassFontFamily>MScoreBC</figuredBassFontFamily>
|
||||
<beamMinLen>1.32</beamMinLen>
|
||||
<beamNoSlope>0</beamNoSlope>
|
||||
<swingRatio>70</swingRatio>
|
||||
<swingUnit>240</swingUnit>
|
||||
<page-layout>
|
||||
<page-height>1683.36</page-height>
|
||||
<page-width>1190.88</page-width>
|
||||
<page-margins type="even">
|
||||
<left-margin>56.6929</left-margin>
|
||||
<right-margin>57.0217</right-margin>
|
||||
<top-margin>56.6929</top-margin>
|
||||
<bottom-margin>113.386</bottom-margin>
|
||||
</page-margins>
|
||||
<page-margins type="odd">
|
||||
<left-margin>56.6929</left-margin>
|
||||
<right-margin>57.0217</right-margin>
|
||||
<top-margin>56.6929</top-margin>
|
||||
<bottom-margin>113.386</bottom-margin>
|
||||
</page-margins>
|
||||
</page-layout>
|
||||
<Spatium>1.76389</Spatium>
|
||||
</Style>
|
||||
<showInvisible>1</showInvisible>
|
||||
<showUnprintable>1</showUnprintable>
|
||||
<showFrames>1</showFrames>
|
||||
<showMargins>0</showMargins>
|
||||
<metaTag name="arranger"></metaTag>
|
||||
<metaTag name="composer"></metaTag>
|
||||
<metaTag name="copyright"></metaTag>
|
||||
<metaTag name="creationDate">2014-06-27</metaTag>
|
||||
<metaTag name="lyricist"></metaTag>
|
||||
<metaTag name="movementNumber"></metaTag>
|
||||
<metaTag name="movementTitle"></metaTag>
|
||||
<metaTag name="platform">Linux</metaTag>
|
||||
<metaTag name="poet"></metaTag>
|
||||
<metaTag name="source"></metaTag>
|
||||
<metaTag name="translator"></metaTag>
|
||||
<metaTag name="workNumber"></metaTag>
|
||||
<metaTag name="workTitle">TestTriplets</metaTag>
|
||||
<PageList>
|
||||
<Page>
|
||||
<System>
|
||||
</System>
|
||||
<System>
|
||||
</System>
|
||||
</Page>
|
||||
</PageList>
|
||||
<Part>
|
||||
<Staff id="1">
|
||||
<StaffType group="pitched">
|
||||
<name>Standard</name>
|
||||
</StaffType>
|
||||
<bracket type="-1" span="0"/>
|
||||
</Staff>
|
||||
<trackName>Flute</trackName>
|
||||
<Instrument>
|
||||
<longName pos="0">Flute</longName>
|
||||
<shortName pos="0">Fl.</shortName>
|
||||
<trackName>Flute</trackName>
|
||||
<minPitchP>59</minPitchP>
|
||||
<maxPitchP>98</maxPitchP>
|
||||
<minPitchA>60</minPitchA>
|
||||
<maxPitchA>93</maxPitchA>
|
||||
<Articulation>
|
||||
<velocity>100</velocity>
|
||||
<gateTime>95</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="staccato">
|
||||
<velocity>100</velocity>
|
||||
<gateTime>50</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="tenuto">
|
||||
<velocity>100</velocity>
|
||||
<gateTime>100</gateTime>
|
||||
</Articulation>
|
||||
<Articulation name="sforzato">
|
||||
<velocity>120</velocity>
|
||||
<gateTime>100</gateTime>
|
||||
</Articulation>
|
||||
<Channel>
|
||||
<program value="73"/>
|
||||
<synti>Fluid</synti>
|
||||
</Channel>
|
||||
</Instrument>
|
||||
</Part>
|
||||
<Staff id="1">
|
||||
<VBox>
|
||||
<height>10</height>
|
||||
<Text>
|
||||
<style>Title</style>
|
||||
<text>TestEighthTriplets</text>
|
||||
</Text>
|
||||
</VBox>
|
||||
<Measure number="1">
|
||||
<Clef>
|
||||
<concertClefType>G</concertClefType>
|
||||
<transposingClefType>G</transposingClefType>
|
||||
</Clef>
|
||||
<KeySig>
|
||||
<accidental>0</accidental>
|
||||
</KeySig>
|
||||
<TimeSig>
|
||||
<sigN>4</sigN>
|
||||
<sigD>4</sigD>
|
||||
<showCourtesySig>1</showCourtesySig>
|
||||
</TimeSig>
|
||||
<Chord>
|
||||
<durationType>quarter</durationType>
|
||||
<Note>
|
||||
<pitch>72</pitch>
|
||||
<tpc>14</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Tuplet id="1">
|
||||
<normalNotes>2</normalNotes>
|
||||
<actualNotes>3</actualNotes>
|
||||
<baseNote>eighth</baseNote>
|
||||
<Number>
|
||||
<style>Tuplet</style>
|
||||
<text>3</text>
|
||||
</Number>
|
||||
</Tuplet>
|
||||
<Chord>
|
||||
<Tuplet>1</Tuplet>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>77</pitch>
|
||||
<tpc>13</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<Tuplet>1</Tuplet>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>76</pitch>
|
||||
<tpc>18</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<Tuplet>1</Tuplet>
|
||||
<durationType>eighth</durationType>
|
||||
<Note>
|
||||
<pitch>74</pitch>
|
||||
<tpc>16</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>quarter</durationType>
|
||||
<Note>
|
||||
<pitch>72</pitch>
|
||||
<tpc>14</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<Chord>
|
||||
<durationType>quarter</durationType>
|
||||
<Note>
|
||||
<pitch>62</pitch>
|
||||
<tpc>16</tpc>
|
||||
</Note>
|
||||
</Chord>
|
||||
<BarLine>
|
||||
<subtype>end</subtype>
|
||||
<span>1</span>
|
||||
</BarLine>
|
||||
</Measure>
|
||||
</Staff>
|
||||
</Score>
|
||||
</museScore>
|
|
@ -12,7 +12,9 @@
|
|||
//=============================================================================
|
||||
|
||||
#include <QtTest/QtTest>
|
||||
|
||||
#include <QFile>
|
||||
#include <QCoreApplication>
|
||||
#include <QTextStream>
|
||||
#include "libmscore/mscore.h"
|
||||
#include "libmscore/score.h"
|
||||
#include "libmscore/durationtype.h"
|
||||
|
@ -25,6 +27,7 @@
|
|||
|
||||
#include "libmscore/mcursor.h"
|
||||
#include "mtest/testutils.h"
|
||||
#define DIR QString("libmscore/midi/")
|
||||
|
||||
namespace Ms {
|
||||
extern Score::FileError importMidi(Score*, const QString&);
|
||||
|
@ -45,6 +48,8 @@ class TestMidi : public QObject, public MTest
|
|||
void midi01();
|
||||
void midi02();
|
||||
void midi03();
|
||||
void events_data();
|
||||
void events();
|
||||
};
|
||||
|
||||
//---------------------------------------------------------
|
||||
|
@ -57,6 +62,21 @@ void TestMidi::initTestCase()
|
|||
}
|
||||
|
||||
|
||||
void TestMidi::events_data()
|
||||
{
|
||||
QTest::addColumn<QString>("file");
|
||||
// Test Eighth Swing
|
||||
QTest::newRow("testSwing8thSimple") << "testSwing8thSimple";
|
||||
QTest::newRow("testSwing8thTies") << "testSwing8thTies";
|
||||
QTest::newRow("testSwing8thTriplets") << "testSwing8thTriplets";
|
||||
QTest::newRow("testSwing8thDots") << "testSwing8thDots";
|
||||
// Test Sixteenth Swing
|
||||
QTest::newRow("testSwing16thSimple") << "testSwing16thSimple";
|
||||
QTest::newRow("testSwing16thTies") << "testSwing16thTies";
|
||||
QTest::newRow("testSwing16thTriplets") << "testSwing16thTriplets";
|
||||
QTest::newRow("testSwing16thDots") << "testSwing16thDots";
|
||||
}
|
||||
|
||||
//---------------------------------------------------------
|
||||
// saveMidi
|
||||
//---------------------------------------------------------
|
||||
|
@ -67,6 +87,7 @@ bool saveMidi(Score* score, const QString& name)
|
|||
return em.write(name, true);
|
||||
}
|
||||
|
||||
|
||||
//---------------------------------------------------------
|
||||
// compareElements
|
||||
//---------------------------------------------------------
|
||||
|
@ -289,6 +310,47 @@ void TestMidi::midi03()
|
|||
delete score2;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------
|
||||
// events
|
||||
//---------------------------------------------------------
|
||||
|
||||
void TestMidi::events()
|
||||
{
|
||||
QFETCH(QString, file);
|
||||
|
||||
QString readFile(DIR + file + ".mscx");
|
||||
QString writeFile(file + "-test.txt");
|
||||
QString reference(DIR + file + "-ref.txt");
|
||||
|
||||
Score* score = readScore(readFile);
|
||||
score->doLayout();
|
||||
EventMap events;
|
||||
score->renderMidi(&events);
|
||||
//qDebug() << "Opened score " << readFile;
|
||||
QFile filehandler(writeFile);
|
||||
filehandler.open(QIODevice::WriteOnly | QIODevice::Text);
|
||||
QTextStream out(&filehandler);
|
||||
multimap<int, NPlayEvent> ::iterator iter;
|
||||
for (auto iter = events.begin(); iter!= events.end(); ++iter){
|
||||
out << qSetFieldWidth(5) << "Tick = ";
|
||||
out << qSetFieldWidth(5) << iter->first;
|
||||
out << qSetFieldWidth(5) << " Type = ";
|
||||
out << qSetFieldWidth(5) << iter->second.type();
|
||||
out << qSetFieldWidth(5) << " Pitch = ";
|
||||
out << qSetFieldWidth(5) << iter->second.dataA();
|
||||
out << qSetFieldWidth(5) << " Velocity = ";
|
||||
out << qSetFieldWidth(5) << iter->second.dataB();
|
||||
out << qSetFieldWidth(5) << " Channel = ";
|
||||
out << qSetFieldWidth(5) << iter->second.channel();
|
||||
out << endl;
|
||||
}
|
||||
filehandler.close();
|
||||
|
||||
QVERIFY(score);
|
||||
QVERIFY(compareFiles(writeFile, reference));
|
||||
// QVERIFY(saveCompareScore(score, writeFile, reference));
|
||||
}
|
||||
|
||||
QTEST_MAIN(TestMidi)
|
||||
|
||||
#include "tst_midi.moc"
|
||||
|
|
Loading…
Reference in a new issue