GamebuinoClassic archive

Archive of the Gamebuino Classic forum (2014-2018), rebuilt from the pages kept by the Wayback Machine: only part of the topics and pages were captured. Read-only. Removal on request: hi@gamebuino.com.

Forum › Games Gallery

GW-Player (or: Your Gamebuino as a music player!)

Muessigb Mon Jan 12, 2015 5:58 am
Hello, I made a music player program, that you can play audio with.
It plays unsigned 8-bit mono wave files that run at 20khz, encoded in raw.
Feel free to download it from the Games section.

You can convert files with that command:
Code: Select all
ffmpeg -i your_sound_file.mp3 -f s8 -acodec pcm_s8 -ar 20000 -ac 1 -af "volume=5dB" NAME.WAV

Now you can name the file however you want, as long as the name follows the 8.3 standard.
Then just drop the file onto your FAT-formatted SD and start the player.

But if you're lazy ;) you can just use my converter application. Just drop your music files in the window, select your Gamebuino SD and the files are automatically named and converted!

Select Load Music from the menu and enjoy listening.
A is play/pause, B is stop, C is menu and the right and left arrow keys are for seeking. You can seek by fast tapping the arrow keys; each faster each further you will seek. To load another song just press stop and select Load Music again. If you press C, while listening to music, you can access a context menu, which is not quite complete yet, but allready allows you to restart the song from the beginning.
Special thanks to Myndale, who passively helped me with his example to understand how you can play WAVE files.

Here is a encoded public domain music sample, so that you can test it straightaway.

Planned features are:
- Tags

This could be archieved as I'm using a proprietary file format and so you have to convert your files anyways.

Benedikt Müssig aka Muessigb
Skyrunner65 Mon Jan 12, 2015 1:07 pm Re: Sound Player (Play wave files from SD)
Hey look, competition.
Its okay, I'm not much of a fighter anyways.
But seriously, WAV files are more common than RAW files.
But right now, I'm stuck on ACTUALLY MAKING IT WORK.
It's a big task, I know.
I hope you go a lot farther. :lol:
Muessigb Mon Jan 12, 2015 4:20 pm Re: Sound Player (Play wave files from SD)
Hey, I made a huge update.
Feel free to download it.

@Skyrunner64
I had a look on your project, I PM'ed you about it.
rodot Mon Jan 12, 2015 5:32 pm
Neat, sounds pretty good :)
Just a random suggestion : you may want to provide a demo MEDIA.WAV for lazy people to be able to test it straight away without having to encode a file ^^
Jamish Mon Jan 12, 2015 6:12 pm
rodot wrote:Neat, sounds pretty good :)
Just a random suggestion : you may want to provide a demo MEDIA.WAV for lazy people to be able to test it straight away without having to encode a file ^^


Just make sure it's not licensed content so rodot could distribute the example if you want :D
Muessigb Mon Jan 12, 2015 7:13 pm
OK, i found and included a sample. :)
Muessigb Mon Jan 12, 2015 7:37 pm
Hey, I will also make a frontent for a converter, so that you can conveniantly convert all your music to gwave (nice name heh :lol: ) audio by just dragging it in a window.

EDIT: Converter is made and ready for download
Skyrunner65 Tue Jan 13, 2015 3:24 pm
Well, since we are more or less merging, I guess I'll need your Github Username. (if you want to get to my repository [probably not, No additions have really been made other than incorporating the Gamebuino Library])\

Mine is Skyrunner65, btw.
Can we rename this by chance?
Everything else basically incorporates "Buino", so why not us?
This is probably my love for my old project, but what about "Buino Player" ?
If not, that's okay.
Muessigb Tue Jan 13, 2015 7:47 pm
Hey, I'm Muessigb on github.
No problems with that name at all.
What about PlayBuino? Just asking.
Skyrunner65 Wed Jan 14, 2015 2:38 am
Sounds a bit better.
You can now access my "BuinoPlayer" repository.
Also, when I tried to use the menu, it froze.
Any luck on your part?
(your Github is quite interesting :) )

EDIT: Gave the repo a README.MD.
Let's support multiple file formats, starting with RAW (That's where it started, right?)
Robrto78 Thu Feb 19, 2015 10:04 pm
Great! I was looking for a Gamebuino music player. I got it to play "Robots FTW". Worked great! Only problems are that songs take up much smace on the sd card, and it would be nice to have a song list, not where you look up the file name. But otherwise, fantastic! For a second I was thinking Gamebuino could make 4 beep notes and 3 boop notes. :lol:
Muessigb Sat Feb 28, 2015 8:43 am
Robrto78 wrote:Great! I was looking for a Gamebuino music player. I got it to play "Robots FTW". Worked great! Only problems are that songs take up much smace on the sd card, and it would be nice to have a song list, not where you look up the file name. But otherwise, fantastic! For a second I was thinking Gamebuino could make 4 beep notes and 3 boop notes. :lol:

Great that you got it working. Yes I was thinking about a menu too. I will look into that soon.
Have fun!
Awesomemario128 Tue Jun 09, 2015 12:43 am
My computer says gwconvert.zip is malware is it :?: :|
Awesomemario128 Tue Jun 09, 2015 1:21 am
You should also add volume controls
fishy4341 Wed Sep 02, 2015 2:26 am
Hello, I love your "game"!! But I have a problem with your music converter software, My antivirus picked up something from your music converter. I will check further into the scan but so far no damage :)