LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 03-11-2004, 06:04 PM   #1
killjoy
Member
 
Registered: Mar 2001
Location: Atlanta,GA
Distribution: Red Hat, Mandrake
Posts: 66

Rep: Reputation: 15
Question Reading a waveform from an audio file?


I'm pretty new to linux programming (background is mostly PHP/MySQL and bash), and completely new to anything to do with audio.

I need to read in an mp3 or wav file to view the waveform in order to output a scripted series of events based on the timeline of the song. I'd be happy writing some kind of plugin for an existing editor, but have no idea where to start.

I have looked all over the web, but everything I find (that has a waveform viewer) seems to be old and won't compile on my systems. I figured this would be somewhat simple -- HA! Silly man!

If anyone could PLEASE provide me a starting point, a link, a widget set, a how-to, anything at all that I could use to get moving on this; I would be in your debt forever!!

Here's basically what I'm trying to do:
-Read in an audio file (probably mp3 or wav)
-View the waveform on a timeline (I have to know the length of the song in .01/sec's)
-Create a series of buttons(?) along the timeline to flip a flag
-Output a script from the flags that corresponds to the timeline of the song.

Basically its supposed to be a computer controlled, automated lighting rig for a band.
(ideas courtesy of http://www.linuxguru.be)
The hardware is built, but the software is lacking-and it'd be a pain to have to have someone sit at the computer to control the lighting system (that was supposed to be automated)

This forum has saved me before-I hope y'all can help me now!
TIA
 
Old 03-11-2004, 06:15 PM   #2
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 417

Rep: Reputation: 31
I suggest using libsndfile for reading the file, http://www.mega-nerd.com/libsndfile/ .
and I suggest learning the Open Sound System (Oss) for playback/recording/etc/, they
have a tutorial at their site, http://www.opensound.com/pguide/oss.pdf .
::edited::

For mp3 decoding Id use MAD, http://www.underbit.com/products/mad/ .

Last edited by jinksys; 03-11-2004 at 06:23 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
awk: fatal:cannot open file for reading (no such file or Directory) in Linux sangati vishwanath Linux - Software 4 07-06-2005 12:59 AM
Reading audio data files as an actual audio file? Erik_the_Red Linux - Software 1 06-01-2005 07:22 AM
Error reading CDs containg audio and data tracks A_Thom Linux - Hardware 0 11-13-2004 08:11 PM
Reading audio sectors still slow even with DMA enabled nukkel Linux - Hardware 0 08-19-2004 06:15 AM
problems reading audio CDs, data DVDs and CD-Rs umberleigh Linux - Hardware 4 07-29-2004 07:46 AM


All times are GMT -5. The time now is 07:28 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration