superdough: add logger
This commit is contained in:
parent
0c6a0720af
commit
8bdbc9ec4c
5 changed files with 19 additions and 7 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue