audio-slot
Advanced tools
Comparing version 3.12.0 to 3.13.0
@@ -14,2 +14,3 @@ var Observ = require('observ') | ||
var active = [] | ||
var scheduledTo = 0 | ||
@@ -82,3 +83,3 @@ var free = { | ||
at: at, | ||
value: obs.value.getValueAt(at) | ||
value: 0 | ||
}) | ||
@@ -103,3 +104,3 @@ | ||
at: stopAt, | ||
value: obs.value.getValueAt(stopAt) | ||
value: 0 | ||
}) | ||
@@ -138,3 +139,3 @@ | ||
if (!obs.trigger()){ | ||
if (!obs.trigger() && context.active && context.active()){ | ||
scheduleEvent(free, from, to, schedule.beatDuration) | ||
@@ -211,5 +212,5 @@ } | ||
} else if (mode === 'subtract'){ | ||
return base - value | ||
return value - base | ||
} else { | ||
return value + (base * value) | ||
return base * value | ||
} | ||
@@ -216,0 +217,0 @@ } |
{ | ||
"name": "audio-slot", | ||
"version": "3.12.0", | ||
"version": "3.13.0", | ||
"description": "Web Audio API FRP wrapper for creating, routing, and triggering AudioNodes.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
2468