I have now removed the alpha status of all of the 0.5.x versions below. However, since no changes to the actual
code have occurred, I have not uploaded any new versions to reflect the non-alpha status change, so the download will
still say alpha. Just ignore the alpha title on these ones!
For much the same functionality as the C/gtkdialog3 0.5.0 version, but using bash and gtkdialog3 instead, please look
down the thread a bit to:
http://www.murga-linux.com/puppy/viewto ... 925#145925
The bash/gtkdialog3 version includes the 2 second delay to STOP but no Amplitude boost.
----------------------------------------------------------
C/gtkdialog3 version Compiled and tested on Puppy Linux version 2.17.1; probably works on some
others. Let me know if it works on Puppy 3
Worked well on my old laptop with Puppy sound mixer settings:
Master Vol=50; pcm=100; input gain=50
If you increase the input gain too much you may get extra distortion.
/*********************************************/
// Program: wreckedleg (GUI) Version: 0.5.1.c.pet
// Creation date (YMD): 2007/10/06
// (C) Copyright 2007 William McEwan (mcewanw A t Hot mail Dot com)
// wreckedleg (GUI) is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
// License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
/**********************************************/
// [W]reckedleg is the GUI for a "Voice Memo Recorder" that uses various underlying programs to directly record
// audio files of virtually any duration in a variety of compressed or uncompressed formats (though this
// simple 0.5.x version is designed for mp3 outputs only). In this version the recording duration is limited only by the
// available storage space.
// The program title "wreckedleg" is a play on the words "rec" and "lame", the titles of two of the underlying
// programs used by the original version of wreckedleg to provide the audio recorder's basic functionality.
// By default, the program provides one-click recording, automatically storing the recording, with the default filename
// out.mp3, in the default directory /root/my-documents (the next version will include an automatic datestamp as part of
// the default filename).
//
// Revision history:
// 0.5.0alpha1.c.pet Original released version.
// 0.5.1alpha1.c.pet Added 2 sec sleep before STOP; Scaled rec amplitude -v 64
/***************************************************************************/
// Please note and accept this agreement prior to any use of this program
// for any purpose whatsoever. Any use is entirely at your own risk. This
// version of the program has so far worked fine to my own satisfaction but I
// cannot guarantee that it will not damage your system.
// WARNING: Note, in particular, that since Puppy Linux runs its programs as
// root user it is possible for this utility to overwrite existing system
// files if you are not careful with your choice of output filename.
// As a sensible caution, I thus advise you to make backups of your system prior to any use of the utility.
// That said, I hope you will find this program both fun and useful!
/***************************************************************************/
This dotpet automatically adds the following files to your system:
/usr/local/apps/wreckedleg/wreckedleg
/usr/local/share/doc/wreckedleg/
/usr/local/share/doc/wreckedleg/wreckedleg-0.5.1alpha1.c_readme.txt
/usr/local/bin/wreckedleg
/root/.wreckedleg/
It also creates an icon (mini-sound.xpm) and JWM menu item in JWM > Multimedia > WreckedLeg Sound Recorder, storing this desktop info in /usr/share/applications
The utility registers with PETget so that you can easily uninstall it if you wish.
-------------------------------------------------------------------------------------
Though based on experiments involving the earlier rec2lamegui, wreckedleg has been written from scratch.
Work is currently well underway on a more sophisticated version of wreckedleg, though the overall simplicity and small size of the existing interface has been maintained as far as possible in that later version.
Before operating wreckedleg, you should, of course, check that your sound source (e.g. a microphone) is working correctly beforehand. Personally, I usually run JWM > Multimedia > Puppy sound mixer, in order to check that the settings are correct, before running any audio programs.
Remember, if you "break" it, no problem, you can uninstall it and reinstall it again via PETget. However, usage of this utility is entirely at your own risk!
The program supplied in the download link is pre-compiled so you just need to install the dotpet package and start using it (at least on Puppy 2.17). However, if you want to compile it yourself or simply want to examine how it was coded, here is the program source code:
Code: Select all
#include <stdio.h>
main(){
chdir("/root/my-documents");
putenv(
"\
MAIN_DIALOG=\
<window title=\"wreckedleg-0.5.1 This early alpha version was created with C and gtkdialog3 \"icon-name=\"gtk-media-record\">\
<hbox>\
<frame Lock:>\
<checkbox>\
<label>\"\" </label>\
<variable>LOCKCHOICE</variable>\
<action>if true disable:DIRFILE</action>\
<action>if false enable:DIRFILE</action>\
</checkbox>\
</frame>\
<frame output directory and filename >\
<entry>\
<default>\"/root/my-documents/out.mp3\"</default>\
<variable>DIRFILE</variable>\
</entry>\
</frame>\
<frame dir>\
<button>\
<input file stock=\"gtk-open\"></input>\
<variable>PATHTOFILE</variable>\
<action type=\"fileselect\">DIRFILE</action>\
</button>\
</frame>\
<button>\
<input file stock=\"gtk-media-record\"></input>\
<label>REC</label>\
<action>\"rec -c 1 -t raw -f sw -r 44100 -v 64 - | lame -r -x -s 44.1 -m m -h --abr 8 --nspsytune --lowpass 7 - $DIRFILE &\"</action>\
</button>\
<button>\
<input file stock=\"gtk-media-stop\"></input>\
<label>STOP</label>\
<action>sleep 2;killall lame</action>\
</button>\
<button>\
<input file stock=\"gtk-quit\"></input>\
<label>QUIT</label>\
<action>killall lame</action>\
<action type=\"exit\">EXIT-QUIT</action>\
</button>\
</hbox>\
</window>\
"
);
system("gtkdialog3 --program=MAIN_DIALOG --center");
exit (0);
}
9fa04df996524933594ffe44e758bcd3 wreckedleg-0.5.1alpha1_c.pet
(but no longer actually an alpha: considered stable)