Skip to content

Can't get phasors from Buffer #3

@VolodymyrTymets

Description

@VolodymyrTymets

I need get frequencies of .wav file.
I can read file via fs

   fs.readFile('output.wav', (err, buffer) => { 
    var phasors= fft(buffer); // exception here
   })

Exception

/node_modules/fft-js/src/complex.js:24
    return [(a[0] * b[0] - a[1] * b[1]),
TypeError: Cannot read property '0' of undefined

Is this possible to get phasors from Buffer? Or exist another way to get phasors from .wav file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions