Soxgui-0.9 - a gtkdialog gui for several sox commands

Stuff that has yet to be sorted into a category.
Message
Author
plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

Soxgui-0.9 - a gtkdialog gui for several sox commands

#1 Post 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
Attachments
Soxgui-0.9.pet
(6.86 KiB) Downloaded 2343 times
Last edited by plinej on Tue 06 Mar 2007, 15:40, edited 15 times in total.

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#2 Post by plinej »

Here's a pic of all the gui's

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#3 Post by plinej »

updated to 0.2

mmmkay
Posts: 22
Joined: Fri 15 Dec 2006, 20:26

this might be a stupid question

#4 Post by mmmkay »

thanks

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#5 Post 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?

:)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#6 Post 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.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#7 Post 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
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#8 Post 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

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#9 Post by Lobster »

I removed the stereo and two channels (got garbled sound)
this worked

Code: Select all

 rec -r 44100 test.wav
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#10 Post by plinej »

Okay, I'll do some testing with it soon and see what I can come up with.

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#11 Post by plinej »

--edit--

disregard
Last edited by plinej on Wed 17 Jan 2007, 19:32, edited 1 time in total.

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#12 Post 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.

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#13 Post 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).

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

recording function works

#14 Post 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 . . .
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#15 Post 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.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

Sox it to 'em

#16 Post by Lobster »

looking good :)
Hope we find this in Puppy 2.14

tester and feedback required - anyone?
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Nathan F
Posts: 1764
Joined: Wed 08 Jun 2005, 14:45
Location: Wadsworth, OH (occasionally home)
Contact:

#17 Post 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
Bring on the locusts ...

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#18 Post 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.

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#19 Post by plinej »

0.6 is now posted

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#20 Post by plinej »

0.7 is now up

Post Reply