waveform

rendering a waveform on an iphone

你说的曾经没有我的故事 提交于 2019-11-28 18:23:59
I was wondering if anyone has any suggestions on how to go about rendering a waveform of an audio file. I wold like to enable the user to set an in and out point of an audio track and I need to have a waveform so you can see where to put the points. Are there any libraries available for this or does it need to be a completely custom solution? Is it even called a waveform ? Maybe there's a better word for it so I can do some more searching. TIA ! Nick Haddad I'm reposting my answer from this question , since it applies here as well: When displaying an audio waveform, you will want to do some

drawing waveform - converting to DB squashes it

拟墨画扇 提交于 2019-11-28 06:25:57
问题 I have a wave file, i have a function that retrieves 2 samples per pixel then i draw lines with them. quick and painless before i deal with zooming. i can display the amplitude values no problem that is an accurate image of the waveform. to do this i used the following code //tempAllChannels[numOfSamples] holds amplitude data for the entire wav //oneChannel[numOfPixels*2] will hold 2 values per pixel in display area, an average of min amp, and average of max for(int i = 0; i < numOfSamples; i

How to render audio waveform?

让人想犯罪 __ 提交于 2019-11-28 04:26:55
问题 Is there any audio/programming-related stack-exchange site? I'm trying to make a wave form in WinForms What algorithm should I use? For example, if I have 200 samples per pixel (vertical line), should I draw the lowest and the highest sample from that portion of 200 samples? Or should I draw average of low and high samples? Maybe both in different colors? 回答1: Try dsp.stackexchange.com At 200 samples per pixel, there are several approaches you can try. Whatever you do, it often works best to

Efficient method to draw a line with millions of points

做~自己de王妃 提交于 2019-11-28 03:36:25
I'm writing an audio waveform editor in Cocoa with a wide range of zoom options. At its widest, it shows a waveform for an entire song (~10 million samples in view). At its narrowest, it shows a pixel accurate representation of the sound wave (~1 thousand samples in a view). I want to be able to smoothly transition between these zoom levels. Some commercial editors like Ableton Live seem to do this in a very inexpensive fashion. My current implementation satisfies my desired zoom range, but is inefficient and choppy. The design is largely inspired by this excellent article on drawing waveforms

Reading an audiofile and displaying the waveform with Java.

a 夏天 提交于 2019-11-28 01:57:11
问题 Can anyone advise me on how I could read an audio file, store it in a byte array and proceed to display its waveform? My knowledge of Java is very basic. If anyone can link me to learning materials for Java audio programming it would be great. 回答1: Both your questions have been answered on SO. See my answers to these questions: Basics of audio and java: How can I create a sound file in Java Drawing waveforms and waveform overviews: How can I draw sound data from my wav file? 回答2: You will

Saving each WAV channel as a mono-channel WAV file using Naudio

大兔子大兔子 提交于 2019-11-28 01:07:25
问题 I'm trying to convert a WAV file(PCM,48kHz, 4-Channel, 16 bit) into mono-channel WAV files. I tried splittiing the WAV file into 4 byte-arrays like this answer and created a WaveMemoryStream like shown below but does not work. byte[] chan1ByteArray = new byte[channel1Buffer.Length]; Buffer.BlockCopy(channel1Buffer, 0, chan1ByteArray, 0, chan1ByteArray.Length); WaveMemoryStream chan1 = new WaveMemoryStream(chan1ByteArray, sampleRate, (ushort)bitsPerSample, 1); Am I missing something in

How to draw waveform of Android's music player? [closed]

无人久伴 提交于 2019-11-27 11:42:33
one of the default live wallpapers that came with my phone was a wallpaper that displayed the wave form of music playing in the background in real time. I was wondering how one could go about doing this. It seems I should somehow access the streaming data of the background music and compute the samples in real time, but I have no idea how to get the streaming data. I think I can display the wave form by following this tutorial http://codeidol.com/java/swing/Audio/Build-an-Audio-Waveform-Display/ , but I'm not exactly sure how to do it. Help would be greatly appreciated/ Christopher Souvey

How to implement low pass filter using java

ぃ、小莉子 提交于 2019-11-27 06:54:25
I am trying to implement a low pass filter in Java. My requirement is very simple,I have to eliminate signals beyond a particular frequency (Single dimension). Looks like Butterworth filter would suit my need. Now the important thing is that CPU time should be as low as possible. There would be close to a million sample the filter would have to process and our users don't like waiting too long. Are there any readymade implementation of Butterworth filters which has optimal algorithms for filtering. I have a page describing a very simple, very low-CPU low-pass filter that is also able to be

sine wave that slowly ramps up frequency from f1 to f2 for a given time

大城市里の小女人 提交于 2019-11-27 04:41:01
I'm writing a c program to generate a sinusoidal wave that slowly ramps up frequency from f1 to f2 for a giving time interval. I have written this c program to ramp the frequency from 0 to 10 Hz but the problem is that the frequency changes after completion of 360 degrees. If I try to change the frequency between 0 and 360 degree that the transition is not smooth and it is abrupt. This is the equation the sin that I have used y = Amplitude*sin(freq*phase) int main(int argc, char *argv[]) { double y, freq,phase; int count; // for convenience of plotting in matlab so all the waves are spread on

Drawing waveform with AVAssetReader

心已入冬 提交于 2019-11-26 17:59:49
I reading song from iPod library using assetUrl (in code it named audioUrl) I can play it many ways, I can cut it, I can make some precessing with this but... I really don't understand what I gonna do with this CMSampleBufferRef to get data for drawing waveform! I need info about peak values, how I can get it this (maybe another) way? AVAssetTrack * songTrack = [audioUrl.tracks objectAtIndex:0]; AVAssetReaderTrackOutput * output = [[AVAssetReaderTrackOutput alloc] initWithTrack:songTrack outputSettings:nil]; [reader addOutput:output]; [output release]; NSMutableData * fullSongData = [