codeformat
This commit is contained in:
parent
a5b6022506
commit
4e6d39666a
2 changed files with 8 additions and 8 deletions
|
|
@ -32,10 +32,10 @@ describe('tonal', () => {
|
||||||
});
|
});
|
||||||
it('scale with n and note values', () => {
|
it('scale with n and note values', () => {
|
||||||
expect(
|
expect(
|
||||||
n(0, 1, 2)
|
n(0, 1, 2)
|
||||||
.note(3, 4, 5)
|
.note(3, 4, 5)
|
||||||
.scale('C major')
|
.scale('C major')
|
||||||
.firstCycleValues.map((h) => h.note),
|
.firstCycleValues.map((h) => h.note),
|
||||||
).toEqual(['F3', 'G3', 'A3']);
|
).toEqual(['F3', 'G3', 'A3']);
|
||||||
});
|
});
|
||||||
it('scale with colon', () => {
|
it('scale with colon', () => {
|
||||||
|
|
@ -47,9 +47,9 @@ describe('tonal', () => {
|
||||||
});
|
});
|
||||||
it('scale without tonic', () => {
|
it('scale without tonic', () => {
|
||||||
expect(
|
expect(
|
||||||
n(0, 1, 2)
|
n(0, 1, 2)
|
||||||
.scale('major')
|
.scale('major')
|
||||||
.firstCycleValues.map((h) => h.note),
|
.firstCycleValues.map((h) => h.note),
|
||||||
).toEqual(['C3', 'D3', 'E3']);
|
).toEqual(['C3', 'D3', 'E3']);
|
||||||
});
|
});
|
||||||
it('scale with mininotation colon', () => {
|
it('scale with mininotation colon', () => {
|
||||||
|
|
|
||||||
|
|
@ -199,7 +199,7 @@ export const scale = register(
|
||||||
pat
|
pat
|
||||||
.fmap((value) => {
|
.fmap((value) => {
|
||||||
const isObject = typeof value === 'object';
|
const isObject = typeof value === 'object';
|
||||||
let step = isObject ? (value.note ?? value.n) : value;
|
let step = isObject ? value.note ?? value.n : value;
|
||||||
if (isNote(step)) {
|
if (isNote(step)) {
|
||||||
// legacy..
|
// legacy..
|
||||||
return pure(step);
|
return pure(step);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue