p5.js-sound icon indicating copy to clipboard operation
p5.js-sound copied to clipboard

Get tone/chord

Open NoBodyButMe opened this issue 5 years ago • 8 comments

Hello

Is there a way to "get" the tone or chord of a sound that is playing? e.g. analyzing the wave length in a certain time?

NoBodyButMe avatar Apr 07 '20 11:04 NoBodyButMe

Hi, what about:

  • https://github.com/Tonejs/Tone.js/wiki/p5.Tone
  • https://github.com/Tonejs/Tone.js

doriclaudino avatar Apr 11 '20 00:04 doriclaudino

@NoBodyButMe i think it's a non trivial problem, and it can be approached starting from FFT?

montoyamoraga avatar May 01 '20 22:05 montoyamoraga

Don't worry. I will not ask anything again with non trivial questions :-(

Op za 2 mei 2020 00:47 schreef aarón montoya-moraga < [email protected]>:

@NoBodyButMe https://github.com/NoBodyButMe i think it's a non trivial problem, and it can be approached starting from FFT?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/processing/p5.js-sound/issues/444#issuecomment-622598941, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJ7EJJ7LIEGGZF4MDGS2LDRPNGP3ANCNFSM4MDBHGIA .

NoBodyButMe avatar May 01 '20 22:05 NoBodyButMe

@NoBodyButMe i meant by non-trivial that it is really difficult to achieve this, to go from audio to pitch or even chord :) since you need define the base tuning of A, and then decide if it's a tempered tuning, etc. in my understanding it's something too complex to implement for this library, since there are too many choices, but maybe you are right, and it would be cool to have a pitch detection function, or a tuner even :) what do you think?

montoyamoraga avatar May 01 '20 22:05 montoyamoraga

Well, I created a way to convert ASCII codes to sound, similar to slow scan television. Now I,'m looking for an easy to use a web based library to reconvert the sound to ASCII. Just for fun...

Op za 2 mei 2020 00:55 schreef aarón montoya-moraga < [email protected]>:

@NoBodyButMe https://github.com/NoBodyButMe i meant by non-trivial that it is really difficult to achieve this, to go from audio to pitch or even chord :) since you need define the base tuning of A, and then decide if it's a tempered tuning, etc. in my understanding it's something too complex to implement for this library, since there are too many choices, but maybe you are right, and it would be cool to have a pitch detection function, or a tuner even :) what do you think?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/processing/p5.js-sound/issues/444#issuecomment-622601381, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJ7EJPLLWQQFYRIQOXVPYDRPNHPZANCNFSM4MDBHGIA .

NoBodyButMe avatar May 01 '20 23:05 NoBodyButMe

that sounds ~ so cool ~ :)

montoyamoraga avatar May 01 '20 23:05 montoyamoraga

Might take some time to get around to it but this is something I'd be interested in tackling!

usdivad avatar May 06 '20 02:05 usdivad

thank you! i assigned you this task, tag me when you want to discuss it :)

montoyamoraga avatar May 06 '20 04:05 montoyamoraga