Log in to Freesound

Problems logging in?
Don't have an account? Join now

Problems logging in?

Enter your email or username below and we'll send you a link to help you login into your account.

Back to log in

Almost there!

We've sent a verification link by email

Didn't receive the email? Check your Spam folder, it may have been caught by a filter. If you still don't see it, you can resend the verification email.

Default title

  • Sounds
  • Tags
  • Forum
  • Map
    • Sounds
    • Packs
    • Forum
    • Map
    • Tags
    • Random sound
    • Charts
    • Donate
    • Help

Freesound Forums

  • Freesound Forums
  • Freesound Project
  • Waveform sound image

Waveform sound image

Subscribe

Started September 19th, 2006 · 49 replies · Latest reply by HardPCM 17 years, 8 months ago

H
HardPCM

0 sounds

215 posts

17 years, 11 months ago
#21

done smile

Y
yo53

0 sounds

6 posts

17 years, 11 months ago
#22

Hi,

I've tried to use it and it works great, it's awesome grin
but is it possible to have the color of the line changing with frequency of the sound like you do on your website?

Thank's in advance!

:wink:

Y
yo53

0 sounds

6 posts

17 years, 11 months ago
#23

Now I've understood! it's an external program wich generate the colorfile.
But I'm not familiar with c programming, is it possible to get the sources somewhere?
I'll be so great!

grin

H
HardPCM

0 sounds

215 posts

17 years, 11 months ago
#24

I'm working on that first,
I try will find the time to make it
because I think that the Bram source
to generate the centroid are not open source.
I will name it HWAV2CTD, give me two weeks.

In the same time,
I work on my own project named HSND2IMG
that can the same thing but everything integrated and optimised,
with more usefull option if I have the time,
and use an fixed buffer size
because Bram use an unfixed buffer
so when you process an one hour sound file
the buffer become really big and you lose many memory resources.
But in regular case sound file are small so we can ignore that and everyones is happy :roll:

An First build release of HSND2IMG will be done on one month or two.

I will give new...

cool

Y
yo53

0 sounds

6 posts

17 years, 11 months ago
#25

Such a good news tongue

I'm really enthousiastic about it, it's a exciting project.

Please let us know.
grin

Bram

122 sounds

1,573 posts

17 years, 11 months ago
#26

of course even better would be if you would commit all changes and improvements to the subversion repository wink

if you want I can give you commit-access. (do you have experience with svn?)

- bram

Admin | Support
H
HardPCM

0 sounds

215 posts

17 years, 11 months ago
#27

can you put in the repository the text color file of the test sound for reference purpose

Bram

122 sounds

1,573 posts

17 years, 11 months ago
#28

I sent you an example for a color file to your gmail, hardpcm.

better keep the colorfile example in the repository for the color-file-generation program.

- bram

Admin | Support
H
HardPCM

0 sounds

215 posts

17 years, 11 months ago
#29

sure,

the final project name will be wav2ctd

for now it seem to work
but I don"T know
what is your freq reference
to calc your freq step coef

cool

Y
yo53

0 sounds

6 posts

17 years, 11 months ago
#30

Hello HardPCM,

does it mean you've done it grin

H
HardPCM

0 sounds

215 posts

17 years, 11 months ago
#31

sure,

but I want to release that with
the less problems possible
and some additionnal options,
for now It give real exellent/good result
but this is just an centroid computation

tongue

now i need some minor info from Bram
and I must finalize minor things
but everything will be done after the
Bram"s travel I hope

cool

Y
yo53

0 sounds

6 posts

17 years, 10 months ago
#32

Hi,

and according to name of the project, it'll be compatible only with wav format?
I mean it's not a problem because it's easy to convert ogg or mp3 to wav before using wav2ctd.

If you have more informations... grin

Thnaks in advance.

Y
yo53

0 sounds

6 posts

17 years, 10 months ago
#33

I'm reading my previous post, I apologize for my bad english :roll:

is there any news about the project? grin

H
HardPCM

0 sounds

215 posts

17 years, 10 months ago
#34

first this not because the name is wav2ctd that is it only use wav format,
in fact I use libsndfile so I can read the same formatS that wav2png use
like WAV,MP3,etc...

