# P5.js or P5 for an interactive audiovisual performance?

**URL:** <https://discourse.processing.org/t/p5-js-or-p5-for-an-interactive-audiovisual-performance/36734>\
**Category:** p5.js\
**Created:** [May 5, 2022, 2:19pm UTC](https://discourse.processing.org/t/p5-js-or-p5-for-an-interactive-audiovisual-performance/36734 "2022-05-05T14:19:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nint](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/nint/32/16183_2.png) [@nint](https://discourse.processing.org/u/nint)\
**Post date:** [May 5, 2022, 2:19pm UTC](https://discourse.processing.org/t/p5-js-or-p5-for-an-interactive-audiovisual-performance/36734/1 "2022-05-05T14:19:07Z")

</div>

Hi!  
I’m working for an interactive audiovisual performance in realtime (~70-80 min) where, based from audio analysis (mainly FFT) I will generate movements for metaball rendering.  
For instance he metaball rendering is done with shader mainly.

I’m working at the code and I have something I like (quite simple but I like it) in both platforms but I’m not sure what to choose: Java based (more performant) or Javascript based (newer, modern, but inside a browser)?  
And with which hardware?

---

<div class="post-metadata">

**Author:** ![SomeOne](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/someone/32/8639_2.png) [@SomeOne](https://discourse.processing.org/u/SomeOne)\
**Post date:** [May 5, 2022, 5:56pm UTC](https://discourse.processing.org/t/p5-js-or-p5-for-an-interactive-audiovisual-performance/36734/2 "2022-05-05T17:56:45Z")

</div>

I’d say which ever you feel is simpler to set up. Hardware depends on how much processing power you need? Is you hardware in a secure place? Raspberries are relatively cheap and can be setup so that performance starts after power up. Raspberry pi 4 is not great with processing 4. With raspberry pi 4 javascript is probably easier to set up (browser kiosk mode). If you need more power that raspberry there are other more performant mini computers.
