d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Audio Processing C# > In Search Of A Guru To Help
Add Reply New Topic New Poll
Member
Posts: 6,325
Joined: Dec 2 2007
Gold: 2,347.75
Sep 14 2012 05:50pm
Hello there :)

I am very interested in music production and so forth, and I am also trying to master programming :p

Well, long story short. When I make music I like to use samples from older songs, and by doing so I usualy chop the audio file based on peaks.

What I want to do is make a program that automatically does that for me, just to speed things up a little.

I just have a little problem, I don't know where to start? I want to do it in the .net environment because that's where I am most certainly comfortable.

I have managed to load/play/pause .wav and .mp3 files using NAudio, but as it goes to detecting peaks in the audio file and create a slice from that peak to the next and save it I really don't know where to start of.
Member
Posts: 6,325
Joined: Dec 2 2007
Gold: 2,347.75
Sep 15 2012 05:09am
bump
Member
Posts: 16,144
Joined: Mar 27 2008
Gold: 14,618.00
Sep 15 2012 06:41am
can you give an example of a peak? (maybe an actual audio-file as example)
a peak is in your case a short time period where the audio signal gets louder?

if the signal is something that is reapeating you could use a fourier transformation to get the length of the slowest period

you want to detect a peak. a peak has more energy than the average. to detect a peak, you need to know the shape of a peak.
as example, a single value in an audio stream which is much louder may be a peak. but still the ear maybe doesn't hear it, because it is so short that the energy is too low.
so you maybe need a window function, just to take the average of the energy of multiple samples: http://en.wikipedia.org/wiki/Window_function
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll