You have to connect the buttons to the GPIO ports of the Rapsberry Pi. How this can be done depends on which signal levels are used by your "Input pup" hardware. When the buttons are also connected to other harwdare (your light controller), you usually have to use level shifters to protect the Raspberry Pi inputs from voltages of the light controller and vice versa.
To react upon GPIO input changings you can use
WiringPi[
^]. It provides libraries and command line tools to configure the GPIO ports and do input and output.
For the software you have to decide which programming or script language you want to use and how you can get the information from your music queue.