Release Sbagen - Binaural Beat Generator


jdbye

Member
Joined
Dec 27, 2007
Messages
242
I've ported SBaGen to the Pandora, the pnd is here: http://www.fragmentedforce.com/pandora/sbagen.pnd

I included the example beats in the PND inside the "examples" directory.

Binaural beats can help you sleep more easily, make it easier to focus, etc.
Wikipedia article on binaural beats: http://en.wikipedia.org/wiki/Binaural_beat

It's a bit of a quick hack as it's a CLI app, so I just made a script that prompts for the binaural beat file (.sbg format) and plays it in a terminal window. The first app I've ported to Pandora, and the first PND I've ever made. It should work correctly, but let me know if you have any issues.

Update: I also added a shutdown when done option, and if you want to save even more power you can clock the Pandora to 200mhz, and if you have hotfix 4 close the lid to turn off the screen.

I haven't posted it on the file archive or app store yet, if anyone wants to do it please feel free to do so :)
 
Thank you! :)

Edit: BTW, is it possible to program a beat to run for 30 minutes for example? What would be great would be to program a beat for a given period of time, then the application shutdowns the Pandora automatically. Great way to fall asleep and save your Pandora battery ;)
 
Michoko said:
Thank you! :)

Edit: BTW, is it possible to program a beat to run for 30 minutes for example? What would be great would be to program a beat for a given period of time, then the application shutdowns the Pandora automatically. Great way to fall asleep and save your Pandora battery ;)
I will look at adding an option to auto shut down when the beat ends :)

The binaural beat files are in plaintext, and last for a given length of time, you could shorten that time in Mousepad or similar, no guarantees to if the beats will still work as intended, though, but as long as you shorten the longest "parts" of the beat by approximately the same percentage amount it should work as well as it would if you turned off the beat after the desired amount of time.
For example, the file may look something like this

Code:
ts1: pink/80 100+1.5/0 200+10.5/3 400+10.5/3
ts2: pink/80 100+1.5/0 200+8/3 400+8/3
ts3: pink/80 100+1.5/4 200+7.5/3 400+7.5/3

00:00:00 off ->
00:00:10 ts1
00:05:00 ts1 ->
00:07:00 ts2
00:17:00 ts2 ->
00:18:00 ts3
00:30:00 ts3 ->
00:33:00 ts1 ->
00:33:30 off

The times are absolute, so if you wanted to shorten the total playing time by 10 minutes (resulting in a length of 23:30) all you would have to do is change the times in the bottom part something like this:
Code:
ts1: pink/80 100+1.5/0 200+10.5/3 400+10.5/3
ts2: pink/80 100+1.5/0 200+8/3 400+8/3
ts3: pink/80 100+1.5/4 200+7.5/3 400+7.5/3

00:00:00 off ->
00:00:10 ts1
00:04:00 ts1 ->
00:06:00 ts2
00:12:00 ts2 ->
00:13:00 ts3
00:20:00 ts3 ->
00:23:00 ts1 ->
00:23:30 off

Myself, I can't fall asleep as long as I'm listening to a binaural beat but it does help me become really tired so I can fall asleep quickly when I stop it. :)
 
Last edited by a moderator:
Thanks for your explanations. ;)

That makes sense, and I suppose I would use this trick in case an auto-shutdown option is not available.

Keep up the good work!
 
Updated the PND - Shutdown when done added (requires root)
It won't shutdown until the beat ends... but at least your Pandora won't stay on all night. :)
If the beat you want to play lasts for hours you could shorten it using the method I described.
Plus, you can clock the CPU to 200mhz, it still runs properly and you save a lot of power, also if you have hotfix 4 and you close the lid it saves more power as well.
 
Wow, that's perfect, thanks a lot!

If I'm lucky, I'll get my Pandora in the next 200 batch this week. Everyday I can see a new possible use for my upcoming Pandora. Today it was GINGE + Pcsx4All, now it's Sbagen... So much potential!
 
Back
Top