# Libraries

**URL:** https://discourse.processing.org/c/p5js/p5js-libraries/20.md?page=11

[Latest](https://discourse.processing.org/latest.md) · [Categories](https://discourse.processing.org/categories.md) · [Tags](https://discourse.processing.org/tags.md)

**Page:** 12

---

## [Sound Popping/Crackling While Panning with p5.sound](https://discourse.processing.org/t/sound-popping-crackling-while-panning-with-p5-sound/21375)

<div class="topic-metadata">

**Author:** [@umutreldem](https://discourse.processing.org/u/umutreldem)\
**Replies:** 9\
**Last updated:** [May 29, 2020, 10:06pm UTC](https://discourse.processing.org/t/sound-popping-crackling-while-panning-with-p5-sound/21375 "2020-05-29T22:06:03Z")

</div>

I am trying to learn p5.sound by loading a sound, and panning it with a slider. When I move the slider, especially if I move it too far too suddenly, the sound begins to crackle. Crackling while panning does not happen …

---

## [Posenet & P5js - classification of poses to trigger sounds](https://discourse.processing.org/t/posenet-p5js-classification-of-poses-to-trigger-sounds/21363)

<div class="topic-metadata">

**Author:** [@jhyde](https://discourse.processing.org/u/jhyde)\
**Replies:** 11\
**Last updated:** [May 29, 2020, 11:33am UTC](https://discourse.processing.org/t/posenet-p5js-classification-of-poses-to-trigger-sounds/21363 "2020-05-29T11:33:25Z")

</div>

Hi there! I’m a newbie to P5js and looking for some help. So what I am trying to do is use the outputs of a trained Posenet model to trigger sound files playing. I’m following Dan Shiffman’s ‘Posenet Classification’, tut…

---

## [Issue with P5js Server loading](https://discourse.processing.org/t/issue-with-p5js-server-loading/21380)

<div class="topic-metadata">

**Author:** [@jhyde](https://discourse.processing.org/u/jhyde)\
**Replies:** 1\
**Last updated:** [May 28, 2020, 8:37pm UTC](https://discourse.processing.org/t/issue-with-p5js-server-loading/21380 "2020-05-28T20:37:58Z")

</div>

apologies if I put this in the wrong section, but having some trouble seeing the canvas loaded on the server I’m running from Atom. I’ve attached how my script looks in Atom and what I copy and pasted from the Reference.…

---

## [Using loadTable with correct types in typescript with p5js](https://discourse.processing.org/t/using-loadtable-with-correct-types-in-typescript-with-p5js/21236)

<div class="topic-metadata">

**Author:** [@suvir](https://discourse.processing.org/u/suvir)\
**Replies:** 9\
**Last updated:** [May 28, 2020, 5:04pm UTC](https://discourse.processing.org/t/using-loadtable-with-correct-types-in-typescript-with-p5js/21236 "2020-05-28T17:04:19Z")

</div>

I am loading a csv file using the p5.js function, loadTable in typescript. It seems that its not reading the csv file at all, maybe i am missing something in my approach. I have all the type definition in typescript for …

---

## [Microphone input threshold p5.js](https://discourse.processing.org/t/microphone-input-threshold-p5-js/21096)

<div class="topic-metadata">

**Author:** [@rose1](https://discourse.processing.org/u/rose1)\
**Replies:** 8\
**Last updated:** [May 28, 2020, 11:54am UTC](https://discourse.processing.org/t/microphone-input-threshold-p5-js/21096 "2020-05-28T11:54:51Z")

</div>

Hi! How can I put a threshold on microphone input signal and modify the oscillator’s amplitude (with this new range)? I use “p5.Oscillator” to make sound and “p5.AudioIn()” to catch the microphone signal. This example d…

---

## [Permanent coloring for text in p5.js](https://discourse.processing.org/t/permanent-coloring-for-text-in-p5-js/21271)

<div class="topic-metadata">

**Author:** [@Johann75](https://discourse.processing.org/u/Johann75)\
**Replies:** 1\
**Last updated:** [May 25, 2020, 3:18pm UTC](https://discourse.processing.org/t/permanent-coloring-for-text-in-p5-js/21271 "2020-05-25T15:18:05Z")

</div>

Could anyone please suggest a way to not loop the text colour separately from my sound loop. I was creating a timer which would highlight as red after the last 5 seconds. Also, I added a beep sound to remind the user(th…

---

## [.render() PRoBleM](https://discourse.processing.org/t/render-problem/21255)

<div class="topic-metadata">

**Author:** [@pinchme](https://discourse.processing.org/u/pinchme)\
**Replies:** 6\
**Last updated:** [May 24, 2020, 10:22pm UTC](https://discourse.processing.org/t/render-problem/21255 "2020-05-24T22:22:52Z")

</div>

I am very new to this but like to jump in at the deep end and learn that way. I’m making a fork of an existing processing prog. and wishing to use sound rather than mouse to interact with it. I’ve probably done lots of t…

---

## [Posenet with p5js](https://discourse.processing.org/t/posenet-with-p5js/21009)

<div class="topic-metadata">

**Author:** [@babyP5](https://discourse.processing.org/u/babyP5)\
**Replies:** 5\
**Last updated:** [May 20, 2020, 12:29pm UTC](https://discourse.processing.org/t/posenet-with-p5js/21009 "2020-05-20T12:29:25Z")

</div>

hello everyone im working on a project with posenet and p5js and i want when my hand is above my shoulder i append a number inside of an array the porblem is its keep adding the number multiple times before stoping and …

---

## [Playing multiple songs in row](https://discourse.processing.org/t/playing-multiple-songs-in-row/20966)

<div class="topic-metadata">

**Author:** [@babyP5](https://discourse.processing.org/u/babyP5)\
**Replies:** 6\
**Last updated:** [May 20, 2020, 12:30am UTC](https://discourse.processing.org/t/playing-multiple-songs-in-row/20966 "2020-05-20T00:30:28Z")

</div>

hello everyone im trying to play 2 songs in row but it end up playing only the first song every time can someone help me plz let song; let song2 ; function setup() { song = loadSound('sample1.mp3'); song2 = loadSoun…

---

## [Different user client images with websockets](https://discourse.processing.org/t/different-user-client-images-with-websockets/21054)

<div class="topic-metadata">

**Author:** [@yuinjann](https://discourse.processing.org/u/yuinjann)\
**Replies:** 0\
**Last updated:** [May 19, 2020, 2:05pm UTC](https://discourse.processing.org/t/different-user-client-images-with-websockets/21054 "2020-05-19T14:05:17Z")

</div>

Hi! I’ve made a glitch sketch with posenet and p5.js, where a tree grows when two people( on different broswers) hands touch. I attached my own hand images to the wrist positions. In client.js, when two different hands …

---

## [Export gif, CCapturer](https://discourse.processing.org/t/export-gif-ccapturer/21008)

<div class="topic-metadata">

**Author:** [@cuvner](https://discourse.processing.org/u/cuvner)\
**Replies:** 1\
**Last updated:** [May 18, 2020, 11:17am UTC](https://discourse.processing.org/t/export-gif-ccapturer/21008 "2020-05-18T11:17:01Z")

</div>

Hello, I have a file directory error which I cannot seem to resolve, any help much appreciated. Its the “js/gif.worker.js” html \<!DOCTYPE html\>\<html lang="en"\>\<head\> \<script src="p5.js"\>\</script\> \<script src=…

---

## [P5js sound and Safari](https://discourse.processing.org/t/p5js-sound-and-safari/20880)

<div class="topic-metadata">

**Author:** [@antocreo](https://discourse.processing.org/u/antocreo)\
**Replies:** 2\
**Last updated:** [May 15, 2020, 1:53pm UTC](https://discourse.processing.org/t/p5js-sound-and-safari/20880 "2020-05-15T13:53:58Z")

</div>

Hi, I am experiencing some problems with p5.sound on Safari. I simply can’t hear the sound but the files are loaded and they seem to be played when I check in the console inspector. I just don’t hear the sound and yes,…

---

## [Posenet node sockets tree leaf interaction](https://discourse.processing.org/t/posenet-node-sockets-tree-leaf-interaction/20899)

<div class="topic-metadata">

**Author:** [@yuinjann](https://discourse.processing.org/u/yuinjann)\
**Replies:** 0\
**Last updated:** [May 15, 2020, 4:35am UTC](https://discourse.processing.org/t/posenet-node-sockets-tree-leaf-interaction/20899 "2020-05-15T04:35:52Z")

</div>

hey! So I made a node app with posenet, and the aim is for an interactive web experience, where two people’s hands are needed to grow a tree. The first person who logs on will be the root of the tree, and the second per…

---

## [Moving Fractal Tree Space colonisation according to hand position (posenet)](https://discourse.processing.org/t/moving-fractal-tree-space-colonisation-according-to-hand-position-posenet/20737)

<div class="topic-metadata">

**Author:** [@yuinjann](https://discourse.processing.org/u/yuinjann)\
**Replies:** 2\
**Last updated:** [May 15, 2020, 3:14am UTC](https://discourse.processing.org/t/moving-fractal-tree-space-colonisation-according-to-hand-position-posenet/20737 "2020-05-15T03:14:44Z")

</div>

Hello! So I have this sketch that modifies Daniel Shiffman’s p5.js \[Coding Challenge #17: Fractal Trees - Space Colonization \]. Using posenet, the leaves are generated by my left hand, and the root of the tree is generat…

---

## [Get rid of sound distortion](https://discourse.processing.org/t/get-rid-of-sound-distortion/20696)

<div class="topic-metadata">

**Author:** [@mhr](https://discourse.processing.org/u/mhr)\
**Replies:** 2\
**Last updated:** [May 11, 2020, 2:41pm UTC](https://discourse.processing.org/t/get-rid-of-sound-distortion/20696 "2020-05-11T14:41:02Z")

</div>

Hi, I’m trying to play tiny parts of the same sound file through MouseDragged function on p5. Everything works just fine when the variables are defined in the begining, but I want to be able to change them using the ke…

---

## [FFT with video as a source](https://discourse.processing.org/t/fft-with-video-as-a-source/20729)

<div class="topic-metadata">

**Author:** [@ballinoates](https://discourse.processing.org/u/ballinoates)\
**Replies:** 0\
**Last updated:** [May 10, 2020, 11:24pm UTC](https://discourse.processing.org/t/fft-with-video-as-a-source/20729 "2020-05-10T23:24:46Z")

</div>

Hi all- trying to use p5js for a new project instead of P3 and having some issues. I normally use minim for all my FFT related coding but that is not available for p5js. Anyway, I have a local video (for now) that I wa…

---

## [Looking for help downloading from editor with interactive sketch](https://discourse.processing.org/t/looking-for-help-downloading-from-editor-with-interactive-sketch/20669)

<div class="topic-metadata">

**Author:** [@calfish](https://discourse.processing.org/u/calfish)\
**Replies:** 2\
**Last updated:** [May 9, 2020, 10:03pm UTC](https://discourse.processing.org/t/looking-for-help-downloading-from-editor-with-interactive-sketch/20669 "2020-05-09T22:03:46Z")

</div>

Hello, I am relatively new to p5 and am running into a problem I would really love help with. I am in the beginning stages of an interactive art piece. When I download my sketch from the web editor and try and open it,…

---

## [Getting sounds to play in mobile?](https://discourse.processing.org/t/getting-sounds-to-play-in-mobile/20673)

<div class="topic-metadata">

**Author:** [@calfish](https://discourse.processing.org/u/calfish)\
**Replies:** 2\
**Last updated:** [May 9, 2020, 9:06pm UTC](https://discourse.processing.org/t/getting-sounds-to-play-in-mobile/20673 "2020-05-09T21:06:56Z")

</div>

hi, I have a sketch where sounds are playing automatically when the sketch it launched and then the user can adjust volume. However, no sounds are playing when I open the sketch online via iphone. does anyone know how …

---

## [Combining PoseNet with Daniel Shiffman's Fractal Trees Example to create leaves](https://discourse.processing.org/t/combining-posenet-with-daniel-shiffmans-fractal-trees-example-to-create-leaves/20532)

<div class="topic-metadata">

**Author:** [@yuinjann](https://discourse.processing.org/u/yuinjann)\
**Replies:** 10\
**Last updated:** [May 9, 2020, 5:46am UTC](https://discourse.processing.org/t/combining-posenet-with-daniel-shiffmans-fractal-trees-example-to-create-leaves/20532 "2020-05-09T05:46:50Z")

</div>

Hi! I’m trying to create a project with posenet and using Daniel Shiffman’s Coding Challenge #17: Fractal Trees - Space Colonization. Using his example, instead of the leaves generating randomly, I want them to only gen…

---

## [Not displaying text over certain size](https://discourse.processing.org/t/not-displaying-text-over-certain-size/20077)

<div class="topic-metadata">

**Author:** [@tanzor](https://discourse.processing.org/u/tanzor)\
**Replies:** 4\
**Last updated:** [May 5, 2020, 7:24am UTC](https://discourse.processing.org/t/not-displaying-text-over-certain-size/20077 "2020-05-05T07:24:32Z")

</div>

Dear experts, I’m coding an online experiment in jspsych and p5js and enjoying it very much. There’s a strange issue with font sizes however: if I increase the fontsize from 39 to 40 the text disappears (see line 61 in…

---

## [Hi guys, trying to simply play a sound in p5js but code doesn't work?](https://discourse.processing.org/t/hi-guys-trying-to-simply-play-a-sound-in-p5js-but-code-doesnt-work/20395)

<div class="topic-metadata">

**Author:** [@llcoolj](https://discourse.processing.org/u/llcoolj)\
**Replies:** 3\
**Last updated:** [May 3, 2020, 6:18am UTC](https://discourse.processing.org/t/hi-guys-trying-to-simply-play-a-sound-in-p5js-but-code-doesnt-work/20395 "2020-05-03T06:18:37Z")

</div>

Hi, so basically the code below doesn’t work, I don’t know if it’s the file path, but it cannot load the sound for some reason. Error: There was no response from the server at C:UserslauriDownloadsInput.mp3. Check the ur…

---

## [Sound files making my code run much slower](https://discourse.processing.org/t/sound-files-making-my-code-run-much-slower/20289)

<div class="topic-metadata">

**Author:** [@achandra](https://discourse.processing.org/u/achandra)\
**Replies:** 6\
**Last updated:** [May 2, 2020, 8:42pm UTC](https://discourse.processing.org/t/sound-files-making-my-code-run-much-slower/20289 "2020-05-02T20:42:17Z")

</div>

Hi, I’m new to P5 and working on a code for a school project. I have four sound clips in my code but everytime I have them on, the code becomes very visibly slower. I’m using the preload function to load them in, and th…

---

## [ERROR installing p5bots-server](https://discourse.processing.org/t/error-installing-p5bots-server/20069)

<div class="topic-metadata">

**Author:** [@lucaswoz](https://discourse.processing.org/u/lucaswoz)\
**Replies:** 2\
**Last updated:** [May 2, 2020, 8:17pm UTC](https://discourse.processing.org/t/error-installing-p5bots-server/20069 "2020-05-02T20:17:01Z")

</div>

Hello! I’m having some trouble following along with the HelloWorld p5bots tutorial: https://github.com/sarahgp/p5bots/blob/master/examples/HelloWorld.md I keep getting a bunch of errors when I try to run “npm install -g…

---

## [Audio processing](https://discourse.processing.org/t/audio-processing/20370)

<div class="topic-metadata">

**Author:** [@dinkerpatel](https://discourse.processing.org/u/dinkerpatel)\
**Replies:** 2\
**Last updated:** [May 2, 2020, 1:33am UTC](https://discourse.processing.org/t/audio-processing/20370 "2020-05-02T01:33:53Z")

</div>

Hi! I am new to p5.js and want to use the audio libraries to extract music tones from an audio clip that has instrumental music. Essentially, I want to display ‘freq’ in the ‘y’ axis versus time in the ‘x’ axis and notat…

---

## [Console is printing a vague/incorrect error](https://discourse.processing.org/t/console-is-printing-a-vague-incorrect-error/20303)

<div class="topic-metadata">

**Author:** [@PKFire17](https://discourse.processing.org/u/PKFire17)\
**Replies:** 1\
**Last updated:** [May 1, 2020, 6:17am UTC](https://discourse.processing.org/t/console-is-printing-a-vague-incorrect-error/20303 "2020-05-01T06:17:19Z")

</div>

Hi, I’m trying to make a polyhedron renderer thing but when I try to draw a vertex, it prints out Script error. (: line 0) and p5 had problems creating the global function "createElement", possibly because your code is…

---

## [Detecting eye color using PoseNet](https://discourse.processing.org/t/detecting-eye-color-using-posenet/20254)

<div class="topic-metadata">

**Author:** [@gjs](https://discourse.processing.org/u/gjs)\
**Replies:** 2\
**Last updated:** [April 30, 2020, 1:57pm UTC](https://discourse.processing.org/t/detecting-eye-color-using-posenet/20254 "2020-04-30T13:57:55Z")

</div>

Building on Dan Shiffman’s PoseNet example, I built a model to get eye color using the left and right eye points. I applied a 6 pixel offset from each point’s center to avoid the pupil and, ideally, land on the iris. It …

---

## [Volume dips when connecting to p5.Amp](https://discourse.processing.org/t/volume-dips-when-connecting-to-p5-amp/20285)

<div class="topic-metadata">

**Author:** [@unofficial](https://discourse.processing.org/u/unofficial)\
**Replies:** 0\
**Last updated:** [April 29, 2020, 8:17pm UTC](https://discourse.processing.org/t/volume-dips-when-connecting-to-p5-amp/20285 "2020-04-29T20:17:03Z")

</div>

Hey all I have been crazy about what I thought was a more complicated problem, but it seems like it is perhaps just a simple bug? If you connect an audio source to a p5.Gain it seems to drastically reduce the level of th…

---

## [P5 Envelope Sound Clipping/Crackle](https://discourse.processing.org/t/p5-envelope-sound-clipping-crackle/18310)

<div class="topic-metadata">

**Author:** [@godmach1ne](https://discourse.processing.org/u/godmach1ne)\
**Replies:** 1\
**Last updated:** [April 29, 2020, 8:04pm UTC](https://discourse.processing.org/t/p5-envelope-sound-clipping-crackle/18310 "2020-04-29T20:04:01Z")

</div>

Hi all, Have been trying to create a sequencer using the p5.sound library with the use of Parts. It works smoothly with sample files, however I would like to add more parameters (ADSR) to the sound to play with by using…

---

## [Capturer.start() from CCapture library causing my sketch animation to be jumpy](https://discourse.processing.org/t/capturer-start-from-ccapture-library-causing-my-sketch-animation-to-be-jumpy/20217)

<div class="topic-metadata">

**Author:** [@Darkmatterial](https://discourse.processing.org/u/Darkmatterial)\
**Replies:** 0\
**Last updated:** [April 28, 2020, 1:29am UTC](https://discourse.processing.org/t/capturer-start-from-ccapture-library-causing-my-sketch-animation-to-be-jumpy/20217 "2020-04-28T01:29:31Z")

</div>

Hi! I have a p5.js sketch I want to create a .gif from using CCapture library the problem is that when I run the sketch the final video is all jumpy in the drawGrid() object, does anyone have a clue why this is happenin…

---

## [Rotation / sound reactive / stopping drawing](https://discourse.processing.org/t/rotation-sound-reactive-stopping-drawing/20160)

<div class="topic-metadata">

**Author:** [@malindra](https://discourse.processing.org/u/malindra)\
**Replies:** 2\
**Last updated:** [April 26, 2020, 1:03pm UTC](https://discourse.processing.org/t/rotation-sound-reactive-stopping-drawing/20160 "2020-04-26T13:03:37Z")

</div>

i’m totally new to coding and p5 - i’ve been messing creating a visualiser from the intro tutorials and grabbing bits and pieces from different tuts. Basically - is there away to rotate all the ellipses/objects on the…

[Previous page](https://discourse.processing.org/c/p5js/p5js-libraries/20.md?page=10)

[Next page](https://discourse.processing.org/c/p5js/p5js-libraries/20.md?page=12)
