# Get frequency value

**URL:** https://discourse.processing.org/t/get-frequency-value/73
**Category:** Coding Questions
**Created:** [May 16, 2018, 4:26pm UTC](https://discourse.processing.org/t/get-frequency-value/73 "2018-05-16T16:26:42Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Strimply](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@Strimply](https://discourse.processing.org/u/Strimply)
#### Post date: [May 16, 2018, 4:26pm UTC](https://discourse.processing.org/t/get-frequency-value/73/1 "2018-05-16T16:26:42Z")

</div>

I’m an italian student, and I’m using p5’s libraries to create a web guitar tuner.  
I would like to know if there is a way to get the frequency of the microphone input.

Thanks

---

<div class="post-metadata">

### Author: ![WakeMeAtThree](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/wakemeatthree/32/38_2.png) [@WakeMeAtThree](https://discourse.processing.org/u/WakeMeAtThree)
#### Post date: [May 17, 2018, 9:08am UTC](https://discourse.processing.org/t/get-frequency-value/73/2 "2018-05-17T09:08:57Z")

</div>

Hi @Strimply!  
Check out this example from the [p5js website.](https://p5js.org/reference/#/p5.FFT)

You can also check for more p5js examples [here](https://p5js.org/examples/), and the reference for p5.sound can be found [here](https://p5js.org/reference/#/libraries/p5.sound).

---

<div class="post-metadata">

### Author: ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)
#### Post date: [May 18, 2018, 10:02pm UTC](https://discourse.processing.org/t/get-frequency-value/73/3 "2018-05-18T22:02:00Z")

</div>

In the future please link between crossposts.

This question has also been asked here: [https://stackoverflow.com/questions/50376861/how-to-get-frequency-value-in-javascript](https://stackoverflow.com/questions/50376861/how-to-get-frequency-value-in-javascript)
