mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-25 12:38:35 +00:00
Merge pull request #472 from tidalcycles/osc-fix
fix: osc should not return a promise
This commit is contained in:
commit
0198697737
@ -45,9 +45,9 @@ let startedAt = -1;
|
|||||||
* @memberof Pattern
|
* @memberof Pattern
|
||||||
* @returns Pattern
|
* @returns Pattern
|
||||||
*/
|
*/
|
||||||
Pattern.prototype.osc = async function () {
|
Pattern.prototype.osc = function () {
|
||||||
const osc = await connect();
|
return this.onTrigger(async (time, hap, currentTime, cps = 1) => {
|
||||||
return this.onTrigger((time, hap, currentTime, cps = 1) => {
|
const osc = await connect();
|
||||||
const cycle = hap.wholeOrPart().begin.valueOf();
|
const cycle = hap.wholeOrPart().begin.valueOf();
|
||||||
const delta = hap.duration.valueOf();
|
const delta = hap.duration.valueOf();
|
||||||
// time should be audio time of onset
|
// time should be audio time of onset
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user