![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on [Release]Portable meditation engine within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; NOTE: VERSIONS THAT HAVE BEEN ATTACHED TO THIS THREAD ARE NOT 100% WORKING! ANOTHER VERSION IS BEING MADE WHICH WILL ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() Mushroom Man
|
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: ![]() 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 ![]() ![]() 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.
__________________
[URL=http://www.othala.co.uk]Othala[/URL] [B]o[/B] [URL=http://www.entheogendefencefund.org.uk/]Save the shroom![/URL] [CENTER][URL=http://www.othala.co.uk/travellerBlog][IMG]http://www.othala.co.uk/graphics/travBanner.png[/IMG][/URL][/CENTER] Last edited by Psilocybeing; 11-16-2006 at 03:54 AM.. |
|
|
|
|
|
#2 |
![]() |
Wow, pretty cool. I have Brainwave Generator and used it a few times. I tried listening to one that was supposed to make me feel like I was tripping and it got pretty intense. I'm downloading this now.
Also make sure you have a decent pair of headphones. Theres a noticeable difference between expenisve headphones and $ store headphones(yes I sometimes pay $.99 for headphones). You should also be in a very quiet room with the lights turned off. I tried it on the bus and it had almost no effect. You really need to concentrate on the sounds. EDIT: I was just wondering if there was anyway we could use BWG presets. I have tons of presets for that already and was really hoping to use them with this. Last edited by Cronos1388; 04-26-2006 at 06:00 PM.. |
|
|
|
|
|
#3 |
![]() Mushroom Man
|
Yeah, I doubt the headphones that come with the PSP will be much good, but you never know. In a quiet setting and the correct frequency there shouldn't be any distortion
![]() By the way, the format of the preset files are as follows: <preset name> V<base frequency> <modulation> You can have up to 8 voices, there's no mixing so you're limited by the PSPs number of audio channels, but 8 should be more than enough. Here's the example 'Deep Mind': Deep mind V300.0 14.1 V100.0 1.6 V50.0 0.7 V50.0 0.4 Deep mind creates 4 voices, one at 300hz with a twin of 314.1hz, another at 100hz with a twin at 101.6hz, another at 50hz with a twin at 50.7hz and one more at 50hz with a twin at 50.4hz.
__________________
[URL=http://www.othala.co.uk]Othala[/URL] [B]o[/B] [URL=http://www.entheogendefencefund.org.uk/]Save the shroom![/URL] [CENTER][URL=http://www.othala.co.uk/travellerBlog][IMG]http://www.othala.co.uk/graphics/travBanner.png[/IMG][/URL][/CENTER] Last edited by Psilocybeing; 04-26-2006 at 05:57 PM.. |
|
|
|
|
|
#5 |
|
Guest
Posts: n/a
|
Haha, this is pretty cool.
|
|
|
|
#6 |
![]() Mushroom Man
|
Thanks!
![]() You can't use BWG presets directly, but you can open them up in BWG, note down the frequencies of the channels and then throw them into a new preset file as described above. I'll see if I can find some documentation on BWGs preset file format tommorow, for now I'm going to sleep
__________________
[URL=http://www.othala.co.uk]Othala[/URL] [B]o[/B] [URL=http://www.entheogendefencefund.org.uk/]Save the shroom![/URL] [CENTER][URL=http://www.othala.co.uk/travellerBlog][IMG]http://www.othala.co.uk/graphics/travBanner.png[/IMG][/URL][/CENTER] |
|
|
|
|
|
#7 | |
![]() |
Quote:
__________________
[URL="http://www.newlilwayne.com"]www.NewLilWayne.com[/URL] |
|
|
|
|
|
|
#8 |
![]() |
Wow, this reminds me of stuff I have tried to do. Maybe you could add a visualizer in the future that increases the effect since your ears aren't the only form of input. I guess they don't call it REM(rapid eye movement) sleep for nothing. I like to listen to the shoutcast station cryosleep on shoutcast using pspradio when I go to sleep. That gets pretty trippy.
|
|
|
|
|
|
#10 | |
![]() |
Quote:
__________________
[URL="http://www.newlilwayne.com"]www.NewLilWayne.com[/URL] |
|
|
|
|
|
|
#11 | |
![]() |
Quote:
__________________
Taking things too far one step at a time |
|
|
|
|
|
|
#16 | |
![]() |
Quote:
__________________
[URL="http://www.newlilwayne.com"]www.NewLilWayne.com[/URL] |
|
|
|
|
|
|
#18 |
![]() |
does this work in 2.6 it sounds really interesting and wanna try it. maybe this could make me get more sleep and stuff
__________________
Veteran [CENTER][COLOR="Green"][FONT="Fixedsys"] PSN Name[/FONT][/COLOR]: Eldiabl1o[/CENTER] [center][QUOTE=gmansixfo]Since I have to reset my psp whenever i get out of an emulator. Can this damage my psp.[/QUOTE][/center] |
|
|
|
|
|
#19 |
![]() Mushroom Man
|
Glad you guys like it
, I've not done any specific 2.0 proofing but it's a pure usermode app so it should do. Are there any limitations on the ammount of audio channels you can use with 2.0+ homebrew? If so I can remove the channels that can't be used so everyone can use it. Adding the timing section now, so you can pre-program say an 8 hour preset, to gradually take you into a deep sleep ![]() About Dopewars, I've dropped that project now to be honest, the version I made didn't have anywhere near the ammount of features I wanted. Sorry
__________________
[URL=http://www.othala.co.uk]Othala[/URL] [B]o[/B] [URL=http://www.entheogendefencefund.org.uk/]Save the shroom![/URL] [CENTER][URL=http://www.othala.co.uk/travellerBlog][IMG]http://www.othala.co.uk/graphics/travBanner.png[/IMG][/URL][/CENTER] |
|
|
|
|
|
#20 |
![]() Mushroom Man
|
Flicking through the pages of ps2dev, it seems that someone else was also having trouble with audio channels on the loader. It seems the solution was to manually release the channels you want to use before assigning them yourself, I guess because GTA already grabs a few channels.
__________________
[URL=http://www.othala.co.uk]Othala[/URL] [B]o[/B] [URL=http://www.entheogendefencefund.org.uk/]Save the shroom![/URL] [CENTER][URL=http://www.othala.co.uk/travellerBlog][IMG]http://www.othala.co.uk/graphics/travBanner.png[/IMG][/URL][/CENTER] |
|
|
|
|
|
#22 |
![]() Mushroom Man
|
I've sorted the shifting for both base and frequency, although I seem to be getting some small crackles when changing the frequency of the wave. Has anyone else that has worked with audion on the PSP come across this problem, as it seems to work fine without any shifting.
I'll write up an ammended Deep Mind preset and upload the new copy in a bit. edit: nevermind, sorted the crackling audio problem
__________________
[URL=http://www.othala.co.uk]Othala[/URL] [B]o[/B] [URL=http://www.entheogendefencefund.org.uk/]Save the shroom![/URL] [CENTER][URL=http://www.othala.co.uk/travellerBlog][IMG]http://www.othala.co.uk/graphics/travBanner.png[/IMG][/URL][/CENTER] Last edited by Psilocybeing; 04-27-2006 at 03:32 AM.. |
|
|
|
|
|
#24 | |
![]() Mushroom Man
|
Ok, here's the new version. I'll start writing up a few more presets and add a tutorial to show you how to change across the BWG presets to PME presets. Operation is pretty much the same, boot it up, up and down select the preset, and X to start the selected preset.
Here's a description of the Deep Mind preset PME comes with: Quote:
The format for the PME preset files is as follows: Code:
Deep mind V300.0 14.1 V100.0 1.6 V50.0 0.7 V50.0 0.4 T0 40 120 300.0 10 T0 240 360 300 7.8 T0 690 760 300 5.5 T0 880 960 300 4.0 T0 1360 1800 300 3.5 More presets and a status bar on the way
__________________
[URL=http://www.othala.co.uk]Othala[/URL] [B]o[/B] [URL=http://www.entheogendefencefund.org.uk/]Save the shroom![/URL] [CENTER][URL=http://www.othala.co.uk/travellerBlog][IMG]http://www.othala.co.uk/graphics/travBanner.png[/IMG][/URL][/CENTER] Last edited by Psilocybeing; 04-27-2006 at 06:57 AM.. |
|
|
|
|
|
|
#26 | |
![]() ![]() Developer
|
Quote:
|
|
|
|
|
|
|
#27 |
![]() Mushroom Man
|
I was missing the few lines that checked to see if the frequency had changed, and if it does then it changes the timing appropriately, thanks anyway
![]() edit: here's my slightly modified version of the audioCallBack function from the wavegen sample in the SDK Code:
void audioCallback(int channel, unsigned short* buf, unsigned int length) {
const float sampleLength = 1.0f / sampleRate;
const float scaleFactor = SHRT_MAX - 1.0f;
sample_t* ubuf = (sample_t*) buf;
int i;
if (freq[channel] != oldFreq[channel]) {
sampleTime[channel] *= (oldFreq[channel] / freq[channel]);
}
for (i = 0; i < length; i++) {
short s = (short) (scaleFactor * sinf(2.0f * PI * freq[channel] * sampleTime[channel]));
ubuf[i].l = s;
ubuf[i].r = s;
sampleTime[channel] += sampleLength;
}
if (sampleTime[channel] * freq[channel] > 1.0f) {
double d;
sampleTime[channel] = modf(sampleTime[channel] * freq[channel], &d) / freq[channel];
}
oldFreq[channel]=freq[channel];
}
__________________
[URL=http://www.othala.co.uk]Othala[/URL] [B]o[/B] [URL=http://www.entheogendefencefund.org.uk/]Save the shroom![/URL] [CENTER][URL=http://www.othala.co.uk/travellerBlog][IMG]http://www.othala.co.uk/graphics/travBanner.png[/IMG][/URL][/CENTER] |
|
|
|
|
|
#28 |
![]() |
WOW, this application is great!!
I love it, because it's nice to look at, and I think I feel weird when I listen to those presets *or googlyEdit* I just tried the new one, and when I click the Deep preset... it comes up for about 1 sec then... it stops and the psp stops functioning. Either I did something wrong or maybe I should use the older version Last edited by Devun_06; 04-27-2006 at 04:37 AM.. |
|
|
|
|
|
#29 | |
![]() Mushroom Man
|
Quote:
![]() http://www.vth.biz/kb/index.php?page=index_v2&id=47&c=7 edit: Devun, are you on a 2.0? edit#2: seems it's crashing for me too, my last addition must of messed something up, working on it ![]() edit#3: fixed, download from the same URL again and it should work
__________________
[URL=http://www.othala.co.uk]Othala[/URL] [B]o[/B] [URL=http://www.entheogendefencefund.org.uk/]Save the shroom![/URL] [CENTER][URL=http://www.othala.co.uk/travellerBlog][IMG]http://www.othala.co.uk/graphics/travBanner.png[/IMG][/URL][/CENTER] Last edited by Psilocybeing; 04-27-2006 at 04:54 AM.. |
|
|
|
|
|
|
#30 |
|
been using it, i like it alot, it like being in a
car or plane on a long trip, the hum of the engine always send me off(not driving of course). hmmmm so relaxing.... p.s talk to people with you head phones on, it distorts their voices, sound funny. lol [edit] just to let you know, this new version has crashed on me twice in a row, as i write this, its now three, when changing profile, it just goes silent then turns off, i'm on 1.5, im gona go back to old version for now, hope this can be fixed. reply to Psilocybeing - edit#3 just re-downloaded new version (of the new version) and still crashing with me .
__________________
Last edited by Tiboric; 04-27-2006 at 05:22 AM.. |
|
|
|
|
![]() |
| Tags |
| engine , meditation , releaseportable |
| Thread Tools | |
|
|