LoginLogin

[DLC] Stereo 44.1kHz Music

Root / Submissions / [.]

MasterR3C0RDCreated:
Version:1.0Size:8.1MB
Want to listen to some music on the go, but don't have a phone nor an SD card reader? Have the Sound Unit DLC? If the second statement applies to you, you're in luck, because this has some sick beats by myself! /s

Instructions:

Download all 3 public keys, and move all files to a project folder. Then run the PLAYER program.

Notes:

Thanks to 12Me21 for converting everything for me. I only made the song and the player. The sound clip is an except from my (shitty) song, Breaking Beats. You can find it here: http://soundcloud.com/shadowcx11/breaking-beats

Technical Details

LEFT and RIGHT are files each containing a raw PCM stream. LEFT is for the left channel, and RIGHT is for the right channel. The sample rate is 44.1kHz, and each DAT contains 1026485 samples, giving ~23 seconds of audio. The song itself was created with Music Maker Jam. The section of the song shown was cut out with Audacity, and converted to an SBWAV using Perska's WAV2SBWAV tool. They were then ran though this statement to convert them to PCM data:
ARYOP #AOPMAD, WAV%, WAV%, 256, -32768
The song is played using PCMSTREAM, and the timestamp is calculated by dividing PCMPOS by 44100. The total time is calculated by dividing the length of the channel arrays by 44100.

You might have to restart SB before using this, otherwise you might not have enough memory (due to small memory leaks probably)

Looks like I didnt buy the DLC for no reason then!

I'm planning on optimizing this a lot. Here are the plans:
  • Use 16 bits/sample instead of 8 for higher quality
  • Reduce the loop length to the first half of the sample song, splitting the size of the audio in half
  • Use packed samples to reduce the size further
  • Use 12Me21's player that unpacks the audio as the music plays, reducing memory even more