mirror of
https://codeberg.org/uzu/strudel
synced 2026-09-04 06:41:43 -04:00
codeformat
This commit is contained in:
@@ -32,10 +32,10 @@ describe('tonal', () => {
|
||||
});
|
||||
it('scale with n and note values', () => {
|
||||
expect(
|
||||
n(0, 1, 2)
|
||||
.note(3, 4, 5)
|
||||
.scale('C major')
|
||||
.firstCycleValues.map((h) => h.note),
|
||||
n(0, 1, 2)
|
||||
.note(3, 4, 5)
|
||||
.scale('C major')
|
||||
.firstCycleValues.map((h) => h.note),
|
||||
).toEqual(['F3', 'G3', 'A3']);
|
||||
});
|
||||
it('scale with colon', () => {
|
||||
@@ -47,9 +47,9 @@ describe('tonal', () => {
|
||||
});
|
||||
it('scale without tonic', () => {
|
||||
expect(
|
||||
n(0, 1, 2)
|
||||
.scale('major')
|
||||
.firstCycleValues.map((h) => h.note),
|
||||
n(0, 1, 2)
|
||||
.scale('major')
|
||||
.firstCycleValues.map((h) => h.note),
|
||||
).toEqual(['C3', 'D3', 'E3']);
|
||||
});
|
||||
it('scale with mininotation colon', () => {
|
||||
|
||||
@@ -199,7 +199,7 @@ export const scale = register(
|
||||
pat
|
||||
.fmap((value) => {
|
||||
const isObject = typeof value === 'object';
|
||||
let step = isObject ? (value.note ?? value.n) : value;
|
||||
let step = isObject ? value.note ?? value.n : value;
|
||||
if (isNote(step)) {
|
||||
// legacy..
|
||||
return pure(step);
|
||||
|
||||
Reference in New Issue
Block a user