yes the project is done and I will give a first release in the next weeks

M
moab.in

0 sounds

3 posts

17 years, 9 months ago
#35

any news?

H
HardPCM

0 sounds

215 posts

17 years, 9 months ago
#36

Yes check at:

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

for now only the source is available in the trunk repertory
I will put an compiled zipped files for win32 nearly

M
moab.in

0 sounds

3 posts

17 years, 8 months ago
#37

Is the source compilable on linux? Haven't had much joy using gcc, have both fftw and libsndfile.

H
HardPCM

0 sounds

215 posts

17 years, 8 months ago
#38

yes,
yo53 tried with success,
if not just say...

B
bittermang

0 sounds

5 posts

17 years, 8 months ago
#39

mike_eci
Is the source compilable on linux? Haven't had much joy using gcc, have both fftw and libsndfile.

It will build. Here's how:

First, the shared libraries
You said you already had libsndfile and fftw, but for the benefit of those who don't, here is what you do:

First go get libsndfile from www.mega-nerd.com/libsndfile/

Download the latest version of the source code, which at the time of writing this was 1.0.17 (www.mega-nerd.com/libsndfile/libsndfile-1.0.17.tar.gz)

Then:
tar xzvf libsndfile-1.0.17.tar.gz
cd libsndfile-1.0.17
./configure --enable-shared --prefix=/usr
make
make install

Now, go get FFTW, from www.fftw.org

Download the latest stable version of the source code, which was 3.1.2. (www.fftw.org/fftw-3.1.2.tar.gz)

Then:
tar xzvf fftw-3.1.2.tar.gz
cd fftw-3.1.2.tar.gz
./configure --enable-shared --prefix=/usr --enable-float
make
make install

PLEASE NOTE in the configure line for FFTW, we configured it with the --enable-float option. This is important as wav2ctd uses some stuff that is only provided by fftw3f, and you won't get that library if you build it with it's default options.

Having completed both of these steps, we can move on to:

Building wav2ctd
First we'll check it out from the repository:
svn checkout hxxp://wav2ctd.googlecode.com/svn/trunk/ wav2ctd-read-only
Now navigate to the folder that contains the .cpp file. The path should be something like: ~/wav2ctd-read-only/wav2ctd-1.0.0/src
Run this command to compile it:
g++ main.cpp -o wav2ctd -L/usr/lib -lsndfile -lfftw3f
This tells G++ to compile the code main.cpp, call it wav2ctd, the location of our shared libraries, and which libraries we'll be using: lsndfile, lfftw3, and lfftw3f.
Once this is finished, you'll receive no output on successful completion. However if you look in your folder you should have a new file in there named wav2ctd. You did it!

If you get a bunch of errors like this:
/tmp/ccHNiyrM.o(.text+0xc48): In function `ProcessingSound()':
: undefined reference to `fftwf_malloc'
/tmp/ccHNiyrM.o(.text+0xc82): In function `ProcessingSound()':
: undefined reference to `fftwf_plan_dft_r2c_1d'
/tmp/ccHNiyrM.o(.text+0xef4): In function `ProcessingSound()':
: undefined reference to `fftwf_execute'
/tmp/ccHNiyrM.o(.text+0x1200): In function `ProcessingSound()':
: undefined reference to `fftwf_free'

-or-
ld: cannot find -lfftw3f
Then you didn't build FFTW with float enabled. See above and rebuild your FFTW library.

For some extra convenience, copy the wav2ctd file to your bin folder so you can run it from anywhere:
cp wav2ctd /usr/bin

That's it. Hope that helps someone.

Poison the Mind - A lethal dosage of creativity.
B
bittermang

0 sounds

5 posts

17 years, 8 months ago
#40

Also; I have no idea how to use this thing.

So, if someone could break down the syntax, maybe provide some examples, that would be great.

Thanks.

Poison the Mind - A lethal dosage of creativity.
Post reply
  • 1
  • 2
  • 3
About Freesound Terms of use Privacy Cookies Developers Help Donations Blog Freesound Labs Get your t-shirt!
© 2025 Universitat Pompeu Fabra