From 88e933ee2506c4ee948b4f09d8028db1c60416de Mon Sep 17 00:00:00 2001 From: Jade Rowland Date: Thu, 23 Nov 2023 13:31:00 -0500 Subject: [PATCH] cleaning up --- packages/core/controls.mjs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/packages/core/controls.mjs b/packages/core/controls.mjs index 01b46a9e..31e6ea77 100644 --- a/packages/core/controls.mjs +++ b/packages/core/controls.mjs @@ -4,7 +4,7 @@ Copyright (C) 2022 Strudel contributors - see . */ -import { Pattern, register, reify, sequence } from './pattern.mjs'; +import { Pattern, register, sequence } from './pattern.mjs'; import { zipWith } from './util.mjs'; const controls = {}; @@ -389,7 +389,7 @@ const generic_params = [ * * @param {number | Pattern} channels pattern the output channels * @example - * note("e a d b g").channels("2:3").room(1) + * note("e a d b g").channels("2:3") * */ ['channels', 'ch'], @@ -1390,13 +1390,4 @@ controls.ds = register('ds', (ds, pat) => { return pat.set({ decay, sustain }); }); -// controls.ch = register(['channels', 'ch'], (channels, pat) => { -// channels = !Array.isArray(channels) ? [channels] : channels; - -// // channels = channels.map(reify).map((channelPat) => { -// // // How do I return the current value of the channel pattern here? -// // }); -// return pat.set({ channels }); -// }); - export default controls;