audio-slot-param
Advanced tools
Comparing version 2.1.0 to 2.2.0
{ | ||
"name": "audio-slot-param", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Link and transform schedule-based observables and connect to AudioParams (Web Audio API).", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -40,5 +40,4 @@ var watch = require('observ/watch') | ||
} | ||
} else if (typeof value === 'function') { | ||
release = watch(value, function(data) { | ||
release = watch(value, function (data) { | ||
if (!deepEqual(lastValue, data)) { | ||
@@ -52,2 +51,7 @@ lastValue = data | ||
}) | ||
} else { | ||
broadcast({ | ||
value: value, | ||
at: context.audio.currentTime | ||
}) | ||
} | ||
@@ -54,0 +58,0 @@ } |
16491
476