-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from notengrafik/pr/release-2.2.0-fixed
Pr/release 2.2.0 fixed
- Loading branch information
Showing
29 changed files
with
590 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
{ | ||
Initialize "() | ||
{ | ||
AddToPluginsMenu('Sibmei Test Runner', 'Run'); | ||
}" | ||
|
||
Run "() | ||
{ | ||
Testsibmei2.Run(); | ||
}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
var config = { | ||
plgPath: process.env.HOME + '/Library/Application Support/Avid/Sibelius 7.5/Plugins', | ||
// As Sibelius's plugin folder path depends on the OS, Sibelius version and | ||
// possibly other factors, we just compile everything to ./build. A developer | ||
// must create a symbolic link to the build folder from the Sibelius plugin | ||
// folder. | ||
plgPath: './build', | ||
plgCategory: 'MEI Export', | ||
pluginFilename: 'sibmei2.plg', | ||
linkLibraries: ['libmei.plg', 'sibmei_batch_mxml.plg', 'sibmei_batch_sib.plg'], | ||
linkLibraries: [ | ||
'libmei.plg', 'sibmei_batch_mxml.plg', 'sibmei_batch_sib.plg', 'sibmei_test_runner.plg' | ||
], | ||
importDir: './import', | ||
buildDir: './build', | ||
srcDir: './src', | ||
testDir: './test', | ||
testDir: './test/sib-test', | ||
libDir: './lib', | ||
}; | ||
|
||
module.exports = config; | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
"use strict"; | ||
|
||
const assert = require('assert'); | ||
const xpath = require('fontoxpath'); | ||
const utils = require('./utils'); | ||
|
||
describe("Arpeggios", () => { | ||
const mei = utils.getTestMeiDom('arpeggios.mei'); | ||
|
||
it("writes 3 arpeggios in each of the 3 measures", () => { | ||
assert.strictEqual(xpath.evaluateXPath('//*:arpeg', mei).length, 9); | ||
}); | ||
it("writes arpeggios with up arrow on beat 2 of each measure", () => { | ||
const upArpeggiosOnBeat2 = xpath.evaluateXPath( | ||
'//*:arpeg[@arrow="true"][@tstamp="2"][@order="up"]', mei | ||
); | ||
assert.strictEqual(upArpeggiosOnBeat2.length, 3); | ||
}); | ||
it("writes arpeggios with down arrow on beat 3 of each measure", () => { | ||
const downArpeggiosOnBeat3 = xpath.evaluateXPath( | ||
'//*:arpeg[@arrow="true"][@tstamp="3"][@order="down"]', mei | ||
); | ||
assert.strictEqual(downArpeggiosOnBeat3.length, 3); | ||
}); | ||
it("writes arrowless arpeggios on beat 4 of each measures", () => { | ||
const arrowlessArpeggionsOnBeat4 = xpath.evaluateXPath( | ||
'//*:arpeg[@arrow="false"][@tstamp="4"][not(@order)]', mei | ||
) | ||
assert.strictEqual(arrowlessArpeggionsOnBeat4.length, 3); | ||
}); | ||
}); |
Oops, something went wrong.