Fix .out(), renaming webaudio's out() to webaudio() (#361)

* breaking test for out()

* rename webaudio's out() to webaudio(), fixes #359
This commit is contained in:
Alex McLean 2023-01-08 23:40:15 +00:00 committed by GitHub
parent 4a2a540500
commit 45842b1f05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -391,7 +391,7 @@ export const webaudioOutput = async (hap, deadline, hapDuration) => {
export const webaudioOutputTrigger = (t, hap, ct, cps) => webaudioOutput(hap, t - ct, hap.duration / cps);
Pattern.prototype.out = function () {
Pattern.prototype.webaudio = function () {
// TODO: refactor (t, hap, ct, cps) to (hap, deadline, duration) ?
return this.onTrigger(webaudioOutputTrigger);
};