# Tone generation

**URL:** <https://discourse.processing.org/t/tone-generation/13938>\
**Category:** Processing for Pi\
**Created:** [September 12, 2019, 12:01am UTC](https://discourse.processing.org/t/tone-generation/13938 "2019-09-12T00:01:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephanschulz](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@stephanschulz](https://discourse.processing.org/u/stephanschulz)\
**Post date:** [September 12, 2019, 12:01am UTC](https://discourse.processing.org/t/tone-generation/13938/1 "2019-09-12T00:01:09Z")

</div>

I have used wiringpi before and it has a softTone() function to use one of the pin to generate a tone.  
I ended up using this to generate a PWM signal which drives a stepper motor speed pin.

What would be best to used in processing for PI?

Thx for any advise.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [September 12, 2019, 3:55pm UTC](https://discourse.processing.org/t/tone-generation/13938/2 "2019-09-12T15:55:08Z")

</div>

Is this what you are referring to?

[http://wiringpi.com/reference/software-tone-library/](http://wiringpi.com/reference/software-tone-library/)

---

<div class="post-metadata">

**Author:** ![stephanschulz](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@stephanschulz](https://discourse.processing.org/u/stephanschulz)\
**Post date:** [September 12, 2019, 3:59pm UTC](https://discourse.processing.org/t/tone-generation/13938/3 "2019-09-12T15:59:02Z")

</div>

yes. do you think this can work here too? 🙂
