This example program from Head First Java. It supposed to be a music video with synth sound and random rectangles. Instead, I have drum sounds with random rectangles. If I comment out the line The sound returns to synth but there aren't any rectangles. I know this is the ControllerEvent to signal the rectangles according to the book it does nothing but this. I wonder if maybe it is a drum sound? What is going on?
I get piano sounds. I suspect that the program uses whatever sound you last used on your computer's synthesizer. I don't know enough about programming MIDI to be able to tell you how to change the sound. I'll try moving this thread to another forum.
All things are lawful, but not all things are profitable.
posted 1 year ago
Well I finally have some progress. I made one simple change from the book. I'm not 100% sure what it means. I changed the ControllerEvent line to to put the ControllerEvent on a different channel from the piano sound. I'm guessing because I can't have the ControllerEvent on the same channel as the note samples. I'm not sure why it works on other computers but not mine. It must be some environmental differences? I'm using a Debian Linux OS. Is there anyone using the same configuration who can explain why?
He loves you so much! And I'm baking the cake! I'm going to put this tiny ad in the cake: