format
This commit is contained in:
parent
cbf472fe0a
commit
1334276ec0
2 changed files with 3 additions and 3 deletions
|
|
@ -47,7 +47,7 @@ export const tune = register('tune', (scale, pat) => {
|
||||||
tune.tonicize(1);
|
tune.tonicize(1);
|
||||||
return pat.withHap((hap) => {
|
return pat.withHap((hap) => {
|
||||||
if (typeof hap.value !== 'object') {
|
if (typeof hap.value !== 'object') {
|
||||||
throw new Error(`Expected hap to have control 'i' set, but received ${hap.value.i}, try wrapping input in i()`)
|
throw new Error(`Expected hap to have control 'i' set, but received ${hap.value.i}, try wrapping input in i()`);
|
||||||
}
|
}
|
||||||
// const { i, ...otherValues } = hap.value;
|
// const { i, ...otherValues } = hap.value;
|
||||||
// hap.value = { ...otherValues, freq: tune.note(i)}
|
// hap.value = { ...otherValues, freq: tune.note(i)}
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,7 @@ export const xen = register('xen', function (scaleNameOrRatios, pat) {
|
||||||
let hVal = hap.value;
|
let hVal = hap.value;
|
||||||
const isObject = typeof hVal === 'object';
|
const isObject = typeof hVal === 'object';
|
||||||
if (!isObject) {
|
if (!isObject) {
|
||||||
throw new Error(`Expected hap to have control 'i' set, but received ${hap.value.i}, try wrapping input in i()`)
|
throw new Error(`Expected hap to have control 'i' set, but received ${hap.value.i}, try wrapping input in i()`);
|
||||||
}
|
}
|
||||||
const { i, ...otherValues } = hVal;
|
const { i, ...otherValues } = hVal;
|
||||||
const scale = getXenScale(scaleNameOrRatios);
|
const scale = getXenScale(scaleNameOrRatios);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue