BREATHING TIMER TO IMPROVE BREATHING - OR FOR MEDITATION - Just make a bookmark with it to run it in your browser.
Are you having troubles breathing regularly? Or do you need a breathing timer for meditation?
Here's a free breathing reminder beeper bookmarklet (javascript code) I made for you to gently remind you to breathe with a quiet short repeating mellow buzz sound for each breath! You can set the time between breaths to whatever you want.
To use it, all you need to do is create a new bookmark in your Chrome or Firefox browser and call it beeper or whatever name you like. Paste the code below in at the bottom in the URL box. It runs in your browser and makes very quiet mellow beeps.
Here are the details.
When you make the Chrome of Firefox bookmark, put in the URL box the javascript code below.
Now you are ready to use it.
Open a new tab and click the bookmark you made to run it in that new tab.
It will ask you how many seconds between beeps. The default is 10 seconds, which will create 6 breaths per minute, which is supposed to be best for optimum relaxation. Or set it to 5 seconds for 12 breaths per minute. Or breath IN on one beep and out on the other if you prefer 2 beeps per breath.
The gentle beeper will run as long as the browser tab is present.
When you close the browser tab, it will tell you a message that says it will end the reminder and ask for your confirmation.
Below is the bookmarklet javascript to paste into URL box for the bookmark you create. After you copy/paste the javascript below in the URL box of your bookmark, then make sure the bookmark URL has text "javascript:" at the beginning. Then click it to run the breathing timer as explained above.
The code is all totally harmless as you can see. It just creates a timer and a beeper oscillator. It also warns you if you close the tab to confirm that is what you really want to do. You can use the beeper for other purposes too. Let me know if any questions or how it worked out for you.
javascript:{const b=new AudioContext();function beep(){const v=b.createOscillator(); u=b.createGain(); v.connect(u); v.frequency.value=40; v.type="square"; u.connect(b.destination); u.gain.value=(1*0.02); v.start(b.currentTime); v.stop(b.currentTime+100*0.001)}document.title = "TIMER TAB RUNNING"; window.onbeforeunload = confirmExit; function confirmExit() {return "Closing or Refreshing this TIMER TAB will stop the bookmarklet.\n\nHit [STAY ON THIS PAGE]\n\nor\n\nhit [DONT RELOAD] if applicable";}; var secondsDelay = prompt("ENTER BREATH REMINDER IN SECONDS: ", "10"); setInterval(function() {beep();}, secondsDelay * 1000);;}
@7motivation
Sounds cool.. I will have to take a look. I've been meaning and wanting to practice more meditation. I just never seem to have much time to do so.
Thank you for another great addition to this community!
@PoliteOcean
Thanks Ocean. I really like the tool.
I just made it for someone who was having forgetful breathing problems like I have sometimes. Like forgetting to inhale while concentrating deeply on a problem for example.
I wouldn't have thought to make to tool if if they hadn't asked.
After I made the tool for them, I tried it and found it is great for breathing training. My breath rate automatically becomes "entrained" or synchronized to the quiet beeps over time. It's also somewhat relaxing to hear the beeps.
6 breaths per minute might be to slow for many people, so they can set the rate higher.
But there is a lot of research that shows 6 breaths per minute has very good health benefits. I can provide links.
6 breaths per minute is normal and comfortable for me because I have a slow heartrate normally because I'm in pretty good shape.
But the benefit of the beeper is it helps me have regular breathing which is supposed to be healthier.
Plus it helps me remember to breath in especially when I'm under stress or concentrating heavily on something.
@PoliteOcean
For meditation, I find the Tai Chi videos great because they are really a form of moving meditation that involves breathing and relaxing and stretching
and one can do it either sitting or standing
Sitting version
Standing version
It feels very natural to do so it's very easy to learn.
It's much easier than learning normal meditation.
And it feels really really good to do.
After you learn it, you can do it without the videos.
The moves all have simple fun names that make it even more enjoyable and effective.