Merge pull request #472 from tidalcycles/osc-fix
fix: osc should not return a promise
This commit is contained in:
commit
0198697737
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue