From 1334276ec0c8a28d46fa0070ce472f130fc0eb63 Mon Sep 17 00:00:00 2001 From: tyow Date: Wed, 4 Feb 2026 20:29:44 -0500 Subject: [PATCH] format --- packages/xen/tune.mjs | 4 ++-- packages/xen/xen.mjs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/xen/tune.mjs b/packages/xen/tune.mjs index a70d8868c..a070515b3 100644 --- a/packages/xen/tune.mjs +++ b/packages/xen/tune.mjs @@ -32,7 +32,7 @@ import { register } from '@strudel/core'; * 469.00678383895, * 523.2511306012 * ]).mul(220).freq(); - * + * * @tags tonal */ @@ -47,7 +47,7 @@ export const tune = register('tune', (scale, pat) => { tune.tonicize(1); return pat.withHap((hap) => { 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; // hap.value = { ...otherValues, freq: tune.note(i)} diff --git a/packages/xen/xen.mjs b/packages/xen/xen.mjs index 762db61bc..828cab6ea 100644 --- a/packages/xen/xen.mjs +++ b/packages/xen/xen.mjs @@ -102,7 +102,7 @@ export const xen = register('xen', function (scaleNameOrRatios, pat) { let hVal = hap.value; const isObject = typeof hVal === 'object'; 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 scale = getXenScale(scaleNameOrRatios);