
![611228_2[5]](https://30km-s.blog/wp-content/uploads/2018/11/611228_25.jpg?w=739)
(mason jar with a 3*3*3 LED matrix that visualizes fireflies caught through P5.js – image above is from an online tutorial)
(environmental sound layer in background)
ICM + Pcomp:
ICM Code Editor // ICM Code Browser
Would like for it to have a “listen to jar collection” button that will playback through the fireflies/sounds you collected in your jar. Maybe when the firefly is clicked, it’s copied to a new array called song[] and then spliced from it’s original fireflies[] (so they visually disappear from the screen into jar)
Original ICM sketch:

(Was originally brainstorming as a chord building activity / still navigating how to have it be polyphonic)
ICM Code Editor // ICM Code Browser
** still having trouble creating a “empty jar” or “release firefly” button which would restore all nine fireflies back to the screen / clear the song[] array.
** with next iteration hope to store each fire fly as an object with an associated frequency & note name (or midi);
**would enjoy trying it with tone.js