Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Example TypeError #38

Open
timpulver opened this issue Nov 11, 2017 · 1 comment
Open

Basic Example TypeError #38

timpulver opened this issue Nov 11, 2017 · 1 comment

Comments

@timpulver
Copy link

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?

@dy
Copy link
Member

dy commented Jan 5, 2018

Please stay tuned, working hard on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants