Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main(int argc, char **argv)
- {
- /* Wait untill all buttons are not pressed */
- while (MISC_REG(MISC_BTN_REG));
- synth_init(5);
- // This is where you'd configure the voices to fit your song.
- // The init leaves all 8 voices in a pretty generic state.
- // Won't sound good, won't sound horrible.
- midi_init();
- midi_play(&songs[5]);
- /* Just wait for user ... */
- while (!MISC_REG(MISC_BTN_REG));
- midi_fini();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement