Programming :: Bash: Integrate The Area Of A Sound?
Jan 21, 2011
I would like to finish some work on some audio sound treatments... based on user voice.
I have an issue with how to integrate the area of a sound.
find in the jpg how to bash program would work. someone code the program in Perl or Python or Bash ?
The idea is to put always the maximum peak to 1000 or 100, so that we have an arbitrary unit (based on the max value)
Ref: [URL]
View 4 Replies
ADVERTISEMENT
Jan 12, 2010
in bash scripting...say I want to take the input from a user via a question...I would do this:
Quote:
#!/bin/bash
echo "How large do you want this partition to be in GB (enter only the number)?" read PART_SIZE echo "You want your partition to be $PART_SIZE GB" But I don't want to echo it back to the screen, I want to add it to the content of /etc/fstab. I have been mucking around with sed to find the tmpfs partition in /etc/fstab and add the partition size attribute (this is to use the onboard RAM as a volatile partition)...but am not having any luck...
The portion of /etc/fstab that uses /dev/shm for the tmpfs partition is:
tmpfs /dev/shm tmpfs defaults 0 0
So, if a user says "24" GB to the answer (from above), how do I get it to automatically add that value to the tmpfs partition line in /etc/fstab? So it would look like:
tmpfs /dev/shm tmpfs size=24g,defaults 0 0
I understand that I would also have to come up with a way to put "size=XXg", which I could do with a copied over generic file before this action...then the script would have to find "XX" and replace it with the user's figure...
View 7 Replies
View Related
Aug 19, 2010
I just create a simple c++ program on linux is there a way to intergrate linux command such as ls, du, df and etc on my c++ program?
View 1 Replies
View Related
Dec 3, 2010
integrate a macro from MS Word to Open Office? It is a script I need for music. I cannot upload the file here nor give you the link, because I'm not let.
View 9 Replies
View Related
Mar 12, 2010
[URL]
GTK library to integrate the cube and other 3D window geometry?
The code and the binary are both there.
View 6 Replies
View Related
Feb 25, 2011
Is Root's profile broken? No sound, stuff missing from the notification tray... it happens in most installations.
View 3 Replies
View Related
Nov 20, 2010
Fresh install Ububtu 10.10 x64.
User1: Notification area shows network icon but no sound icon
User2: Notification area shows sound icon but no network icon
Removing the Notification area from panel and add it back doesn't solve the problem.Is there any settings to tell what to put in the notification area?
View 1 Replies
View Related
Feb 1, 2010
I need to make an image in drawing area move. I have a GdkPixmap which stores image of the drawing area. How can i copy a rectangle part inside GdkPixmap to other coordinates?
View 1 Replies
View Related
Feb 4, 2011
I would like to know how do I print the line # in a script. My requirement is, I have a script which is about ~5000 lines long. If there are any errors happen I just exit. And I would like to add the line # of the script where the error happened.
View 3 Replies
View Related
Jan 24, 2010
simple bash code:
Code:
#!/bin/bash
trap "echo 'you got me'" SIGINT SIGTERM # to trap ctrl+c
echo "Press ctrl+c during 5 sec loop"
for ((i=0;i<5;i++)); do
[Code]...
How come code behaves normally and stops when ctrl+c signal is caught and resumes, but after I use at least one timeout read in the code it looks like, if signal is caught again it doesn't pause the execution but skips the loop. If you remove -t (timeout) option from the read, both loops look the same!
View 10 Replies
View Related
Nov 26, 2008
I have a config file that contains:
my.config:
Code:
Now in my bash script, I want to get the output /home/user instead of $HOME once read. So far, I have managed to get the $HOME variable but I can't get it to echo the variable. All I get is the output $HOME.
Here is my parse_cmd script:
Code:
View 3 Replies
View Related
Jul 25, 2011
I have written quite a few separate bash & scripts and php scripts that up to now I have run from cron jobs. However I have to estimate how long each takes to run, before running the next and so it probably takes much longer than necessary to run them all. They have to run in order.
Now there are so many I am thinking it would be better to have a master bash script that would run one after the other, but I am not sure how to get the master script to wait before starting to run the next script. Is this possible and is there a command that will make the script wait between bash and php scripts , for them to finish, before running the next?
View 5 Replies
View Related
Jan 9, 2010
I would like to get the filename (without extension) and the extension separately. The best solution I found so far is:
Let FILE="thefilenameofsomefilesfor_instance.txt"
Code:
NAME=`echo "$FILE" | cut -d'.' -f1`
EXTENSION=`echo "$FILE" | cut -d'.' -f2`
I think it would be better to count the len and remove 3 chars to right to get the extension, but it can be macintosh filenames with have 4 chars for extensions.
View 5 Replies
View Related
Feb 21, 2011
if i attach a shared memory to my process whch part of the address space it will add(like stack, heap, data, code...).
View 3 Replies
View Related
Mar 31, 2011
I need to rename the resulted searched files from a loopI have the following code:
find . -name DOC* | while read i
do
find $i -type f -name '*.txt'
done
basically, I am searching for all txt files inside any folder starting with DOC name.this code is working fine with me.I need to rename those .txt files to .txtOLDOS: Ubuntu 10.4Bash shell
View 10 Replies
View Related
Jan 29, 2011
I am trying to write a bash script that sources another bash script. Essentially, I need a few lines to check to see if a certain variable is set. If not, I set it manually, and then source a scripts with that variable in the path. I wrote a test script to try it, but for some reason the last line does not work. Here is what I wrote:
#!/bin/sh
source ~setupdir/setup.shrc #just a test, this line works
echo ${#SETUP} # prints 0 if setup is not set, which it isn't
if [ ${#SETUP} -eq 0 ]
then
SETUP="~setupdir"
fi
echo $SETUP # prints ~setupdir
[Code]...
View 5 Replies
View Related
Feb 2, 2011
I wanted to stream audio and save it into a file which I can then listen to at a later date.
Ive found a source that provides a m3u file. Example : [URL]
Is there anyway which I can pipe / save this audio stream into another file using just a standard bash shell.
View 3 Replies
View Related
Jul 13, 2011
i'm in the process of learing C++. currently i'm creating shell scripts to get things done. i'm just curious how, as a programmer using C++ you would get a similar job done.as an example i have a script that takes the contents of files, pipes it to some sed and awk commands, which is piped to create a new file. that file is then imported into a mysql database.if you were going to do this in C++, would you call the sed/awk programs to modify the file, or can it be done within the program itself? i'm probably jumping the gun here because i've just started learing about pointers so this is above my ability
View 12 Replies
View Related
May 11, 2010
Does anyone knows anyway to integrate Sunbird with Ubuntu 10.04? i'm not looking for integration of Sunbird with Thunderbird. that's accomplished with Lightning... What i for is something like an alert when i have an event or even integration with the time/calendar Ubuntu standard application.
other thing is: I installed Sunbird well not realy it's a standalone How can i add it the lists of known applications? like when i type Firefox in terminal Firefox pops up.
View 2 Replies
View Related
May 31, 2010
I'm running Ubuntu 10.04.I installed KDE 4.4 and removed Gnome.I want Firefox to integrate properly in KDE.I installed this Firefox themeand followed the instructions at the bottom of that page to get a KDE style file picker.I also installed the Plasma Notify extension.My problem is that if I download a file and right-click>open containing folder in Firefox's download window the containing folder does not appear, but instead a window appears asking me to choose an applicationWhen I was using Firefox with Gnome doing this opened Nautilus with the directory containing the downloaded file.I tried to fix this by choosing Dolphin in the Choose Application window
View 4 Replies
View Related
Jan 26, 2010
Is there any way to integrate LDAP with DNS? What I mean is if there is any way to ask an LDAP server with the standard LDAP API and the LDAP server reverts to a DNS server if the requested information is not present in the database.
View 2 Replies
View Related
Nov 20, 2009
how can I integrate a kde application in gnome? I mean like this[URL]...
View 1 Replies
View Related
May 2, 2010
As you all know, one of the new features in 10.04 is the mail icon in the top right corner, through which you can access Empathy, Gwibber and Evolution. Is there a way to integrate Thunderbird into this menu, so that it can be accessed quicker and that there is a notification coming up when a new mail is received like it is the case with evolution?
View 9 Replies
View Related
May 14, 2010
i've got prozilla installed on my ubuntu 64 bit. then i installed flashgot. i tried to integrate them but prozilla isn't on the list.
View 1 Replies
View Related
Dec 26, 2010
OS: Ubuntu 7.04 (before you tell me to upgrade to a newer release, my computer does not support any later release- If I cannot learn on 7.04, I cannot learn the same on a newer release)Computer: P3 800mz, ram 512mb My firefox browser upgraded itself (of course I did agree when I was told by it that I should upgrade).The problem is that I have to install JRE as there are no graphics available. It has to be a manual install.I downloaded JRE6u23 (that is what it says when mouse hovers over it) and proceeded to fix or integrate it with firefox or the os (whichever way it can be integrated) As instructed by the jre site, I gave the command 'chmod'; the result is below:
yashpal@yashpal-desktop:~$ sudo su
Password:
root@yashpal-desktop:/home/yashpal# chmod a+x jre-6u23-linuxi586.bin
chmod: cannot access `jre-6u23-linuxi586.bin': No such file or directory
[code]......
View 2 Replies
View Related
Jan 28, 2011
I have a relatively new laptop that is too dumb to recognize a usb flash drive in the bios. So I cannot boot from it by the bios. I have a Debian install on that laptop with grub 2. So I figure, grub 2 should be powerful enough to have it's own drivers for usb storage so it can directly access the usb drive without having to get help from the bios. How is this done?
How can I integrate usb support into grub 2? Is there a module I can load? I have an ubuntu on the memorystick, so it has it's own grub bootloader, so I would probably do a chainboot if I am not mistaken. Or does anybody know of a initrd that will give control to another bootloader on a device? Initrd should surely have all support for hardware.
View 1 Replies
View Related
Mar 9, 2010
how to integrate apache with mysql
View 2 Replies
View Related
Nov 27, 2010
I downloaded a patch for ns-2.1b8 in wfq.. Can anyone please tell me how to integrate this patch to the ns environment.
View 2 Replies
View Related
Feb 13, 2009
I installed Fedora and my existing boot up menu (Ubuntu & XP) disappeared leaving only Fedora. Using my Super Grub cd (boot trouble shooting cd) I recovered my previous boot system but it left me without the Fedora option. My question is, how can I integrate Fedora into my existing menu?
View 1 Replies
View Related
Oct 21, 2009
I tried to use these guides [URL] to setup F11 into Server 2008 ADS, but it did not work.
View 2 Replies
View Related