superdough: add logger

This commit is contained in:
Felix Roos 2023-08-17 10:08:55 +02:00
parent 0c6a0720af
commit 8bdbc9ec4c
5 changed files with 19 additions and 7 deletions

View file

@ -5,9 +5,11 @@ This program is free software: you can redistribute it and/or modify it under th
*/
import * as strudel from '@strudel.cycles/core';
import { superdough, getAudioContext } from 'superdough';
import { superdough, getAudioContext, setLogger } from 'superdough';
const { Pattern, logger } = strudel;
setLogger(logger);
const hap2value = (hap) => {
hap.ensureObjectValue();
return { ...hap.value, velocity: hap.context.velocity };