Page 1 of 2

Soxgui-0.9 - a gtkdialog gui for several sox commands

Posted: Tue 26 Dec 2006, 05:14
by plinej
I wrote another gui, this time for sox. This gui will convert audio files between supported sox audio formats, mix 2 audio files, merge multiple audio files, Resample, mono/stereo conversion, & adjust amplitude.

0.2
removed the soxmix gui since Puppy doesn't have soxmix. Combined the resample/stereo gui with the audio conversion gui. If you just want to resample or convert to stereo/mono but keep the same type of file just select the output type the same as the input from the drop down boxes. Your new file will be named new-(input file name). I added some more audio formats and included ffmpeg in the scripts for the new formats.

0.3
Put the soxmix gui back in but the button will not be displayed if soxmix isn't in your $PATH. Added a gui for the 'rec' function in the sox package.

0.4
Added a gui for the sox play functions and gave the main menu a facelift

0.5
Added a gui for various sound effect options

0.6
Added a gui for applying fade in or outs to selected wav files. Added mp3 to the merge gui as long as mp3wrap is found in your $PATH. Removed the gui for audio conversion and instead made it a link to pawdiconverter since it is better.

0.7
Revised scripts to work with the new gtkdialog3 executable that will be in Puppy versions greater than 2.14. Also found a few bugs that I've fixed.
The new gtkdialog3 is here:
ftp://ibiblio.org/pub/linux/distributio ... 0.7.18.pet

0.7.1
forgot to include an icon so I repackaged

0.8
updated the icons to use the stock gtk icons and made program install to /usr/local/apps/ instead of /usr/local/

0.9
fixed a couple of bugs

If you want to use all soxgui functions you'll need to install:

pawdioconverter (another gtkdialog gui to convert between audio formats):
http://www.murga-linux.com/puppy/viewto ... 07&t=15363

mp3wrap (small cli tool to merge mp3 files):
http://www.murga-linux.com/puppy/viewto ... 36&t=15496

Posted: Tue 26 Dec 2006, 05:22
by plinej
Here's a pic of all the gui's

Posted: Sat 30 Dec 2006, 03:24
by plinej
updated to 0.2

this might be a stupid question

Posted: Tue 09 Jan 2007, 08:18
by mmmkay
thanks

Posted: Tue 09 Jan 2007, 11:38
by Lobster
plinej soxgui is in 2.13 and very good too. Will you be adding the sound effect options?

It would be great to add a facility to record sound

I have been using puppys built in "wavrec"
and "wavplay" in my dogbone program which I use for recording audio "pawedcasts" in Puppy
but this is not satisfacory for general usage as the recordings have a set time.

Is there any small record/playback program in Linux that you are aware of?

Is xwave one potential?

:)

Posted: Tue 09 Jan 2007, 14:09
by plinej
mmmkay,

Like lobster said Soxgui is in Puppy 2.13 but if you're running an older version just download the dotpup in the first message of this thread.

lobster,

I may add some of the sound effect options to the gui. Anything in particular you use? I can probably add wavrec and wavplay to the gui too, although I've never used either of them.

Posted: Tue 09 Jan 2007, 15:32
by Lobster
I think echo is usually a nice effect :)

This is from dogbone

Code: Select all

#!/bin/sh

DATETIME=$(date +%b%d-%Y-%H:%M)
WAVF=messages/$DATETIME.wav
MSGF=messages/$DATETIME.mp3

[ -z $1 ] && exit  # in case someone clicks this

./timer.pb $1 &
# NOTE: i changed -s 16100 to -s 16000 (wavegain requires standard bitrates)
wavrec -s 16000 -M -t $1 -b 16 $WAVF
./wavegain -y $WAVF &
wavplay $WAVF
lame -a -h -b 24 --nspsytune --resample 22 --lowpass 7 $WAVF $MSGF
rm -f $WAVF
exec ./dbone16

Code: Select all

wavrec -s 16000 -M -t $1 -b 16 $WAVF
this is the wav rec with $1 = a time variable
and $WAVF = name of file to save to

I think if you just replace $1 with 15 it records for 15 sec
this is one of its limitations . . . you have to use a set time

this will play a wav file (where $WAVF is the file to play)

Code: Select all

wavplay $WAVF
Hope that helps - the parameters for the two programs are in Puppy help under wavplay

Posted: Tue 09 Jan 2007, 15:54
by plinej
The sox package comes with the rec executable. There's no time restriction on it.

rec --help

here's an example:
rec -s w -r 44100 -c 2 test.wav

Posted: Tue 09 Jan 2007, 18:31
by Lobster
I removed the stereo and two channels (got garbled sound)
this worked

Code: Select all

 rec -r 44100 test.wav

Posted: Tue 09 Jan 2007, 18:50
by plinej
Okay, I'll do some testing with it soon and see what I can come up with.

Posted: Tue 09 Jan 2007, 20:27
by plinej
--edit--

disregard

Posted: Wed 17 Jan 2007, 19:31
by plinej
Alright, I updated to 0.3 which includes a record gui utilizing the 'rec' function in the sox package. I have no microphone so I can't test it. It does appear to work and the files are created as specified and ffmpeg says they are valid files with the attributes I chose from within the gui. I didn't update the help section since over the next few days I'll probably be doing some more work trying to incorporate some of the sox sound effects into the gui. Just figured I'd throw this out there so you guys with microphones can test it out.

Posted: Wed 17 Jan 2007, 23:42
by plinej
I just added a gui to utilize the play function of sox. I'll wait until I add some more functions before I update to 0.4. This gui will play your selected file or it will play a full directory of selected file type (from sox supported formats drop down box).

recording function works

Posted: Thu 18 Jan 2007, 05:15
by Lobster
:) great - the recording function works (very nicely done - simple, obvious, just works).

Tested, wav, au and ogg.

You can use the old trick of using headphones plugged into the mic socket if you have no mic. The sound will not be great but it works . . .

Posted: Thu 18 Jan 2007, 23:01
by plinej
0.4 is up. I haven't had time to add any of the sound effect options yet. I added the aforementioned play gui to play your sox supported audio formats (wav, ogg, mp3, & many more). I also gave the menu gui a facelift ala Nathan's Grafburn program.

Sox it to 'em

Posted: Fri 19 Jan 2007, 02:04
by Lobster
looking good :)
Hope we find this in Puppy 2.14

tester and feedback required - anyone?

Posted: Sat 20 Jan 2007, 00:32
by Nathan F
Looks good. Heck, looks familiar to :)

Seriously, thank you for all the work you have been doing creating applications for Puppy. I'm really happy with most of them, and this one is no exception.

Nathan

Posted: Fri 26 Jan 2007, 03:55
by plinej
Updated to 0.5

I added a gui for sound effects:

chorus
echo
flange
phase
reverb
reverse
vibro-champ

There are more to add but I think this a good start for now.

Posted: Wed 21 Feb 2007, 23:34
by plinej
0.6 is now posted

Posted: Wed 28 Feb 2007, 04:44
by plinej
0.7 is now up