-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accept lone vals for commaBasis and mappingBasis
ref #422
- Loading branch information
Showing
3 changed files
with
25 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -329,6 +329,20 @@ describe('Features related to tempering', () => { | |
expect(scale).toEqual(['1901.783 "3"', '583.905 "7/5"', '1200. "2"']); | ||
}); | ||
|
||
it('obtains the period of a single val', () => { | ||
const scale = expand(`{ | ||
const [period] = mappingBasis([email protected]) | ||
period str(period) | ||
11@ | ||
}`); | ||
expect(scale).toEqual(['1\\11 "16/15"']); | ||
}); | ||
|
||
it('breaks a val into its comma basis', () => { | ||
const scale = expand('[...commaBasis([email protected])]'); | ||
expect(scale).toEqual(['144/125', '135/128']); | ||
}); | ||
|
||
it('knows miracle is miracle', () => { | ||
const yup = evaluate( | ||
'Temperament([[email protected], [email protected]]) == commaList([S15, S7-S8])' | ||
|
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