2023-03-08 (W) EWC_Box Percussion

I stumbled across a few problems with the code and fixed them. The first issue was that if I prandomly assigned sounds to multiple channels, then turned the knob down to reduce those channels, the higher ones were ignored and kept playing instead of erasing them for a fresh start like I wanted. The second problem was that when I set the pitch to zero on the potentiometer for mode2(), it would remain at zero when I went back to using the encoders in mode0() and mode1(), but it should have begun closer to sixty.

I started work on mode3(), which will be solely percussion. I mapped out my ideas on a full sheet of paper and got to work coding. I wrote out all the instrument names as I did with the melodic MIDI set. I created arrays, including a two-dimension table where I will store the percussion loop with a record of each instrument's velocity. I built a screen, assigned the operators, and determined which parameters would affect the playback when I pressed the PRandomize button. The first attempt produced sound but not a beat. I added print statements to see what was happening, and the table looked like I expected. I will investigate this mystery further.
Percussion table

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.