Skip to content

Programming-TRIGON/RobotMusic

Repository files navigation

RobotMusic

This code is used to make your falcons play some music!

Playing a song

You'll first need to have a specific song's MIDI file to play it.
After that, you need to put it inside the deploy folder and create a new enum element with the name of the file and the track of the file you want to play.
Now, you can create a new PlayFromMidiFileCommand command, that will play the midi file when you schedule it!
Change the FALCONS array in the constants to match the falcons you want to use.
Note that this project is configured to team 5990 in the wpilib_preferences.json.

Preconfigured songs

This project comes with a couple of songs preconfigured songs, that are toggle-bound to controller buttons, which are the following:

  • Never Gonna Give You Up (Imaging getting rickrolled by a robot LOL) - unbound
  • The Entertainer - bound to the "a" button on the controller
  • The 3rd Movement of Moonlight Sonata (Little Jonathan was too hard) - bound to the "b" button on the controller
  • Turkish March - bound to the "left bumper" button on the controller
  • Megalovania - bound to the "x" button on the controller
  • JoJo theme song - unbound
  • A part of Tornado Of Souls - unbound
  • Rush E - unbound
  • Crazy Frog - bound to the "left bumper" button on the controller
  • Dancing Queen - unbound
  • Revenge - bound to the "y" button on the controller

Disclaimer

You may modify this project as you wish! We only created this to have fun, and we encourage anyone to use it, fork it, recreate it, and have fun with it!
The only files in this project that are playing music are the files in the music folder and some of the constants inside the Constants file. The rest is just some example usage.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages