audio-slot
Advanced tools
Comparing version 3.7.0 to 3.8.0
{ | ||
"name": "audio-slot", | ||
"version": "3.7.0", | ||
"version": "3.8.0", | ||
"description": "Web Audio API FRP wrapper for creating, routing, and triggering AudioNodes.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -68,4 +68,12 @@ var Observ = require('observ') | ||
var lastShape = 'sine' | ||
obs.shape(function(shape){ | ||
oscillator.type = shape | ||
if (shape !== lastShape) { | ||
if (context.periodicWaves && context.periodicWaves[shape]) { | ||
oscillator.setPeriodicWave(context.periodicWaves[shape]) | ||
} else { | ||
oscillator.type = shape | ||
} | ||
lastShape = shape | ||
} | ||
}) | ||
@@ -72,0 +80,0 @@ |
68067
2213