Liste der Anhänge anzeigen (Anzahl: 1)
[Release]Portable meditation engine
NOTE: VERSIONS THAT HAVE BEEN ATTACHED TO THIS THREAD ARE NOT 100% WORKING!
ANOTHER VERSION IS BEING MADE WHICH WILL INCLUDE A MUCH BETTER MIXING FUNCTION, ASWELL AS OTHER FEATURES SUCH AS MP3 PLAYBACK AND NOISE GENERATION.
*UPDATE 01/05* #2
Fixed degredation of amplitude
Volume is now set as a percentage, not as a whole value (0-100 instead of 0-4000).
Download link: http://forums.qj.net/attachment.php?...tid=3746&stc=1
*UPDATE 01/05*
Here's the latest update for PME. It contains quite a few corrections and additions regarding the loading and generation of beats. One limitation that is imposed however is that you can't throw in amazingly high frequencies(1000 seems to work, sometimes). I'm not sure why this is, but it shouldn't affect most presets(bar the sinus one, sorry!).
A few changes with the preset file format:
This example will produce two voices, one being 100hz with a 3hz beat(100% volume), and the other being a channel of white noise(50% volume). The frequency of the beat for the first voice added is inreased over 60s to 12 hz.
The format of the V preference is now as follows: V(base frequency) (beat frequency) (beat type 0=empty 1=beat 2=white noise) (volume 0-8000)
Notice that we add the channel of white noise on the next available channel, all on its own. Due to the random nature of white noise mixing it with a beat will leave the beat undectectable. I'm looking into a more efficient way of mixing, but for now this is one restraint that can't be avoided(if we want to keep all 8 voices/6 voices 1 white noise).
Another addition is the L preference, which determines the length of the sample, and if it should loop or not: L(length) (loop 0=false 1=true)
And here is the example preset:
This is the test preset, you can put your description here! It will last 60 seconds, and will NOT loop(L60 0)
L60 0
V200 10 1 8000
V0 0 0 8000
V0 0 0 2000
V0 0 2 2000
T0 0 60 100 12
Screenshot:
http://forums.qj.net/attachments/psp-development-forum/3731-release-portable-meditation-engine-screenshot.png
There may be a few flaws around, but it should work perfectly with all of the presets provided with this bundle. If you find an error could you please report it here :).
Enjoy!
edit: ok, I seem to of broken the white noise somewhere along the line. I'll get it patched up.
edit2: the white noise is sorted :)
*UPDATE 28/04*
I've managed to get mixing partially sorted, doubling the ammount of voices available(so we can actually use all 8 voices now, instead of just 4. Previously I was using one channel per voice, splitting it up between the left and right earphone. Now the audio callback is responsible for two sine waves. The first which is the channel itself, and the second of another that another set of variables holds that acts as the second voice on the tandem. Both left and right channels are then mixed, and sent to the correct earphone as an advanced sine wave. I've removed distortion by normalising the difference over the range of the sine wave(SHRT_MAX), and it seems to of worked perfectly.
Here is the new download attachment:
http://forums.qj.net/attachment.php?attachmentid=3684
note: Freedom Flight on all 8 channels sounds great by the way :)
*UPDATE 27/04*
Here's the updated eboot/preset files. Sorry for all the mess-around :)
http://www.othala.co.uk/pme/PME_2704_2.rar
Comes with three presets, all 16 channels seem to be working fine now :)
-----------
Just a nifty little application I made earlier today I thought I would release. It's based on the program called Brain Wave Generator, that uses binaural beats to influence the state our mind is in. Our brains tick over at different levels during different states of mind, such as being in REM sleep, or working a hard day at the office. Using binaural beats(which is basically applying a slightly different tone to each ear, the difference of which is the waves you wish to induce in your brain, more on this lower down) this program will load an editable preset via a menu, and then play out the preset via the PSPs headphones.
Here's a little more on the different brainwaves, and what kind of states they appear in.
Delta 0.5Hz - 4Hz Deep sleep
Theta 4Hz - 8Hz Drowsiness (also first stage of sleep)
Alpha 8Hz - 14Hz Relaxed but alert
Beta 14Hz - 30Hz Highly alert and focused
You MUST use headphones for this to be effective, as otherwise the sound will just mix up and the difference by the time they get to your ears will be negligible.
You might think this kind of stuff works, you might not. I just thought I would get to grips with the PSPs audio functions by making a mock-up of BWG :).
Note that not all of the features of BWG are present yet, I'll be adding the ability to configure your presets to change the frequency of your beats over time tommorow, aswell as hopefully the ability to add an mp3 backdrop to the loop.
Enjoy :)
http://www.othala.co.uk/pme/screenshot.png
edit: Oh, and here's a link to BWG if anyone is interested in this kinda thing
http://www.bwgen.com/
Once I've cleaned it up, and added all the features I want I'll release the source for this which will be fully commented.