waveform

Get better quality from SoundCloud's Waveform.js lib

非 Y 不嫁゛ 提交于 2019-12-04 17:14:43
Currently I'm using Waveform.js ( http://waveformjs.org ) to generate waveforms from SoundCloud tracks. Unfortunately the generated canvas has a very low image quality (especially on Retina): I would like to create Waveform very similar to the Soundcloud one: Do you know how can I improve the quality of an image? Maybe there's a better solution for generating such waveforms? My app is completely client-side, everything is done in the browser, so perfect scenario for me will be: Send waveform_url to the library which can generate canvas / svg /etc. Or get the data from waveform_url by myself

Windows Form Paint equivalent event in WPF

独自空忆成欢 提交于 2019-12-04 13:53:13
I have used the PAINT event to draw a wave on a Panel in Winows Form Application. But when using it WPF, I didn't find any such element equivalent to a Panel which has a Paint Event. Googled a lot too but no great use. Well, I need to draw a waveform in WPF so suggest appropriate solutions wrt PaintArgsEvent or a new solution altogether. Thank You! Mark Hall You are looking for the DrawingVisual Class From first Link: The DrawingVisual is a lightweight drawing class that is used to render shapes, images, or text. This class is considered lightweight because it does not provide layout or event

Identifying common periodic waveforms (square, sine, sawtooth, …)

China☆狼群 提交于 2019-12-04 11:44:17
问题 Without any user interaction, how would a program identify what type of waveform is present in a recording from an ADC? For the sake of this question: triangle, square, sine, half-sine, or sawtooth waves of constant frequency. Level and frequency are arbitrary, and they will have noise, small amounts of distortion, and other imperfections. I'll propose a few (naive) ideas, too, and you can vote them up or down. 回答1: You definitely want to start by taking an autocorrelation to find the

R equivalent of MATLAB's filter function

自古美人都是妖i 提交于 2019-12-04 07:36:42
I'm adapting MATLAB code to R and trying to generate a waveform using ARMA formula. Is there a simple R equivalent function for MATLAB's filter to take AR/MA coefficients to build a waveform? npts = 100; a = [1 0.6]; % AR coeffs b = [1 0.25 3]; % MA coeffs e = randn(npts,1); % generate gaussian white noise waveform = filter(b,a,e); % generate waveform Hmm can't you achieve that with filter function in the package signal ? require(signal) a = c(1,0.6) b = c(1,0.25,3) e = rnorm(100) waveform = filter(b,a,e) Yeah, you can do this usring arima.sim , e.g. arima.sim(npts, model=list(ar=a, ma=b),

How to work with onWaveFormDataCapture result of Visualizer object?

二次信任 提交于 2019-12-03 21:03:40
I'm new to android programming and audio visualization. I want to create a simple audio visualizer using MediaPlayer and Visualizer classes. My problem is, I don't know what wave form data really is. Must I use it to visualize audio? I'm using the code below. It's problem is, it will only visualize audio for the first 10-12 seconds of the file; after that, I'm unable to capture more data! Where did I go wrong? public void attachVisualizer() { Visualizer vis = new Visualizer(mPlayer.getAudioSessionId()); vis.setCaptureSize(Visualizer.getCaptureSizeRange()[0]); vis.setDataCaptureListener(new

Calculate saw and triangle wave from specific data

纵饮孤独 提交于 2019-12-03 20:27:33
I need to calculate a triangle and saw wave but it is a little complicate because of my model and the data I'm able to work with (but maybe I'm just confused). I'm able to calculate my sine wave but I'm not really using a frame counter. What I do is, calculate a theta_increment variable which I can use the next time I need to calculate a sample. This works like this: float x = note.frequency / AppSettings::sampleRate; float theta_increment = 2.0f * M_PI * x; float value = 0; if(waveType == SINE){ value = sin(note.theta) * fixedAmplitude; } Now that I have the value of the currend frame/sample

Generating a audio waveform graphic within Python

旧时模样 提交于 2019-12-03 12:04:26
Is it possible? I'd like run over a batch of audio files and produce graphic waveform files from them. Similar to what SoundCloud displays, but perhaps the module(s) im seeking will offer a few more options. Whats out there? whats good? Tarantula See this example , it is exactly what you want in pure Python. You have another options too, but using audiolab . 来源: https://stackoverflow.com/questions/5010941/generating-a-audio-waveform-graphic-within-python

Identifying common periodic waveforms (square, sine, sawtooth, …)

[亡魂溺海] 提交于 2019-12-03 07:29:15
Without any user interaction, how would a program identify what type of waveform is present in a recording from an ADC? For the sake of this question: triangle, square, sine, half-sine, or sawtooth waves of constant frequency. Level and frequency are arbitrary, and they will have noise, small amounts of distortion, and other imperfections. I'll propose a few (naive) ideas, too, and you can vote them up or down. You definitely want to start by taking an autocorrelation to find the fundamental. With that, take one period (approximately) of the waveform. Now take a DFT of that signal, and

Android: Sine Wave Generation

女生的网名这么多〃 提交于 2019-12-03 07:08:01
I'm trying to use AudioTrack to generate sine, square, and sawtooth waves. However, the audio this is creating doesn't sound like a pure sine wave, but like it has some kind of other wave overlayed. How would I go about getting the pure sine wave like in the second code example, while using the method in my first example? Since the top example only moves around some of the arithmetic used in the second, shouldn't they produce an identical wave? @Override protected Void doInBackground(Void... foo) { short[] buffer = new short[1024]; this.track = new AudioTrack(AudioManager.STREAM_MUSIC, 44100,

Show waveform of audio

时光总嘲笑我的痴心妄想 提交于 2019-12-03 06:44:19
问题 I am making one music application in android.In this music list coming from server side. I don'tknow how to show waveform of audio in android ? like in soundcloud website. I have attached image below. 回答1: Perhaps, you can implements this feature without libraries, of course if you want only visualisation of audio sample. For example: public class PlayerVisualizerView extends View { /** * constant value for Height of the bar */ public static final int VISUALIZER_HEIGHT = 28; /** * bytes array