VEX Cortex Speaker plays 8-bit Nyan Cat Full Song

  1. 3 years ago

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

    banditofernando The real question... can it play this???

    The answer is yes it can: :-)
    [url]http://www.youtube.com/watch?v=mqq6Ird20rs[/url]

    Team 101 also did a vex speaker nyan cat video: [url]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.

  2. ClockWorkKnights

    26 Sep 2012 Sykesville, Maryland 4300 A, B, C, D and R

    you just made my day. Thanks!

  3. banditofernando

    26 Sep 2012 Philadelphia, PA BNS, 169

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

  4. [deleted]

    26 Sep 2012

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

  5. tabor473

    26 Sep 2012 Moderator, ROBOTC Tech Support American Rep in NZ Robotics

    Begin Musical Sequence

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

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

  7. JesseCRN

    27 Sep 2012 Indianapolis, IN 323Z

    Off topic question.

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

  8. Clean Sweep Man

    27 Sep 2012 Boulder, CO BUFF

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

  9. banditofernando

    13 Nov 2012 Philadelphia, PA BNS, 169

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

    The answer is yes it can: :-)

    Team 101 also did a vex speaker nyan cat video: [url]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.

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

  10. ClockWorkKnights

    13 Nov 2012 Sykesville, Maryland 4300 A, B, C, D and R

    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.

  11. @ClockWorkKnights Lol! It's cool :-)

    @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/ ))

  12. banditofernando

    13 Nov 2012 Philadelphia, PA BNS, 169

    @Simmons 2.0 @ClockWorkKnights Lol! It's cool :-)

    @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/ ))

    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!!

  13. banditofernando

    14 Nov 2012 Philadelphia, PA BNS, 169

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

 

or Sign Up to reply!