I´ve tried (and works) to do:
Code: Select all
#sbagen -o myfile
What am I supposed to do with that file?
Perhaps coding it to mp3 with ffmpeg?
Any advise?
Thanks in advance.
Galbi.
Code: Select all
#sbagen -o myfile
try: sbagen -Wo out.wav myfile.sbgGalbi wrote:Since my bed is far away from the Puppy Box, I´d like to save the output to a mp3 file. Is that possible?
I´ve tried (and works) to do:and generates a raw file (a huge one) with the sound redirected to the file.Code: Select all
#sbagen -o myfile
What am I supposed to do with that file?
Perhaps coding it to mp3 with ffmpeg?
Any advise?
Thanks in advance.
Galbi.
Code: Select all
#!/bin/sh
for f in *.sbg; do
n=`basename $f .sbg`;
echo "converting brain wave: $f => $n.mp3";
sbagen -L 00:10:00 -o $n.wav $f
lame -r -x -m d $n.wav $n.mp3
rm $n.wav ; ls -l $n.mp3 ; echo
done
vovchik wrote:Dear 666philb,
You need a very recent gtkdialog linked as gtkdialog4. Here is a pet that might work for you (if you have a recent puppy): http://distro.ibiblio.org/puppylinux/pe ... i486-s.pet. It should also make the symlink.
You also need 01micko's recent yaf-splash replacement (gtkdialog-splash), which needs to be symlinked to yaf-splash. The installer will do this for you, most probably. The file is here: http://distro.ibiblio.org/puppylinux/pe ... ash-r3.pet.
That's about it.
With kind regards,
vovchik
Code: Select all
#!/bin/sh
## Plays sbg by CLI with timer or toggles from ROX icon.
## Edit file location and desired volume
## USEAGE: delta [minutes]
## set directory of file and desired PCM volume
SBG="/usr/local/zensound/data/snd/ts-brain-delta.sbg"
VOL="2"
[ "$1" ] && export var="$1"
STATE="$(pidof sbagen)"
## Store old PCM settings
if [ -f /tmp/pcm ]; then
OLD="$(cat /tmp/pcm)"
else
OLD="$(amixer scontents | sed -n '/PCM/,/Simple/p' | grep -m1 "\[on" |awk '{print $4}')"
echo "$OLD" >/tmp/pcm
fi
function stop() {
kill -9 `pidof sbagen` 2>/dev/null
amixer -q set 'PCM' "$OLD"
}
export -f stop
function start() {
amixer -q set 'PCM' "$VOL"
sbagen -Q "$SBG" &
}
export -f start
function timer() {
i="0"
while ((i < ${tm})); do
sleep 1
i="$((i + 1 ))"
done
stop
}
export -f timer
tm="$((var*60))" ## convert minutes into seconds
echo "time: ${tm} seconds"
if [ $STATE ]; then
stop
else
start
[ "$1" ] && timer
fi
I need all the help I can get . . .Have fun and, perhaps, find enlightenment...
Hallo vovchick! I am about to re-enter an intensive study period and thought I might revisit the possibility of using binaural beats to assist my grey matter. I found your pet in Puppus Dogfellow's repository http://www.murga-linux.com/puppy/viewto ... 760#730760, and found to my delight that it worked OOTB in TahrPup64 with the 32-bit compatibility pet added. Cheers!vovchik wrote: I am working on version 0.2c, which will allow for user-supplied sequences... vovchik