2023-03-07 (Tu) EWC_Box PRandmized arrangement

I envisioned how mode2() should operate and wrote the process in the code's comments. I stepped through it one line at a time but left the process in the comments. When I ran the sketch, some of the notes hung, which means they never received a command to turn off. They all played through a piano because I forgot to assign unique instruments.

I added the noteOff() command right before a new note played, and I included a loop that assigned prandom instruments to all the active channels. I got a fresh sound whenever I pressed the "PRandomize" button, but most were not great. The joy was that I could judge an arrangement in a few seconds and then discard anything I did not like. I took a video where I stepped through all the modes so that you can hear the halting feel of mode0(), the lengthened notes in mode1(), and a few example arrangements in mode2().
(1:07) Demonstration mode0(), mode1() and mode2()

The rest of the posts for this project have been arranged by date.
First time here?

Completed projects from year 1
Completed projects from year 2
Completed projects from year 3
Completed projects from year 4
Completed projects from year 5
Completed projects from year 6
Completed projects from year 7
Completed projects from year 8

Disclaimer for http://24hourengineer.blogspot.com and 24HourEngineer.com

This disclaimer must be intact and whole. This disclaimer must be included if a project is distributed.

All information on this blog, or linked by this blog, is not to be taken as advice or solicitation. Anyone attempting to replicate, in whole or in part, is responsible for the outcome and procedure. Any loss of functionality, money, property, or similar, is the responsibility of those involved in the replication.

All digital communication regarding the email address 24hourengineer@gmail.com becomes the intellectual property of Brian McEvoy. Any information contained within these messages may be distributed or retained at the discretion of Brian McEvoy. Any email sent to this address, or any email account owned by  Brian McEvoy, cannot be used to claim property or assets.

Comments to the blog may be utilized or erased at the discretion of the owner. No one posting may claim property or assets based on their post.

This blog, including pictures and text, is copyright to Brian McEvoy.