Discussion:
getting the peak frequency from microphone input
(too old to reply)
霖の
2017-10-24 15:28:29 UTC
Permalink
Raw Message
Dear all,
There must be some easy way to do this that I'm overlooking: I want to scan the audio from a microphone input and get the peak frequency. I know how to use myriad of spectral analysis software and the spectroscope object, but I don't see an obvious way to display the frequency with the greatest amplitude in Max/msp. Seems like a trivial task. I must be going about this the wrong way.


Looking forward to your reply,
All the best,
YL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.music.vt.edu/mailman/private/sursound/attachments/20171024/a4632932/attachment.html>
Pierre Alexandre Tremblay
2017-10-24 21:15:55 UTC
Permalink
Raw Message
if display check the spectrumdraw~ object from the HIRT:
http://eprints.hud.ac.uk/id/eprint/14897/ <http://eprints.hud.ac.uk/id/eprint/14897/>
You can select and display the peak
Post by 霖の
Dear all,
There must be some easy way to do this that I'm overlooking: I want to scan the audio from a microphone input and get the peak frequency. I know how to use myriad of spectral analysis software and the spectroscope object, but I don't see an obvious way to display the frequency with the greatest amplitude in Max/msp. Seems like a trivial task. I must be going about this the wrong way.
Looking forward to your reply,
All the best,
YL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.music.vt.edu/mailman/private/sursound/attachments/20171024/a4632932/attachment.html <https://mail.music.vt.edu/mailman/private/sursound/attachments/20171024/a4632932/attachment.html>>
_______________________________________________
Sursound mailing list
https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe here, edit account or options, view archives and so on.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.music.vt.edu/mailman/private/sursound/attachments/20171024/4afa00a9/attachment.html>
Sampo Syreeni
2017-10-24 22:17:58 UTC
Permalink
Raw Message
Post by Pierre Alexandre Tremblay
http://eprints.hud.ac.uk/id/eprint/14897/
<http://eprints.hud.ac.uk/id/eprint/14897/> You can select and display
the peak
Can it somehow be tracked programmatically, and e.g. turned into a
controller for further processing? I'd be interested in the primitives
used for that as well.
--
Sampo Syreeni, aka decoy - ***@iki.fi, http://decoy.iki.fi/front
+358-40-3255353, 025E D175 ABE5 027C 9494 EEB0 E090 8BA9 0509 85C2
Pierre Alexandre Tremblay
2017-10-25 08:56:10 UTC
Permalink
Raw Message
You can use the fantastic peak tracking feature of sigmund~ then. A 64 bit port has been done for Max and it is also available on Pd
if display check the spectrumdraw~ object from the HIRT: http://eprints.hud.ac.uk/id/eprint/14897/ <http://eprints.hud.ac.uk/id/eprint/14897/> You can select and display the peak
Can it somehow be tracked programmatically, and e.g. turned into a controller for further processing? I'd be interested in the primitives used for that as well.
--
+358-40-3255353, 025E D175 ABE5 027C 9494 EEB0 E090 8BA9 0509 85C2
_______________________________________________
Sursound mailing list
https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe here, edit account or options, view archives and so on.
Aaron Heller
2017-10-25 14:59:09 UTC
Permalink
Raw Message
Doing this was one of the programming assignments in the course "Audio
Signal Processing for Music Applications"

https://www.coursera.org/learn/audio-signal-processing

Excellent course. Tools here:

https://www.upf.edu/web/mtg/sms-tools

https://github.com/MTG/sms-tools
http://eprints.hud.ac.uk/id/eprint/14897/ <
http://eprints.hud.ac.uk/id/eprint/14897/> You can select and display the
peak
Post by Sampo Syreeni
Can it somehow be tracked programmatically, and e.g. turned into a
controller for further processing? I'd be interested in the primitives used
for that as well.
Post by Sampo Syreeni
--
+358-40-3255353, 025E D175 ABE5 027C 9494 EEB0 E090 8BA9 0509 85C2
_______________________________________________
Sursound mailing list
https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe here,
edit account or options, view archives and so on.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.music.vt.edu/mailman/private/sursound/attachments/20171025/2a71df18/attachment.html>
Marc Lavallée
2017-10-25 15:09:02 UTC
Permalink
Raw Message
True! This is actually the assignment for this week. :-)
I could post the solution here after I succeed,
but I’m afraid that would be against the “Coursera honor code”...

Marc
Post by Aaron Heller
Doing this was one of the programming assignments in the course "Audio
Signal Processing for Music Applications"
https://www.coursera.org/learn/audio-signal-processing
https://www.upf.edu/web/mtg/sms-tools
https://github.com/MTG/sms-tools
http://eprints.hud.ac.uk/id/eprint/14897/ <
http://eprints.hud.ac.uk/id/eprint/14897/> You can select and display the
peak
Post by Sampo Syreeni
Can it somehow be tracked programmatically, and e.g. turned into a
controller for further processing? I'd be interested in the primitives used
for that as well.
Post by Sampo Syreeni
--
+358-40-3255353, 025E D175 ABE5 027C 9494 EEB0 E090 8BA9 0509 85C2
_______________________________________________
Sursound mailing list
https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe here,
edit account or options, view archives and so on.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.music.vt.edu/mailman/private/sursound/attachments/20171025/2a71df18/attachment.html>
_______________________________________________
Sursound mailing list
https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe here, edit account or options, view archives and so on.
Aaron Heller
2017-10-25 18:58:45 UTC
Permalink
Raw Message
Marc... As I recall, this is the first assignment that requires some
experimentation to determine the correct parameters. Good luck with it.

Regarding the original poster's question ... as you learn in this course,
the perceived pitch is not necessarily the strongest frequency in the
signal -- you need to analyze the harmonic structure of the signal. In many
instruments (trumpet, trombone, low-string on a violin, bottom octave of a
piano), the overtones are stronger than the fundamental.

Similar analysis is needed for parametric decoding of Ambisonics signals,
such as done by Harpex.or DirAC.

Aaron
Post by Marc Lavallée
True! This is actually the assignment for this week. :-)
I could post the solution here after I succeed,
but I’m afraid that would be against the “Coursera honor code”...

Marc
Post by Aaron Heller
Doing this was one of the programming assignments in the course "Audio
Signal Processing for Music Applications"
https://www.coursera.org/learn/audio-signal-processing
https://www.upf.edu/web/mtg/sms-tools
https://github.com/MTG/sms-tools
http://eprints.hud.ac.uk/id/eprint/14897/ <
http://eprints.hud.ac.uk/id/eprint/14897/> You can select and display
the
Post by Aaron Heller
peak
Post by Sampo Syreeni
Can it somehow be tracked programmatically, and e.g. turned into a
controller for further processing? I'd be interested in the primitives
used
Post by Aaron Heller
for that as well.
Post by Sampo Syreeni
--
+358-40-3255353, 025E D175 ABE5 027C 9494 EEB0 E090 8BA9 0509 85C2
_______________________________________________
Sursound mailing list
https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe here,
edit account or options, view archives and so on.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.music.vt.edu/mailman/private/sursound/
attachments/20171025/2a71df18/attachment.html>
Post by Aaron Heller
_______________________________________________
Sursound mailing list
https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe here,
edit account or options, view archives and so on.
_______________________________________________
Sursound mailing list
https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe here,
edit account or options, view archives and so on.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.music.vt.edu/mailman/private/sursound/attachments/20171025/4f4263cf/attachment.html>
Loading...