Hey
I figured I would share this before it get s anymore complicated. It is not a complete drum machine sequencer yet only the pattern editing is done. I figured it would be good to share it as is so you can add your own drums, triggering, and preset saving.
So far it has a 16 pattern memory with 4 drum channels. The pattern storage goes into 4 arrays - 1 for each drum channel. Each pattern array is 256 bytes? Should be 2 bits but hey.
You should add a loadbang to set the initial values of pattern, BANK, and D_SELECT.
I didn't want to clutter it up for future preset saving.
I ought to be easy to add more pattern memory and more drum channels.
If anyone can figure out a better - less atom way to implement the color changing of the toggles or anything else in the patch I would be glad to know.
I 'm about frizzled over a messagebox phenomenon I ran into.
I tried every way shape and form possible to get this to work.
When reading the memory and repainting the sequence edit display after a pattern or drum select.
[r onoff]
|
| [r nametosendto]
| |
| | [r color]
| | |
[pack f s f]
\
[$2 $3; (
[$2 color $1 $1 $1;(
That is one messagebox.
A loop cycled through the toggles and that message tried to paint them and set their value but it would only do one depending on which order I changed it to.
If the colors worked then when I would switch to a new pattern the toggles would change color but not their state of 0 or 1. Some toggles would have to be clicked 2wice to change state.
I managed to get it working by sending 2 separate messages to a send.
Why doesn't the multi line message work?
Enjoy!