Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.53 KB | None | 0 0
  1. void main(int argc, char **argv)
  2. {
  3.         /* Wait untill all buttons are not pressed */
  4.         while (MISC_REG(MISC_BTN_REG));
  5.  
  6.         synth_init(5);
  7.        
  8.         // This is where you'd configure the voices to fit your song.
  9.         // The init leaves all 8 voices in a pretty generic state.
  10.         // Won't sound good, won't sound horrible.
  11.        
  12.         midi_init();
  13.         midi_play(&songs[5]);
  14.        
  15.         /* Just wait for user ... */
  16.         while (!MISC_REG(MISC_BTN_REG));
  17.  
  18.         midi_fini();
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement