Thanks all!
And woot more progress in spite of illness!
So, nothing new graphically, but I've programmed the harmoniums to have 32 notes (0-31) that each signal off at 1/10 second intervals.
So a small example below here depicts the harmonium if he had 8 notes.
[0,0,0,0,0,0,0,0]
Now when the fellow is created, one of these becomes filled with a tone value. (0-255)
So.. grab a random note position 0-7.. let's say 5.. and then get a tone value, lets say 214..
[0,0,0,0,0,214,0,0]
Now every time the beat reaches note[5] it will play tone 214, however after 1/10 of a second it will progress to the next tone which is 0 which will mute the note. So it gives us a short beep.
Now the fun thing here is I've made it so you can feed these little fellows to influence the current tone. That is, let's say you have a harmonium who is level 1 that means he only has 1 note available to edit. And the things that you feed him will affect just that 1 note.
So let's take our example harmonium and give him a "Pitchup Berry".. (om nom nom nom)
[0,0,0,0,0,215,0,0]
Great! The pitch of our note is increased from 214 to 215.
But this note sounds a little late in the phrase...
Let's give him a "Sooner Smoothie" (om nom nom)
[0,0,0,0,215,0,0,0]
Great! Now this note is exactly where we want it, so we decide to leave his vocal diet alone and level him up.
Level 2 comes and he gets a new random tone at a random position
[0,0,56,0,215,0,0,0]
Now the first value is set in stone. That 215 is going to stay a 215 and it's going to stay in the note[4] position forever, but that doesn't mean we can't shift the 56 around or edit it to accommodate!
Anyway, I have all of this working, just no names for all of the foods and stuff and also no plans for any of the other side of raising them yet.
Edit: oh also, a value larger than 255 will be used as a sustain for the previous note, so the phrase [0,0,56,256,215,0,0,0] will hold note[2], (tone 56 here), for two counts instead of just one.