audio icon indicating copy to clipboard operation
audio copied to clipboard

Basic Example TypeError

Open timpulver opened this issue 8 years ago • 1 comments

When running the basic example I get a TypeError.

Code:

const Audio = require('audio')

Audio.load('./December.mp3').then(audio =>
  audio
    .trim()
    .normalize()
    .fade(.5)
    .fade(-.5)
    .save('sample-edited.wav')
).catch(err => { console.log(err); });

Output:

this.buffer.each is not a function
    at Audio.trim (/Users/…/node_modules/audio/src/manipulations.js:282:15)
    at Audio.load.then.audio (/Users/…/index.js:23:6)
    at <anonymous>

I tried using the npm version as well as npm i audiojs/audio, with .wav and .mp3. Any ideas?

timpulver avatar Nov 11 '17 13:11 timpulver

Please stay tuned, working hard on that.

dy avatar Jan 05 '18 22:01 dy