# Libraries

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

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

**Page:** 17

---

## [3D Bezier angle at point](https://discourse.processing.org/t/3d-bezier-angle-at-point/10941)

<div class="topic-metadata">

**Author:** [@Sudev](https://discourse.processing.org/u/Sudev)\
**Replies:** 4\
**Last updated:** [May 7, 2019, 1:10pm UTC](https://discourse.processing.org/t/3d-bezier-angle-at-point/10941 "2019-05-07T13:10:53Z")

</div>

Does anyone knows how to calculate angle at a particular point in 3D bezier curve ? For example, consider there’s a ring to be inserted in BezierCurve. So can I get angles that ring makes in order for it to be parallel …

---

## [P5.localmessage (testing, feedback, & discussion)](https://discourse.processing.org/t/p5-localmessage-testing-feedback-discussion/10889)

<div class="topic-metadata">

**Author:** [@bmoren](https://discourse.processing.org/u/bmoren)\
**Replies:** 0\
**Last updated:** [May 3, 2019, 6:49pm UTC](https://discourse.processing.org/t/p5-localmessage-testing-feedback-discussion/10889 "2019-05-03T18:49:55Z")

</div>

Hello! I’m releasing a new library for p5.js today. I’m hoping that this thread can encourage other people to try it out, and test if before I add it officially to the p5.js homepage. Github Repository: https://github.c…

---

## [SVG morphing animation](https://discourse.processing.org/t/svg-morphing-animation/10482)

<div class="topic-metadata">

**Author:** [@weedboy](https://discourse.processing.org/u/weedboy)\
**Replies:** 7\
**Last updated:** [April 25, 2019, 10:20pm UTC](https://discourse.processing.org/t/svg-morphing-animation/10482 "2019-04-25T22:20:47Z")

</div>

Hello Processing Forum, I’m a beginner and this is my first post. How i can morphing svg with p5.js or Processing? I have two svg files from illustrator, and i want create animation morphing one svg into another.

---

## [Speech Recognition](https://discourse.processing.org/t/speech-recognition/10438)

<div class="topic-metadata">

**Author:** [@dannfelixx](https://discourse.processing.org/u/dannfelixx)\
**Replies:** 15\
**Last updated:** [April 21, 2019, 4:55pm UTC](https://discourse.processing.org/t/speech-recognition/10438 "2019-04-21T16:55:18Z")

</div>

Hello! I’m a student working on a small project for class and I’m having some troubles (I’m pretty new to p5.js). I’m using the p5.speech library to get speech recognition into my project; basically what I want to do is…

---

## [Getting gif exporting via ccapture working in the p5js web editor](https://discourse.processing.org/t/getting-gif-exporting-via-ccapture-working-in-the-p5js-web-editor/7815)

<div class="topic-metadata">

**Author:** [@jgl](https://discourse.processing.org/u/jgl)\
**Replies:** 1\
**Last updated:** [April 16, 2019, 6:59am UTC](https://discourse.processing.org/t/getting-gif-exporting-via-ccapture-working-in-the-p5js-web-editor/7815 "2019-04-16T06:59:12Z")

</div>

Hi All, I’m trying to get animated gif export via ccapture.js, there is an example here: I’ve duplicated @GoToLoop code into the online editor: But I get the error: “ReferenceError: can’t access lexical declarati…

---

## [Dev tool result](https://discourse.processing.org/t/dev-tool-result/10183)

<div class="topic-metadata">

**Author:** [@l3ehfar](https://discourse.processing.org/u/l3ehfar)\
**Replies:** 2\
**Last updated:** [April 15, 2019, 11:41pm UTC](https://discourse.processing.org/t/dev-tool-result/10183 "2019-04-15T23:41:13Z")

</div>

As my code has been crashed, I got a result from chrome dev tool which said: DevTools: CPU profile parser is fixing 1 missing samples. what does it mean? https://editor.p5js.org/l3ehfar/sketches/JFf1Dxf2K

---

## [How to make ball bouncy in matterjs](https://discourse.processing.org/t/how-to-make-ball-bouncy-in-matterjs/10250)

<div class="topic-metadata">

**Author:** [@blkpanther](https://discourse.processing.org/u/blkpanther)\
**Replies:** 4\
**Last updated:** [April 14, 2019, 6:42pm UTC](https://discourse.processing.org/t/how-to-make-ball-bouncy-in-matterjs/10250 "2019-04-14T18:42:43Z")

</div>

Hi I adapted this snippet of code from here However, despite the restitution, the objects aren’t bouncy at all. Is there anything I need to change? // This example is based on examples from: http://brm.io/matter-js/ va…

---

## [Using a string as parameter name](https://discourse.processing.org/t/using-a-string-as-parameter-name/10246)

<div class="topic-metadata">

**Author:** [@b\_and\_z](https://discourse.processing.org/u/b_and_z)\
**Replies:** 6\
**Last updated:** [April 14, 2019, 1:22pm UTC](https://discourse.processing.org/t/using-a-string-as-parameter-name/10246 "2019-04-14T13:22:14Z")

</div>

Hi everyone! I want to make a simple interactive sequencer for my homepage, but I’m running into a problem when trying to play the single notes. let ton1; let ton2; let ton3; let beats = 16; let tonName = \[\]; let sequ…

---

## [P5js code crash](https://discourse.processing.org/t/p5js-code-crash/10176)

<div class="topic-metadata">

**Author:** [@l3ehfar](https://discourse.processing.org/u/l3ehfar)\
**Replies:** 2\
**Last updated:** [April 12, 2019, 2:08am UTC](https://discourse.processing.org/t/p5js-code-crash/10176 "2019-04-12T02:08:27Z")

</div>

I just realized that due to this loop, the code is going to crash after playing 4 5 notes. how can I avoid an infinitive loop here? function granularPlay(){ for(let i=1;i\<10;i++){ if (doorbell\[i\].contains(mouseX,…

---

## [Cycling through array of audio files, need to go to next audio file](https://discourse.processing.org/t/cycling-through-array-of-audio-files-need-to-go-to-next-audio-file/9833)

<div class="topic-metadata">

**Author:** [@dackdel](https://discourse.processing.org/u/dackdel)\
**Replies:** 3\
**Last updated:** [April 10, 2019, 2:01pm UTC](https://discourse.processing.org/t/cycling-through-array-of-audio-files-need-to-go-to-next-audio-file/9833 "2019-04-10T14:01:41Z")

</div>

When speech is detected then the first track plays, it plays till the end and then turns the mic on to listen for something, when it hears something it plays the second track and so on until track ten. Running this code…

---

## [Wacom stylus in combination with P5js](https://discourse.processing.org/t/wacom-stylus-in-combination-with-p5js/10085)

<div class="topic-metadata">

**Author:** [@jns](https://discourse.processing.org/u/jns)\
**Replies:** 2\
**Last updated:** [April 9, 2019, 7:26pm UTC](https://discourse.processing.org/t/wacom-stylus-in-combination-with-p5js/10085 "2019-04-09T19:26:43Z")

</div>

Hello everybody, I am wondering if there is a way to use WACOM tablets in combination with P5js. A short google research did not yield any results. Best, Jonas

---

## [Can p5.js output valid lottie-files?](https://discourse.processing.org/t/can-p5-js-output-valid-lottie-files/10134)

<div class="topic-metadata">

**Author:** [@oivvio](https://discourse.processing.org/u/oivvio)\
**Replies:** 4\
**Last updated:** [April 9, 2019, 4:51pm UTC](https://discourse.processing.org/t/can-p5-js-output-valid-lottie-files/10134 "2019-04-09T16:51:20Z")

</div>

On a related note: Is it possible have processing output valid lottie-files?

---

## [Follow vector path](https://discourse.processing.org/t/follow-vector-path/9189)

<div class="topic-metadata">

**Author:** [@matyas](https://discourse.processing.org/u/matyas)\
**Replies:** 3\
**Last updated:** [March 11, 2019, 9:38pm UTC](https://discourse.processing.org/t/follow-vector-path/9189 "2019-03-11T21:38:48Z")

</div>

Hi Everyone, I am searching for a solution to move objects along vector paths (ex.: svg). I thought is a simple thing as the AE Lottie plugin is using something similar (AE animations converted to SVG - JSON to reproduc…

---

## [Loop bug in applying envelope function](https://discourse.processing.org/t/loop-bug-in-applying-envelope-function/10077)

<div class="topic-metadata">

**Author:** [@l3ehfar](https://discourse.processing.org/u/l3ehfar)\
**Replies:** 2\
**Last updated:** [April 8, 2019, 1:28pm UTC](https://discourse.processing.org/t/loop-bug-in-applying-envelope-function/10077 "2019-04-08T13:28:23Z")

</div>

I’m trying to add an envelope to my samples but it seems according to loop function(I guess) for playing any of sample the previous samples play too. var song=\[\]; var doorbell=\[\]; var amp; var playBackRate; var time=0; …

---

## [Applying envelope functions to a soundfile](https://discourse.processing.org/t/applying-envelope-functions-to-a-soundfile/10047)

<div class="topic-metadata">

**Author:** [@l3ehfar](https://discourse.processing.org/u/l3ehfar)\
**Replies:** 1\
**Last updated:** [April 7, 2019, 1:08pm UTC](https://discourse.processing.org/t/applying-envelope-functions-to-a-soundfile/10047 "2019-04-07T13:08:13Z")

</div>

due to my understanding of p5js.org examples, applying envelope is just acceptable to an oscillator or a wave which has been made by p5js synthesizer itself, is it any possibility to apply an envelope function to a sound…

---

## [Add Libraries to p5.js Web Editor](https://discourse.processing.org/t/add-libraries-to-p5-js-web-editor/9756)

<div class="topic-metadata">

**Author:** [@ChipAnyanwu](https://discourse.processing.org/u/ChipAnyanwu)\
**Replies:** 3\
**Last updated:** [March 29, 2019, 2:04pm UTC](https://discourse.processing.org/t/add-libraries-to-p5-js-web-editor/9756 "2019-03-29T14:04:27Z")

</div>

Hello Everyone! I have a quick question about the p5.js web editor. I’m trying to make a project that utilizes the p5.play library and I wanted to use the p5 web editor to do so. I imported the library file and referenc…

---

## [Doubts regarding pose estimation on 2D video using posenet?](https://discourse.processing.org/t/doubts-regarding-pose-estimation-on-2d-video-using-posenet/9675)

<div class="topic-metadata">

**Author:** [@basicvisual](https://discourse.processing.org/u/basicvisual)\
**Replies:** 2\
**Last updated:** [March 29, 2019, 8:23am UTC](https://discourse.processing.org/t/doubts-regarding-pose-estimation-on-2d-video-using-posenet/9675 "2019-03-29T08:23:32Z")

</div>

Hello I have been playing with the pre trained model for posenet . I had a general question, I tried to do pose estimation on a random video . I seem to get results totally where the skeleton is drawn totally off the hu…

---

## [Run p5js with Parcel](https://discourse.processing.org/t/run-p5js-with-parcel/9681)

<div class="topic-metadata">

**Author:** [@Lotas94](https://discourse.processing.org/u/Lotas94)\
**Replies:** 6\
**Last updated:** [March 28, 2019, 4:06am UTC](https://discourse.processing.org/t/run-p5js-with-parcel/9681 "2019-03-28T04:06:00Z")

</div>

Hi there, I’m trying to run a script based on p5js library, it works well in a classic file (index.html, css, and scripts) but if I run this with parcel (npm run dev), there are no errors but the elements expected are n…

---

## [glitchP5 library no download links found](https://discourse.processing.org/t/glitchp5-library-no-download-links-found/9621)

<div class="topic-metadata">

**Author:** [@clicksandpops](https://discourse.processing.org/u/clicksandpops)\
**Replies:** 6\
**Last updated:** [March 26, 2019, 12:00am UTC](https://discourse.processing.org/t/glitchp5-library-no-download-links-found/9621 "2019-03-26T00:00:18Z")

</div>

Hello folks looking for this library and unfortunately it is nowhere to be found! Any suggestions?

---

## [P5 Project Questions](https://discourse.processing.org/t/p5-project-questions/9520)

<div class="topic-metadata">

**Author:** [@ixd](https://discourse.processing.org/u/ixd)\
**Replies:** 2\
**Last updated:** [March 22, 2019, 5:27am UTC](https://discourse.processing.org/t/p5-project-questions/9520 "2019-03-22T05:27:19Z")

</div>

So I managed to upload MP3 files to the online editor, but I can’t figure out how to make them play when I click on an ellipse… I got the first one to play when I click on the first ellipse, but I can’t figure out how to…

---

## [Unable to get matter.js working again](https://discourse.processing.org/t/unable-to-get-matter-js-working-again/9275)

<div class="topic-metadata">

**Author:** [@Code\_Caffeine](https://discourse.processing.org/u/Code_Caffeine)\
**Replies:** 2\
**Last updated:** [March 13, 2019, 8:53pm UTC](https://discourse.processing.org/t/unable-to-get-matter-js-working-again/9275 "2019-03-13T20:53:42Z")

</div>

I am very new to the matter.js library, and I have already made a project using it, which works fine. However, I am now attempting to create another project but cannot get the same results. It seems like I have tried eve…

---

## [P5.sound: Connecting an Oscillator to a Gain](https://discourse.processing.org/t/p5-sound-connecting-an-oscillator-to-a-gain/9097)

<div class="topic-metadata">

**Author:** [@wvnl](https://discourse.processing.org/u/wvnl)\
**Replies:** 0\
**Last updated:** [March 7, 2019, 9:55pm UTC](https://discourse.processing.org/t/p5-sound-connecting-an-oscillator-to-a-gain/9097 "2019-03-07T21:55:56Z")

</div>

I’m unsure how the p5 gain node works with an oscillator connecting to it, I’m not having any luck using either connect() or setInput(). The following just ignores the gain node: var osc; var gain; function setup() { …

---

## [How to load sound in a web editor sketch?](https://discourse.processing.org/t/how-to-load-sound-in-a-web-editor-sketch/8640)

<div class="topic-metadata">

**Author:** [@tv42](https://discourse.processing.org/u/tv42)\
**Replies:** 1\
**Last updated:** [February 22, 2019, 10:47pm UTC](https://discourse.processing.org/t/how-to-load-sound-in-a-web-editor-sketch/8640 "2019-02-22T22:47:44Z")

</div>

https://editor.p5js.org/tv42/sketches/ejesQqE1v This sketch gives me a 404 error, even though the sound file appears in the project folder. Is something missing? Am I improperly using something from here?(https://p5js.o…

---

## [How to specify the audio format for recording?](https://discourse.processing.org/t/how-to-specify-the-audio-format-for-recording/8609)

<div class="topic-metadata">

**Author:** [@hollo](https://discourse.processing.org/u/hollo)\
**Replies:** 0\
**Last updated:** [February 21, 2019, 11:26pm UTC](https://discourse.processing.org/t/how-to-specify-the-audio-format-for-recording/8609 "2019-02-21T23:26:28Z")

</div>

I would like to record audio for a telephony application in 8kHz, uLaw codec but I do not see any method to specify the audio recording format for the record() function (sampling rate, channels, sample bit size, codec) …

---

## [Is there a way to find the drop of a song using p5.js audio module?](https://discourse.processing.org/t/is-there-a-way-to-find-the-drop-of-a-song-using-p5-js-audio-module/8424)

<div class="topic-metadata">

**Author:** [@Mako](https://discourse.processing.org/u/Mako)\
**Replies:** 4\
**Last updated:** [February 20, 2019, 4:14am UTC](https://discourse.processing.org/t/is-there-a-way-to-find-the-drop-of-a-song-using-p5-js-audio-module/8424 "2019-02-20T04:14:38Z")

</div>

Is there a way to find the drop of a song using p5.js audio module? How should I proceed ? Thank you for your time

---

## [How to debug p5 mic input](https://discourse.processing.org/t/how-to-debug-p5-mic-input/8082)

<div class="topic-metadata">

**Author:** [@blkpanther](https://discourse.processing.org/u/blkpanther)\
**Replies:** 4\
**Last updated:** [February 5, 2019, 4:36pm UTC](https://discourse.processing.org/t/how-to-debug-p5-mic-input/8082 "2019-02-05T16:36:52Z")

</div>

I’m using the sample code on p5 website for mic input, but the screen doesn’t change on sound input - the circle doesn’t change height. I have p5.sound.js in the library folder, and another song input sample works, so th…

---

## [p5.AudioIn using more than one audio channel](https://discourse.processing.org/t/p5-audioin-using-more-than-one-audio-channel/8020)

<div class="topic-metadata">

**Author:** [@specpro](https://discourse.processing.org/u/specpro)\
**Replies:** 0\
**Last updated:** [February 1, 2019, 10:18am UTC](https://discourse.processing.org/t/p5-audioin-using-more-than-one-audio-channel/8020 "2019-02-01T10:18:51Z")

</div>

My sound card has more than one channel audio source. Is it possible to access the other audio channels? Seems that the “setSource” function always defaults to channel 1 and 2 of the sound card. Anyway to set to chann…

---

## [Angular object models](https://discourse.processing.org/t/angular-object-models/8028)

<div class="topic-metadata">

**Author:** [@domedisorder](https://discourse.processing.org/u/domedisorder)\
**Replies:** 1\
**Last updated:** [February 3, 2019, 5:54pm UTC](https://discourse.processing.org/t/angular-object-models/8028 "2019-02-03T17:54:43Z")

</div>

I’d like to create a model for the objects I’m drawing but I’m struggling with how to do that in Angular. I know p5 methods aren’t recognized outside of specific functions but that seems to be what I need to do here? I’…

---

## [How to fill with HEX color in p5.js](https://discourse.processing.org/t/how-to-fill-with-hex-color-in-p5-js/8048)

<div class="topic-metadata">

**Author:** [@blkpanther](https://discourse.processing.org/u/blkpanther)\
**Replies:** 4\
**Last updated:** [February 3, 2019, 5:31pm UTC](https://discourse.processing.org/t/how-to-fill-with-hex-color-in-p5-js/8048 "2019-02-03T17:31:56Z")

</div>

I intend to fill shape with hex color because I’ll use a GUI to allow users to pick color and dat.gui returns a hex value. The two methods I attempted is either to use red(), green(), blue() on the color or use a hex2tg…

---

## [Unsupported OpenType signature \<!DO](https://discourse.processing.org/t/unsupported-opentype-signature-do/7459)

<div class="topic-metadata">

**Author:** [@Pyrros](https://discourse.processing.org/u/Pyrros)\
**Replies:** 3\
**Last updated:** [January 28, 2019, 8:10pm UTC](https://discourse.processing.org/t/unsupported-opentype-signature-do/7459 "2019-01-28T20:10:42Z")

</div>

I am working on klimablomst.tk and using Firebase as hosting, database and storage provider. I have successfully implemented the first two, but I am having some trouble with storage. I am unsure if the problem is server-…

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

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