Skip to content

Commit

Permalink
Update moment-of-symmetry dependency
Browse files Browse the repository at this point in the history
Fixes swapped MOS steps in large scales.
  • Loading branch information
frostburn committed May 14, 2024
1 parent 7ec0908 commit b5cceb8
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"vitest": "^1.4.0"
},
"dependencies": {
"moment-of-symmetry": "^0.5.2",
"moment-of-symmetry": "^0.5.3",
"xen-dev-utils": "^0.7.0"
},
"engines": {
Expand Down
20 changes: 20 additions & 0 deletions src/parser/__tests__/stdlib.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1492,4 +1492,24 @@ describe('SonicWeave standard library', () => {
const range = expand('range(3, 0, -1)');
expect(range).toEqual(['3', '2', '1']);
});

it('produces the correct 5L 8s scale', () => {
const scale = expand('mos(5, 8);stepString()');
expect(scale).toEqual([
'"LsLssLsLssLss"',
'2\\18',
'3\\18',
'5\\18',
'6\\18',
'7\\18',
'9\\18',
'10\\18',
'12\\18',
'13\\18',
'14\\18',
'16\\18',
'17\\18',
'18\\18',
]);
});
});

0 comments on commit b5cceb8

Please sign in to comment.