mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-26 04:58:27 +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/>.
|
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';
|
import { zipWith } from './util.mjs';
|
||||||
|
|
||||||
const controls = {};
|
const controls = {};
|
||||||
@ -389,7 +389,7 @@ const generic_params = [
|
|||||||
*
|
*
|
||||||
* @param {number | Pattern} channels pattern the output channels
|
* @param {number | Pattern} channels pattern the output channels
|
||||||
* @example
|
* @example
|
||||||
* note("e a d b g").channels("2:3").room(1)
|
* note("e a d b g").channels("2:3")
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
['channels', 'ch'],
|
['channels', 'ch'],
|
||||||
@ -1390,13 +1390,4 @@ controls.ds = register('ds', (ds, pat) => {
|
|||||||
return pat.set({ decay, sustain });
|
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;
|
export default controls;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user