VEX Cortex Speaker plays 8-bit Nyan Cat Full Song

Hey guys! I was reading through some old posts about VEX Speakers:

The answer is yes it can: :slight_smile:
http://www.youtube.com/watch?v=mqq6Ird20rs

Team 101 also did a vex speaker nyan cat video: [http://www.youtube.com/watch?v=vphJdh4tdlY

Technical:
I used Sound Recorder (sndrec32.exe) on Windows XP to convert the sound files (there were several small clips) to a format that the Cortex likes:

  1. Open Sound Recorder (Hit the Windows key, type Sound Recorder, and click the resulting link or hit enter)
  2. Open the sound clip you want to convert
  3. Click File, Save As
  4. By “Format:” click Change…
  5. Format can stay on PCM, but under Attributes, select 8.000 kHz, 8 Bit, Mono 7kb/sec (usually the top option)
  6. Click Ok, type a file name, then hit save.
    You can use RobotC’s file management (Robot Menu, Advanced Tools, File Management) to download the newly created .wav files to the Cortex.](http://www.youtube.com/watch?v=vphJdh4tdlY)

you just made my day. Thanks!

Woah!!! But how big is that file??? Does it fit on the cortex while it has all the program in it???

… Brilliant.
:D:D:D:D:D

Begin Musical Sequence

Yes, it all fits (sounds and program) with a bit of room to spare on the cortex. :slight_smile:
It totals around 206kb.
See if you can figure out how, and then I’ll tell you if you’re right.

Off topic question.

Do you plan on attending Wildstang Regional? Hope to see you there!

looks like it is going to be hard to focus when driving this year…

Team 101 also did a vex speaker nyan cat video: [http://www.youtube.com/watch?v=vphJdh4tdlY

Technical:
I used Sound Recorder (sndrec32.exe) on Windows XP to convert the sound files (there were several small clips) to a format that the Cortex likes:

  1. Open Sound Recorder (Hit the Windows key, type Sound Recorder, and click the resulting link or hit enter)
  2. Open the sound clip you want to convert
  3. Click File, Save As
  4. By “Format:” click Change…
  5. Format can stay on PCM, but under Attributes, select 8.000 kHz, 8 Bit, Mono 7kb/sec (usually the top option)
  6. Click Ok, type a file name, then hit save.
    You can use RobotC’s file management (Robot Menu, Advanced Tools, File Management) to download the newly created .wav files to the Cortex.](http://www.youtube.com/watch?v=vphJdh4tdlY)

So like I did all this, but I got a 45 second clip down to 400 kb :confused: I guess you just had nyan cat on a loop

So glad my team doesn’t have to have that distraction. But my kids might just get a crazy idea. Annoying-bot!!!

So sorry if thats insulting to you. it was not intended as such.

@ClockWorkKnights Lol! It’s cool :slight_smile:

@banditofernando Good try! You are partially right; What I did was I broke the song down into it’s different basic parts, and then took one sound clip for each of those parts, and had the Cortex play it back in the correct order. Also, if anyone is curious, here are the files:
(I made this using ROBOTC 3.08 because 3.51 had a bug that would not allow the Cortex to play sound files. This is fixed in 3.52, and the code will probably need to be modified to run on it (http://www.robotc.net/blog/2012/11/03/robotc-3-54-update-now-available/))
NyanCat8Bit.zip (131 KB)

hmmm Okay. I’ll try that this time. Does it matter how complex the song is? For instance, Nyan Cat was a simple rhythm, but if it was a song, say the Skyrim theme song, would that matter? (The more complex a song is, does the file increase in size?)

Thanks!!

Ohhh, another thing, how did you get the voices in 8 bit??? They’re so cool!