Vex Speaker Samples

Since we are moving on to our new robot ideas, I thought I would share our audio from this year in case people have speakers they want to have fun with and need examples. In the attached zip file are all the files we had on one cortex. It was packed to the brim. We used Audacity to eliminate the bass and lower the sample rate to optimize quality but keep the size small.

A couple of the RobotC code bits we used:
Nyan Cat looping audio


task nyan()
{
	while(true){
		if(!bSoundActive){
			playSoundFile("nyan1.wav");
			playSoundFile("nyan1.wav");
			playSoundFile("nyan2.wav");
			playSoundFile("nyan2.wav");
		}
		sleep(10);
	}
}

And if you want audio triggered on a button press:


if(vexRT[Btn7DXmtr2]){
	clearSounds();
	playSoundFile("1-up.wav");
}

Using clearSounds() lets you stop an existing one or the current one and play it again.

I hope this helps someone, since I was also hoping for expanded file/audio capabilities with the V5. We’ll just have to max out the cortex again this year.
starstruck sounds.zip (159 KB)