News for hackers. Stuff that matters.
Re:p5.js by _spduchamp on Saturday August 03, 2024 @08:46AM (#41146336)
ChatGPT knows P5.js pretty well so you can ask "Write a P5 program that plots a sine wave and let's me control phase with a slider." and it does it.

I used P5.js with ChatGPT to make a design tool that balances 5 masses on a circumference for creating a rotary magnetic bow with reduced harmonic locking.

Drag vertices of the pentagon... https://editor.p5js.org/spDuchamp/full/zgtkE2xik

Here 3D printed result https://www.instagram.com/p/Cr4ZXGztY27/

Re:p5.js by zyklonix on Saturday August 03, 2024 @09:40AM (#41146562)
I am fascinated with this. What is it used for?
Re:p5.js by _spduchamp on Saturday August 03, 2024 @09:47AM (#41146594)
I use it to play music.

Short demo: https://youtu.be/G1ftvw-Y6pk

Open mic set: https://youtu.be/nKFK_OhQv3k

Re:p5.js by zyklonix on Saturday August 03, 2024 @09:56AM (#41146629)
Did you transform a coat stand into an awesome futuristic instrument??? So glad I asked. Brilliant work. This should be in the HN front page!
Re:p5.js by _spduchamp on Saturday August 03, 2024 @10:18AM (#41146735)
Yup. That's exactly what I did.

I made an album for falling asleep to that you can find on various streaming music services. Just search "Autonomous Drone Lullabies" by Stefan Powell. It's an album that was made autonomously using an algorithm in Pure Data. It's also here: https://stefanpowell.bandcamp.com/album/autonomous-drone-lul...

Re:p5.js by evanjrowley on Saturday August 03, 2024 @11:25AM (#41147120)
Purchased! Excellent find on HN today.
Re:p5.js by brianjking on Tuesday August 06, 2024 @08:34PM (#41177038)
Right?! I'm about to purchase a copy too.
Re:p5.js by brianjking on Tuesday August 06, 2024 @08:32PM (#41177027)
This is seriously so cool. Thank you.
Re:p5.js by jamdav16 on Saturday August 03, 2024 @07:11PM (#41149981)
Reminds me of Electronicos Fantasticos (Japan) who re-purposes old items (TV's old fans, barcode scanners etc...) and makes electronic music. Super interesting stuff!

https://www.youtube.com/watch?v=A0VYsiMtrNE

Re:p5.js by potatoman22 on Saturday August 03, 2024 @09:41AM (#41146573)
Imagine a procedurally generated game via using an LLM to continually program new content for the game.
Re:p5.js by jckahn on Saturday August 03, 2024 @09:47AM (#41146592)
That seems pretty soulless and uninteresting.
Re:p5.js by dr_dshiv on Saturday August 03, 2024 @10:48AM (#41146881)
That sounds like a challenge worth taking up. (How to operationalize the soulfulness, though?)
Re:p5.js by duped on Saturday August 03, 2024 @03:38PM (#41148715)
That sounds like engineers missing the point of art