# Which sound library should I use?

**URL:** <https://discourse.processing.org/t/which-sound-library-should-i-use/42935>\
**Category:** Libraries\
**Created:** [October 10, 2023, 8:08am UTC](https://discourse.processing.org/t/which-sound-library-should-i-use/42935 "2023-10-10T08:08:32Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [October 12, 2023, 11:39pm UTC](https://discourse.processing.org/t/which-sound-library-should-i-use/42935/21 "2023-10-12T23:39:46Z")

</div>

> [@berndbausch](#):
>
> In case others are interested, here is my very unsophisticated Jsyn experimentation. I am sure I am violating plenty of best practices, but it works. Note that I am not versed in Java at all.

Thanks for sharing this

---

<div class="post-metadata">

**Author:** ![shedMusic](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/shedmusic/32/601_2.png) [@shedMusic](https://discourse.processing.org/u/shedMusic)\
**Post date:** [October 13, 2023, 7:04am UTC](https://discourse.processing.org/t/which-sound-library-should-i-use/42935/22 "2023-10-13T07:04:32Z")

</div>

@robertesler

Hi and thanks! All seems to be working now 🙂

Have also got it working in Android Studio 🙂

---

<div class="post-metadata">

**Author:** ![tmm88](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@tmm88](https://discourse.processing.org/u/tmm88)\
**Post date:** [October 13, 2023, 12:03pm UTC](https://discourse.processing.org/t/which-sound-library-should-i-use/42935/23 "2023-10-13T12:03:11Z")

</div>

**you should eventually use something at the level of:**

- _ableton_
- _maxmsp_
- _pd_
- _csound_
- _supercollider_
- _kyma_

**just focus on:**

- _using OSC (opensoundcontrol) for the sake of handling communication_
- _use a double window, in processing, one for the ui, another one for data visualization throughout a simple animation, of what you have in your environment_

**what else should i advise to complement the visuals:**

- _something at the level of spout ndi or syphon_
- _a vj software like modul8, resolume, vdmx, or similar_
- _touch designer_
- _unity or unreal engine_
- _after effects_

**any way, the framework under which you decide to do all these things is only meaningful to you**

---

<div class="post-metadata">

**Author:** ![kevinstadler](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@kevinstadler](https://discourse.processing.org/u/kevinstadler)\
**Post date:** [October 14, 2023, 9:00am UTC](https://discourse.processing.org/t/which-sound-library-should-i-use/42935/24 "2023-10-14T09:00:07Z")

</div>

> [@jafal](#):
>
> Can you provide processing example measure sound frequency

If you mean detecting the pitch of a sound signal, there is a PitchDetection example in the new release: [https://github.com/processing/processing-sound/blob/main/examples/Analysis/PitchDetection/PitchDetection.pde](https://github.com/processing/processing-sound/blob/main/examples/Analysis/PitchDetection/PitchDetection.pde)

If you mean a full frequency spectrum analysis, use an FFT: [https://github.com/processing/processing-sound/blob/main/examples/Analysis/FFTSpectrum/FFTSpectrum.pde](https://github.com/processing/processing-sound/blob/main/examples/Analysis/FFTSpectrum/FFTSpectrum.pde)

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [October 14, 2023, 10:56am UTC](https://discourse.processing.org/t/which-sound-library-should-i-use/42935/25 "2023-10-14T10:56:09Z")

</div>

> [@kevinstadler](#):
>
> If you mean detecting the pitch of a sound signal

Thanks for reply Sir I mean measuring frequency of sound as frequency counter

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [October 14, 2023, 12:28pm UTC](https://discourse.processing.org/t/which-sound-library-should-i-use/42935/26 "2023-10-14T12:28:46Z")

</div>

Hello @kevinstadler,

> [@kevinstadler](#):
>
> Sound library maintainer here 👋

Thank you! 👍

I took the pitch detection out for a spin using:  
[Online Tone Generator - generate pure tones of any frequency](https://www.szynalski.com/tone-generator/) \< _ **Read the caution!** _ _I used earplugs to protect my ears at higher volumes and frequencies!_

And adding the line to display pitch:

`println(pitchAndConfidence);`

I managed to measure pitch (frequency) between 100 Hz and 4000Hz.  
I did a bit of fiddling with microphone levels and volume to get a _confidence level_ to register at higher frequencies… I was also careful not to damage my hearing or microphone and speakers.

`:)`

[Previous page](https://discourse.processing.org/t/which-sound-library-should-i-use/42935.md?page=1)
