QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

[Release]Portable meditation engine

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 ...

Reply
 
LinkBack Thread Tools
Old 04-26-2006, 05:38 PM   #1
Mushroom Man
 
Psilocybeing's Avatar
 
Join Date: Sep 2005
Location: UK
Posts: 318
Trader Feedback: 0
Default [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:


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.
Attached Files
File Type: rar PME_2704_2.rar‎ (216.5 KB, 169 views)
__________________
[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..
Psilocybeing is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 05:50 PM   #2
 
Cronos1388's Avatar
 
Join Date: Dec 2005
Location: Hoboken, NJ
Posts: 367
Trader Feedback: 0
Default

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..
Cronos1388 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 05:53 PM   #3
Mushroom Man
 
Psilocybeing's Avatar
 
Join Date: Sep 2005
Location: UK
Posts: 318
Trader Feedback: 0
Default

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..
Psilocybeing is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 06:01 PM   #4
 
Cronos1388's Avatar
 
Join Date: Dec 2005
Location: Hoboken, NJ
Posts: 367
Trader Feedback: 0
Default

Okay thanks, that answers my edited question about BWG presets.
Cronos1388 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 06:04 PM   #5
TheMarioKarters
Guest
 
Posts: n/a
Default

Haha, this is pretty cool.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 06:07 PM   #6
Mushroom Man
 
Psilocybeing's Avatar
 
Join Date: Sep 2005
Location: UK
Posts: 318
Trader Feedback: 0
Default

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]
Psilocybeing is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 06:13 PM   #7
 
Join Date: Jan 2006
Posts: 4,288
Trader Feedback: 0
Default

Quote:
Originally Posted by Psilocybeing
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.
Thanks for that, I've been wanting to add audio to applications, but other things have been a higher priority for me. This should hopefully simplify that. Thanks again in advance!
__________________
[URL="http://www.newlilwayne.com"]www.NewLilWayne.com[/URL]
soccerPMN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 06:15 PM   #8
 
manaox2's Avatar
 
Join Date: Jan 2006
Location: USA
Posts: 466
Trader Feedback: 0
Default

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.
manaox2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 06:20 PM   #9

Is in your zone.
 
Mast3r_Shak3's Avatar
 
Join Date: Oct 2005
Location: Jacksonville, FL
Posts: 3,429
Trader Feedback: 0
Default

Hey this is pretty cool, did u evr finish that dopewars clone?
__________________

--XBL Gamertag: PhenoM904--
Mast3r_Shak3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 06:24 PM   #10
 
Join Date: Jan 2006
Posts: 4,288
Trader Feedback: 0
Default

Quote:
Originally Posted by manaox2
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.
Yea I suffer from moderate insomnia, but my mom doesn't believe it. I average 4 hours of sleep a night, I can't wait to try this out.
__________________
[URL="http://www.newlilwayne.com"]www.NewLilWayne.com[/URL]
soccerPMN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 06:29 PM   #11
 
Ralan's Avatar
 
Join Date: Feb 2006
Location: This Forum
Posts: 1,825
Trader Feedback: 0
Default

Quote:
Originally Posted by soccerPMN
Yea I suffer from moderate insomnia, but my mom doesn't believe it. I average 4 hours of sleep a night, I can't wait to try this out.
me 2, exept my insonmia is brought on by mild heat.
__________________
Taking things too far one step at a time
Ralan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 07:01 PM   #12
 
manaox2's Avatar
 
Join Date: Jan 2006
Location: USA
Posts: 466
Trader Feedback: 0
Default

My insomnia is brought on by pspupdates and the psp.

But, no, really, it's true.
manaox2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 07:04 PM   #13
 
Join Date: Nov 2005
Posts: 5,272
Trader Feedback: 0
Default

hey nice app u got here. does it work on 2.0?
__________________
[CENTER]
[SIZE=3][COLOR=Red]
[COLOR=black]I'm a Boy.
[COLOR=Red]: )[/COLOR][/COLOR]
[/COLOR][/SIZE]
[/CENTER]
Hooger is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 07:08 PM   #14
 
Join Date: Nov 2005
Posts: 5,272
Trader Feedback: 0
Default

ok wellit workson 2.0 but when ipress X it makes this weird sound scratchy sound.
__________________
[CENTER]
[SIZE=3][COLOR=Red]
[COLOR=black]I'm a Boy.
[COLOR=Red]: )[/COLOR][/COLOR]
[/COLOR][/SIZE]
[/CENTER]
Hooger is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 07:21 PM   #15
 
simmcity's Avatar
 
Join Date: May 2005
Location: Canada
Posts: 399
Trader Feedback: 0
Default

im gonna try this , i cant seem to sleep when i want to anymore.

If this works, then WOW!

anyways, great app.
simmcity is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 07:25 PM   #16
 
Join Date: Jan 2006
Posts: 4,288
Trader Feedback: 0
Default

Quote:
Originally Posted by hooger
ok wellit workson 2.0 but when ipress X it makes this weird sound scratchy sound.
That's probably a problem with what audio channels are allowed in 2.0+ homebrew... I think you have to change the cfg files so that it uses different channels than the first ones.
__________________
[URL="http://www.newlilwayne.com"]www.NewLilWayne.com[/URL]
soccerPMN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 09:31 PM   #17
 
