Category: Uncategorized
-
Theremin With A Twist
Remember my previous post about theremin where I could not get the hardware part to work? I made it to work this time! p5 link: https://editor.p5js.org/LovelyA72/sketches/VNqJhEhej (P5JS serial helper app is required!!!) Technical Hurdles It turned out that the VL ToF sensor although on i2c bus, there’s not a quick and easy way to set…
-
JSON Parsing
This sketch is an online information viewer for my MegaHits audio board editor project files. It loads a default demo file from my CDN but you can select your own file. Files are processed locally.
-
ToF Theremin
Link to the sketch: https://editor.p5js.org/LovelyA72/sketches/VNqJhEhej (Embedding is not possible due to using external libraries and custom HTML file) This is a Theremin that’s controlled by three ToF sensors. As I am writing this blog I have not yet able to test web serial function. The synthesizer part is working as intended with waveform mixing. This…
-
Pixels
Pixels in a p5js canvas can be accessed directly as a 1D array. Just like the screen buffer on a GBA. Although 2D array can definitely make understanding this sketch way easier, it is what it is. The following demonstrates a simple drawing program that paints in green when dragging with left mouse cursor and…
-
Class and Object
This sketch demonstrates a particle system with an object pool with automatic object cleaning and placement. The advantage of this approach over the confetti party demo is that no matter how long this demo runs there will be no performance degradation.
-
Function and Vector3
This sketch looks exactly like the one from last week but uses Vector3 to store colour and also keep the setup() and draw() function as small as possible.
-
For Loop
This is an example of using for loop to generate an unconventional “10PRINT”, the famous Commodore 64 one-liner.
-
Conditions
-
p5.js Test Post
-
Hello world!
Welcome to Moene’s Sites. This is your first post. Edit or delete it, then start writing!