Tag Archives: sbagen

[HOWTO] Install SBaGen in Fedora

I am running Fedora 14 32 bit (and now Fedora 15 64 bit for which I have updated the article) and I wanted to install SBaGen for some binaural entertainment. So, here is how I did it:

Download

cd
mkdir sbagen
cd sbagen
wget http://uazu.net/sbagen/sbagen-1.4.4.tgz
tar xzvf sbagen-1.4.4.tgz
cd sbagen-1.4.4

Install dependencies

sudo yum install libmad-devel libvorbis-devel gcc

Run Build Script

For 32 bit:

./mk

For 64 bit:

wget "https://launchpadlibrarian.net/35151187/libvorbisidec_1.0.2+svn16259.orig.tar.gz"
tar xzvf "libvorbisidec_1.0.2+svn16259.orig.tar.gz"
cd "libvorbisidec-1.0.2+svn16259"
./autogen.sh
make
sudo make install
sudo ln -s /usr/local/lib/libvorbisidec.so.1 /usr/lib64/libvorbisidec.so.1
cd ..
cp /usr/lib64/libvorbisidec.so.1 libs/linux-libvorbisidec.a
cp /usr/lib64/libmad.so libs/linux-libmad.a
./mk

That should build a sbagen executable in the same directory. Run the following to verify:

./sbagen

It should output something like this:

SBaGen – Sequenced Binaural Beat Generator, version 1.4.4
Copyright (c) 1999-2007 Jim Peters, http://uazu.net/, all rights
reserved, released under the GNU GPL v2. See file COPYING.

Usage: sbagen [options] seq-file …
sbagen [options] -i tone-specs …
sbagen [options] -p pre-programmed-sequence-specs …

For full usage help, type ‘sbagen -h’. For latest version see
http://uazu.net/sbagen/ or http://sbagen.sf.net/

Now, copy it to /usr/bin/ and thats all.

sudo cp sbagen /usr/bin/

Now, you must be able to run it. Try running an example:

sbagen examples/basics/prog-chakras-1.sbg

If you get something along the lines of:

Can’t open /dev/dsp, errno X

You will need to prefix the command by padsp like this:

padsp sbagen examples/basics/prog-chakras-1.sbg

Hope this helps.

[SOLVED] Can’t open /dev/dsp in Ubuntu 10.10 Maverick Meerkat and Lucid Lynx 10.04

I recently installed a program called SBaGen which uses device /dev/dsp to output audio. However, the OSS (Open Sound System) device is not available anymore in Lucid and Maverick (maybe it doesn’t work with older versions, but I’m not sure), not even with OSS emulation with alsa. The snd-pcm-oss module does not load even when oss-compat and alsa-oss have been installed. It is seen to be blacklisted in /etc/modprobe.d/alsa-base.conf.

However, pulseaudio also supports OSS emulation with an app called padsp. So, for example if you want to launch

sbagen examples/basics/prog-chakras-1.sbg

you should launch

padsp sbagen examples/basics/prog-chakras-1.sbg

This way, you will be able to run OSS based sound apps without need for OSS.

[HOWTO] Install sbagen in Ubuntu 10.04 Lucid Lynx and 10.10 Maverick Meerkat

This guide is outdated. For installing to newer version of sbagen in newer Ubuntu versions, follow instructions here.

SBaGen is a Binaural beat generator. For more info, visit the official SBaGen Website.

It is available for Linux, Windows and Mac. For Ubuntu, it is not available in any official repos so we need to compile it from source. Here is how you can do that.

Open Synaptic Package Manager and enable universe repository if you already haven’t done so. To do so, navigate to Settings > Repositories and check Community-maintained Open Source software (universe)
Now, press Reload in Synaptic Toolbar to reload the package lists.

Now, quit Synaptic Package Manager and open up terminal. First, you will need some packages to start building our app. So lets get those.

sudo apt-get install libvorbisidec-dev libmad0-dev

After installing required development packages, lets create a directory named sbagen where you can work with sbagen and change to it.

mkdir sbagen
cd sbagen

Lets download sbagen-1.4.4.tgz from sbagen website:

wget http://uazu.net/sbagen/sbagen-1.4.4.tgz 

Extract it

tar -xvzf sbagen-1.4.4.tgz

and change to that directory

cd sbagen-1.4.4/

Now, lets copy the required files to libs directory

cp /usr/lib/libvorbisidec.a libs/linux-libvorbisidec.a 
cp /usr/lib/libmad.a libs/linux-libmad.a 

Now, to build it, you need to run the included script called mk. To do so, just execute:

./mk

Now if you see no errors, the code must be compiled by now. You should be able to run it by doing a:

./sbagen

If you see an output like the following:

SBaGen - Sequenced Binaural Beat Generator, version 1.4.4
Copyright (c) 1999-2007 Jim Peters, http://uazu.net/, all rights 
  reserved, released under the GNU GPL v2.  See file COPYING.

Usage: sbagen [options] seq-file ...
       sbagen [options] -i tone-specs ...
       sbagen [options] -p pre-programmed-sequence-specs ...

For full usage help, type 'sbagen -h'.  For latest version see
http://uazu.net/sbagen/ or http://sbagen.sf.net/

this means sbagen has been compiled. To be able to use it conveniently in the future, you just need to move it to some bin directory. Lets move it to /usr/local/bin

sudo cp sbagen /usr/local/bin/ 

Now, you should be able to run it from any path by just invoking:

sbagen

If you encounter any errors in any steps, please post the step and the corresponding error message in the comment box below. I will try to address the problem the best I can.

Now, after it is installed, you may want to try out an example file:

sbagen examples/basics/prog-chakras-1.sbg 

but it will give you the following error:

Can't open /dev/dsp, errno X

Please follow my other post to overcome this problem.

drg2sbg

I-doser is a brainwave synchronization entertainment software which uses binural brainwave technology. Depending on the DRG doses, it may give meditative, hallucinative or other experience.

I-doser uses proprietary DRG file format which can be played in I-doser. However, I-doser uses open source program called sbagen for playing SBG files. DRG files can be converted into SBG files using the following tool so that they can be played with Sbagen.

Select DRG File:

to upload the file and start conversion!

For comments and suggestions, click here to go to the blog post.

I-doser (DRG) to Sbagen (SBG) Online Converter

[ad#ad-1] I have created a small online DRG to SBG converter.

Here it is:

http://www.khattam.info/drg2sbg/

If you need a full tutorial on how to use it or how to convert DRG to WAV and MP3, please see this old post.

http://www.khattam.info/2009/04/21/how-to-convert-i-doser-drg-files-to-sbg-then-to-wav-mp3-or-any-other-audio-format-an-easy-step-by-step-tutorial/

Hope it is helpful