{"id":1751,"date":"2019-03-20T19:47:01","date_gmt":"2019-03-20T18:47:01","guid":{"rendered":"http:\/\/www.daniel-ritter.de\/blog\/?p=1751"},"modified":"2024-05-21T11:26:09","modified_gmt":"2024-05-21T09:26:09","slug":"create-binaural-beats-on-the-fly-on-the-linux-command-line","status":"publish","type":"post","link":"https:\/\/www.daniel-ritter.de\/blog\/create-binaural-beats-on-the-fly-on-the-linux-command-line\/","title":{"rendered":"Create binaural beats on the fly on the linux command line"},"content":{"rendered":"<p>I was looking for a quick way to generate binaural beats on the fly from the Linux console.<br \/>\nThe &#8222;play&#8220; command from the <a href=\"https:\/\/linux.die.net\/man\/1\/sox\">sox<\/a> package makes things pretty easy.<\/p>\n<p>This is my little wrapper script for &#8222;play&#8220;:<\/p>\n<pre>#!\/usr\/bin\/php\r\n&lt;?\r\n# binaural - wrapper script to create binaural beats on the fly \r\n\r\nif (!$argv[1])\r\n{\r\necho \"Binaural beat generator\\n\";\r\necho \"Usage: binaural basefreq offset length(s)\\n\\n\";\r\nexit;\r\n}\r\n\r\n\r\n$freq2 = $argv[1] + $argv[2];\r\n\r\n$cmd = \"play -n synth $argv[3] sin $argv[1] sin $freq2\";\r\necho $cmd;\r\necho \"\\n\\n\u201d\";\r\npassthru($cmd);\r\n?&gt;\r\n\r\n<\/pre>\n<p>So for example if you want to generate a 5 minute binaural sound for the Schumann resonance (7.8HZ) with a base frequency of 120HZ, you would use:<\/p>\n<pre>binaural 120 7.8 300\r\n<\/pre>\n<p>A very comprehensive guide to the different frequencies can be found here:<\/p>\n<p>https:\/\/free-binaural-beats.com\/frequency-list\/<\/p>\n<p>I wrote a little online tool to create any frequency with or without binaural beats on the fly. It can be found here:<br \/>\n<a href=\"https:\/\/daniel-ritter.de\/binaural\/\">https:\/\/daniel-ritter.de\/binaural\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was looking for a quick way to generate binaural beats on the fly from the Linux console. The &#8222;play&#8220; command from the sox package makes things pretty easy. This is my little wrapper script for &#8222;play&#8220;: #!\/usr\/bin\/php &lt;? # binaural &#8211; wrapper script to create binaural beats on the fly if (!$argv[1]) { echo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1890,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1751","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-diesunddas"],"_links":{"self":[{"href":"https:\/\/www.daniel-ritter.de\/blog\/wp-json\/wp\/v2\/posts\/1751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.daniel-ritter.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.daniel-ritter.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.daniel-ritter.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.daniel-ritter.de\/blog\/wp-json\/wp\/v2\/comments?post=1751"}],"version-history":[{"count":14,"href":"https:\/\/www.daniel-ritter.de\/blog\/wp-json\/wp\/v2\/posts\/1751\/revisions"}],"predecessor-version":[{"id":1977,"href":"https:\/\/www.daniel-ritter.de\/blog\/wp-json\/wp\/v2\/posts\/1751\/revisions\/1977"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.daniel-ritter.de\/blog\/wp-json\/wp\/v2\/media\/1890"}],"wp:attachment":[{"href":"https:\/\/www.daniel-ritter.de\/blog\/wp-json\/wp\/v2\/media?parent=1751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.daniel-ritter.de\/blog\/wp-json\/wp\/v2\/categories?post=1751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.daniel-ritter.de\/blog\/wp-json\/wp\/v2\/tags?post=1751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}