fully implemented
This commit is contained in:
parent
d9e44dcda6
commit
ce5f425142
7 changed files with 227 additions and 306 deletions
|
|
@ -17,12 +17,15 @@ const hap2value = (hap) => {
|
|||
|
||||
// uses more precise, absolute t if available, see https://github.com/tidalcycles/strudel/pull/1004
|
||||
// TODO: refactor output callbacks to eliminate deadline
|
||||
export const webaudioOutput = (hap, deadline, hapDuration, cps, t, cycle) => {
|
||||
|
||||
return superdough(hap2value(hap), t, hapDuration, cps,
|
||||
hap.whole.begin.valueOf()
|
||||
// cycle
|
||||
);
|
||||
export const webaudioOutput = (hap, _deadline, hapDuration, cps, t) => {
|
||||
return superdough(
|
||||
hap2value(hap),
|
||||
t,
|
||||
hapDuration,
|
||||
cps,
|
||||
hap.whole.begin.valueOf(),
|
||||
// cycle
|
||||
);
|
||||
};
|
||||
|
||||
export function webaudioRepl(options = {}) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue