mohayonao / timbre

345 stars 28 forks source link

"Parsing" existing audio? #8

Open marcelklehr opened 10 years ago

marcelklehr commented 10 years ago

Hey, I love your work. I'm curious to know whether it's possible to load e.g. an audio file and "parse" it in order to pick out the chords that are played? I know it's possible to load an play an mp3 file, but is it possible to analyze it, too?

thanks in advance

mohayonao commented 10 years ago

No, a parsing method for an audio file is not exists. But you can get raw data.

T("audio").load(src, function() {
  console.log(this.buffer); // { buffer, samplerate, channels }
});
mohayonao commented 10 years ago

oh.. mistake.

This project page is old, the current version is here. https://github.com/mohayonao/timbre.js

The previous answer is for the current version. This version cannot it.

marcelklehr commented 10 years ago

So, parsing is impossible with both v12 and v13?

Are you planning to implement something like this? (It's probably pretty hard, and not within the scope of this library, but I thought I'd ask)

mohayonao commented 10 years ago

it's impossible with both versions. there is no schedule for implementing.