# Unwanted beeping sounds with Vertex functions

**URL:** <https://discourse.processing.org/t/unwanted-beeping-sounds-with-vertex-functions/9985>\
**Category:** p5.js\
**Created:** [April 5, 2019, 4:55am UTC](https://discourse.processing.org/t/unwanted-beeping-sounds-with-vertex-functions/9985 "2019-04-05T04:55:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JusaStronomer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jusastronomer/32/4430_2.png) [@JusaStronomer](https://discourse.processing.org/u/JusaStronomer)\
**Post date:** [April 5, 2019, 4:55am UTC](https://discourse.processing.org/t/unwanted-beeping-sounds-with-vertex-functions/9985/1 "2019-04-05T04:55:33Z")

</div>

While using the _beginShape()_, _endShape()_ and _vertex()_ functions, I noticed some undesired beeping sounds (followed by low pitch “drumming” sounds). I tried searching for discussions over this topic, but couldn’t find it anywhere.

The problem came up while testing the functions in this sketch: [https://editor.p5js.org/jusastronomer/sketches/1isTlv-LK](https://editor.p5js.org/jusastronomer/sketches/1isTlv-LK)  
Whenever I run the sketch, I get the following sound: [https://instaud.io/3vNY](https://instaud.io/3vNY)

After that, I tried a simpler sketch, with just a few vertices in the draw() function, but still got a beep. I can’t post more links because of the restrictions to new users, so I will paste the second test below:

```auto
function setup(){
  createCanvas(400,400);
  background(0);
}

function draw(){
  beginShape();
  vertex(75,75);
  vertex(75,25);
  vertex(25,50);
  endShape();
}

```

I can hear the beeping in my Linux machine (on both Chrome and Firefox browsers) and on my Android mobile device (on the Chrome browser app).

Is the problem in my computer (and mobile phone) or in my code? Is this an expected behavior for the Vertex functions? I was trying to use it in an intonation app for music students, however the beeping renders the app useless.

Thank you very much for the attention!!

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [April 5, 2019, 5:28am UTC](https://discourse.processing.org/t/unwanted-beeping-sounds-with-vertex-functions/9985/2 "2019-04-05T05:28:25Z")

</div>

> **[p5.js Web Editor](https://editor.p5js.org/)**
>
> A web editor for p5.js, a JavaScript library with the goal of making coding accessible to artists, designers, educators, and beginners.

“preferences” red symbol at right,  
Settings / Accessibility /  
Accessible text-based canvas

> sound OFF

possibly must do again after LOGIN

 ![SNAG-0069](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/8/835616df651872eb79562a30960b4eab2f3c90c0.jpeg)

---

<div class="post-metadata">

**Author:** ![JusaStronomer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jusastronomer/32/4430_2.png) [@JusaStronomer](https://discourse.processing.org/u/JusaStronomer)\
**Post date:** [April 5, 2019, 6:17am UTC](https://discourse.processing.org/t/unwanted-beeping-sounds-with-vertex-functions/9985/3 "2019-04-05T06:17:04Z")

</div>

Thank you very much for the solution, @kll! This problem had been driving me crazy for over 24 hours!

I was going to ask if this preference is “in the editor” or “in the sketch”… but after running some tests, I am led to believe it’s “in the editor”. Even with the accessibility sound ON, as long as I share the “Present” or “Fullscreen” versions of the sketch, the users won’t listen to it.

This is a very interesting feature, although I can’t think about how it’s used… I will definitely spend some time reading about accessibility! Thanks again!!

---

<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:** [April 6, 2019, 7:08pm UTC](https://discourse.processing.org/t/unwanted-beeping-sounds-with-vertex-functions/9985/4 "2019-04-06T19:08:57Z")

</div>

> [@JusaStronomer](#):
>
> I can’t think about how it’s used

According to the p5.js web editor site:

- [https://github.com/processing/p5.js-web-editor/blob/master/developer\_docs/accessibility.md](https://github.com/processing/p5.js-web-editor/blob/master/developer_docs/accessibility.md)

it is based on p5.assessibility

- [GitHub - processing/p5.accessibility: p5.accessibility.js makes the p5 canvas more accessible to people who are blind and visually impaired. It can be used with any p5.js sketch and it is used in the p5.js web editor.](https://github.com/processing/p5.accessibility)

and you can learn about accessibility here:

- [Accessibility guide to using the p5 web editor · GitHub](https://gist.github.com/MathuraMG/e86666b7b41fbc8c078bad9aff3f666d)

> **Sound Output** - This mode explains the movement of the objects present in the canvas. Top to Down movement is represented by a decrease in frequency and left to right through panning.
