We've got waveforms on display! heh!

Discuss any 3rd-party tools and code that may be of interest to other Juce users

We've got waveforms on display! heh!

Postby ModuLR » Mon Sep 13, 2004 2:09 pm

new class: WaveFormWindow

the waveform display is working... currently it's only doing mono because I wasn't sure if ya'll wanted two waveforms for stereo or mearly left/right or both.. or... or.. uhhh.. heh :roll: :shock: :D

Image

It resizes and all that good stuff too... there is a bug with the transparencies. For whatever reason, it goes very light if I try to keep the transparency on (I happen to like the solid color better tho.. my laptop cpu like it much better too). Probably some secret niggles in there, or someone will jump in and rant that my code sucks... heheheh.

BTW, I abandoned the wavereader class idea.. because it really doesn't take that many steps to implement loading a buffer and that what not.. or getting the sample values from the buffer, etc. Maybe I'm missing the point (then again it's hella late.. I mean early, and I need sleeeeep).

I attached bithead's waveplayer class on here too.. it's commented out because Robert has it read a wav too... so I dunno which one is going to end up being the primary one.. so they are both in there..

anyway, sun is rising and I need sleep... l8z...

it's in the usual location -> http://subminimal.org/juce
ModuLR::iDontKnow->whatImDoing();
ModuLR
JUCE UberWeenie
 
Posts: 137
Joined: Sat Sep 04, 2004 6:18 am

Postby SigmaDeltaRob » Mon Sep 13, 2004 4:53 pm

great mod!

We really do need to make 2 seperate classes for this though...

whenever you get on aim today we can chat 'bout it....

neat tho.
For some reason my compiler thinks main() is the destructor.
SigmaDeltaRob
JUCE UberWeenie
 
Posts: 100
Joined: Sat Sep 04, 2004 5:03 am
Location: St. Petersburg, Florida

Postby jtxx000 » Sun Sep 19, 2004 1:54 am

I know this is already known, but it doesn't restore correctly.
jtxx000
JUCE UberWeenie
 
Posts: 177
Joined: Tue Sep 07, 2004 12:41 am

Postby laserbeak » Wed Mar 21, 2007 5:18 am

cool!!
User avatar
laserbeak
JUCE Obsessive
 
Posts: 88
Joined: Wed Aug 23, 2006 1:52 pm

Postby geoffroy » Tue Jul 31, 2007 1:59 pm

hi!

is the code available somewhere ? I checked the URL but it's not there.

Many thanks in advance

geoffroy
geoffroy
JUCE Geek
 
Posts: 41
Joined: Wed May 16, 2007 3:02 pm

Postby martinrobinson » Fri May 09, 2008 8:33 pm

OK here's my attempt at waveform display and editor classes for audio files (rather than audio buffers at the moment). Still rough but a basic infrastructure is in place.

http://code.google.com/p/audioeddie/

Image

It's based on the Juce audio demo.

Currently reads and displays mono or multichannel files, has a selection and mechanisms for adding other markers.
User avatar
martinrobinson
JUCE UberWeenie
 
Posts: 295
Joined: Thu Mar 20, 2008 6:23 pm

Postby gekkie100 » Mon May 12, 2008 10:05 am

Hi Martinrobinson,
i would love to give your component a try but there seems to be nothing to download at the url you given us.

Cheers
Edwin
gekkie100
JUCE UberWeenie
 
Posts: 249
Joined: Tue Apr 12, 2005 2:35 pm

Postby martinrobinson » Mon May 12, 2008 6:26 pm

Hello,

It's a Google code project so go to:

http://code.google.com/p/audioeddie/source/browse

browse the source, look in the trunk directory

Martin
Martin Robinson
User avatar
martinrobinson
JUCE UberWeenie
 
Posts: 295
Joined: Thu Mar 20, 2008 6:23 pm

Postby gekkie100 » Tue May 13, 2008 6:55 pm

Thanx,
i did look but not good enough

Edwin
gekkie100
JUCE UberWeenie
 
Posts: 249
Joined: Tue Apr 12, 2005 2:35 pm

Postby martinrobinson » Tue May 13, 2008 7:06 pm

gekkie100 wrote:i did look but not good enough


You didn't look well enough or the waveform isn't good enough? :?
Martin Robinson
User avatar
martinrobinson
JUCE UberWeenie
 
Posts: 295
Joined: Thu Mar 20, 2008 6:23 pm

Postby jules » Tue May 13, 2008 7:21 pm

You don't seem to be using the AudioThumbnail class - is there something you're trying to do that it doesn't handle..?
User avatar
jules
Fearless Leader
 
Posts: 17189
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Postby martinrobinson » Tue May 13, 2008 9:58 pm

jules wrote:You don't seem to be using the AudioThumbnail class - is there something you're trying to do that it doesn't handle..?


Well yes and no. I hadn't found the AudioThumbnail class although having found the thread on the forum I now remember seeing it. I'll look at refactoring using the class. But I do want to customise the drawing in the future but I guess I could just subclass it and override the paint() method.
Martin Robinson
User avatar
martinrobinson
JUCE UberWeenie
 
Posts: 295
Joined: Thu Mar 20, 2008 6:23 pm

Postby gekkie100 » Wed May 14, 2008 8:29 am

martinrobinson wrote:You didn't look well enough or the waveform isn't good enough? :?

I didn't look well enough but your waveform surely looks sharp ;-)
Although we had some crashes, which at the moment i can't recall when those happened. We are using the AudioThumbnail together with the ThumbnailCache class from Juce but it's quite buggy in our app at the moment. So this looks like a nice alternative.

Cheers
Edwin
gekkie100
JUCE UberWeenie
 
Posts: 249
Joined: Tue Apr 12, 2005 2:35 pm

Postby haydxn » Wed May 14, 2008 9:29 am

for some reason (not having looked at the classes) i assumed that 'AudioThumbnail' was like some custom-length preview of an audio file with fade-in/out applied (and so didn't bother investigating). It literally never occurred to me that it generated a waveform!
xh
User avatar
haydxn
JUCE UberWeenie
 
Posts: 1172
Joined: Sun Apr 10, 2005 2:46 pm
Location: Manchester, UK

Postby martinrobinson » Wed May 14, 2008 10:00 am

..and I was hoping my method would allow channels > 2 but I notice that AiffAudioFormatReader and WavAudioFormatReader only do mono/stereo so that doesn't work anyway!

Ultimately I want to be able to read/write markers and loop points from/to an AIFF/WAVE file from my waveform editor class. I've hacked away at my copy of juce_AiffAudioFormat.cpp to get at INST and MARK chunks but only as far as posting them in the console. I remember something about this in another thread. Jules, have you plan to deal with these chunks? I remember you were concerned they may contain large amounts of data and were reluctant to load them all into memory.
Martin Robinson
User avatar
martinrobinson
JUCE UberWeenie
 
Posts: 295
Joined: Thu Mar 20, 2008 6:23 pm

Next

Return to Useful Tools and Components

Who is online

Users browsing this forum: No registered users and 0 guests