Devun_06's Avatar
 
Join Date: Feb 2006
Posts: 338
Trader Feedback: 0
Talking

you won me with the great graphics & professional look. Altough, I do like things that can actuall be of use outside of the cyber world, the fact it can actually help me is great too. NICE APPLICATION
Devun_06 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2006, 09:34 PM   #18
 
El Diablo's Avatar
 
Join Date: Mar 2006
Location: Somewhere
Posts: 3,625
Trader Feedback: 0
Default

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]
El Diablo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-27-2006, 02:12 AM   #19
Mushroom Man
 
Psilocybeing's Avatar
 
Join Date: Sep 2005
Location: UK
Posts: 318
Trader Feedback: 0
Default

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]
Psilocybeing is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-27-2006, 02:16 AM   #20
Mushroom Man
 
Psilocybeing's Avatar
 
Join Date: Sep 2005
Location: UK
Posts: 318
Trader Feedback: 0
Default

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]
Psilocybeing is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-27-2006, 02:30 AM   #21
 
Tiboric's Avatar
 
Join Date: Jul 2005
Location: second star to the right...
Posts: 139
Trader Feedback: 0
Default

looks good(I mean sounds good,lol)

i'll test this out tonight...
__________________
Tiboric is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-27-2006, 03:25 AM   #22
Mushroom Man
 
Psilocybeing's Avatar
 
Join Date: Sep 2005
Location: UK
Posts: 318
Trader Feedback: 0
Default

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..
Psilocybeing is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-27-2006, 03:48 AM   #23
 
Join Date: Aug 2005
Posts: 39
Trader Feedback: 0
Default

SOunds like a placebo effect to me.
aschmack is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-27-2006, 03:54 AM   #24
Mushroom Man
 
Psilocybeing's Avatar
 
Join Date: Sep 2005
Location: UK
Posts: 318
Trader Feedback: 0
Default

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:
14.1 Hz - Earth Harmonics- accelerated Healing (1min)

10 hz - Centering, sleep spindles, arousal (6min)

7.8Hz- Shumman Resonance, ESP activation (9min)

5.5Hz- Inner guidance, intuition, heat generation (3min)

4.0Hz- Astral Projection/Telepathy/Seduction mindset (10min)

3.5Hz- Wholebeing regeneration, DNA stimulation

Benefits include: Sleep reduction/accelerated learning/ESP enhancement/Telepathy/OOBE

Updates News: After researching some articles by the Monroe Institute and the Association of Lucidity, I added 3 simultaneous harmonics which greatly increases your capacity to Astral Project

WARNING: You may fall asleep rapidly. Do not use while driving

www.XtremeMind.com

Email: Joseph R.Plazo
Download link: http://www.othala.co.uk/pme/PME_2704.rar



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
The first line is a simple description of the preset. The next 8 lines are initialising the voices with a set base frequency and binaural counterpart. If you want a voice to be silent, simply provide 0 for both. The last 5 lines in this preset setup the timing for the first voice(V0). The format for the timing function is as follows(T<voice#0-7> <start time(secs)> <end time(secs)> <base frequency to shift to> <binaural frequency to shift to>). As you can see this preset slowly lowers the main voices binaural beat from 14.1hz down to 3.5hz over a period of 30m, while keeping the base frequency at a steady 300hz.

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..
Psilocybeing is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-27-2006, 03:59 AM   #25
Enter Custom Title
 
Join Date: Feb 2006
Location: National Front Disco
Posts: 13,063
Trader Feedback: 0
Default

wow looks pretty cool!
Moose is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-27-2006, 04:21 AM   #26

Developer
 
Join Date: Oct 2005
Posts: 408
Trader Feedback: 0
Default

Quote:
Originally Posted by Psilocybeing
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.
Are you resetting the sample data to zero when you change frequencies? That will cause pops if the previous sample was not close to zero.
Samstag is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-27-2006, 04:24 AM   #27
Mushroom Man
 
Psilocybeing's Avatar
 
Join Date: Sep 2005
Location: UK
Posts: 318
Trader Feedback: 0
Default

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];
}
The code that is in bold is what I was missing
__________________
[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]
Psilocybeing is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-27-2006, 04:30 AM   #28
 
Devun_06's Avatar
 
Join Date: Feb 2006
Posts: 338
Trader Feedback: 0
Talking

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 googly

Edit* 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..
Devun_06 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-27-2006, 04:45 AM   #29
Mushroom Man
 
Psilocybeing's Avatar
 
Join Date: Sep 2005
Location: UK
Posts: 318
Trader Feedback: 0
Default

Quote:
Originally Posted by aschmack
SOunds like a placebo effect to me.
While it might not be the most effective method of inducing, the theory is sound and to my knowledge is measurable using an EEG, so dig out that high-priced medical equipment everyone!

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..
Psilocybeing is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-27-2006, 04:58 AM   #30
 
Tiboric's Avatar
 
Join Date: Jul 2005
Location: second star to the right...
Posts: 139
Trader Feedback: 0
Default

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..
Tiboric is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
engine , meditation , releaseportable

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 09:56 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us