mohayonao / old-neume.js

Neume.js is a Web Audio API library for developing browser music.
http://mohayonao.github.io/neume.js/examples/
MIT License
78 stars 6 forks source link

weaken the dependence on Web Audio API #51

Closed mohayonao closed 9 years ago

mohayonao commented 9 years ago

now

isAudioNode = (node)->
  node instanceof global.AudioNode

after

# browser
neume.webaudio = window

# node.js (feature)
neume.webaudio = require("node-web-audio-api");

isAudioNode = (node)->
  node instanceof neume.webaudio.AudioNode