GiorgioRegni / Binaural-Beats

Brainwaves entrainment, auto hypnosis & lucid dreaming with an Android phone
http://binauralbeatstherapy.wordpress.com/
GNU General Public License v3.0
191 stars 58 forks source link

Binaural beat voice fade-in fade-out options #3

Closed thegreenman closed 7 years ago

thegreenman commented 13 years ago

need the option to have each binaural fade in over xseconds instead of starting at full volume. fade out ability would also be a great addition.

GiorgioRegni commented 13 years ago

Added to the next milestone What about doing a fade in and out for all presets, not as an option? It seems that we would want that for all presets.

thegreenman commented 13 years ago

i think you will still need the current way as well. in cases where you slide to a frequency then maintain the same frequency over x minutes.

see below:

p.addPeriod(new Period(15, SoundLoop.WHITE_NOISE, 0.7f, null). addVoice(new BinauralBeatVoice(10f, 8f, 0.6f)). setV(new HypnoFlash()) ). p.addPeriod(new Period(240, SoundLoop.WHITE_NOISE, 0.7f, null). addVoice(new BinauralBeatVoice(8f, 8f, 0.6f)). setV(new HypnoFlash())

If this were to fade out at 8hz then fade back in at 8hz it would ruin the continuity of the entrainment imo. I think you want independent select-able switches to begin/end abruptly or fade. Something that would look like this pseudocode :

addVoice(new BinauralBeatVoice(8f, 8f, 0.6f,)Beginning=VolumeFull,End=FadeOut,10Seconds).

What do you think?