mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-13 06:38:29 +00:00
cleaning up
This commit is contained in:
parent
1f62d85d8b
commit
88e933ee25
@ -4,7 +4,7 @@ Copyright (C) 2022 Strudel contributors - see <https://github.com/tidalcycles/st
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user