waveform

How to modulate the pulsewidth of the Web Audio API Square OscillatorNode?

自古美人都是妖i 提交于 2021-02-11 17:26:37
问题 I want to modulate the square waveform of the Web Audio API OscillatorNode by connecting to other OscillatorNodes. But I can not find the parameter in the AudioParams. Is this possible at all or is there a workaround? I thought about creating a "custom" wavetable Oscillator with the "audioContext.createWaveTable()" function. This wavetable could contain different pulses with sweeping pulsewidths. But than again I have no idea how to control the position of the wavetable pointer via

Problem with formula to output a triangle waveform using linear aliasing

会有一股神秘感。 提交于 2021-01-29 16:20:50
问题 I am trying to make a formula to output a triangle wave using logic instead of additive Synthesis since using additive Synthesis is more CPU intense. More info can be found here, 'Problems with formula to output a triangle waveform in Java' I have edited the code a bit since then. My problem is that the linear triangle wave generation formula is not precise. It has distortion and is too sharp for higher notes. The method I am having trouble with is liniarTriangle() public class

Problems with formula to output a triangle waveform in Java

人盡茶涼 提交于 2020-06-14 07:59:52
问题 I got my wave file creator working and I split it into three classes, I also made a sinewave generator that inherits from an abstract class called waveform and I can export 8 and 16 bit mono or sterio sine waves. I am trying to make a class called TriangleWave Generator to output a triangle wave tone, but I can't get the algebra from https://en.wikipedia.org/wiki/Triangle_wave#, the first formula, to work. It will only export the highest harmonic stated and not blend them together with the

help converting this as3 code to pixel bender code

依然范特西╮ 提交于 2020-01-25 12:24:03
问题 I'm looking for some help converting as3 code to pixelbender code in an attempt to improve the performance of my application. This as3 code goes as follows. I scan through the Number values of a bytearray in chunks. Lets say this chunk lenght was 100 numbers I read 2 numbers (left and right) and try find the maximum values. The numbers in my bytearray are PCM data so there is millions of them and this code can often take a long time to execute, especially on a low spec machine. The whole aim

help converting this as3 code to pixel bender code

僤鯓⒐⒋嵵緔 提交于 2020-01-25 12:22:00
问题 I'm looking for some help converting as3 code to pixelbender code in an attempt to improve the performance of my application. This as3 code goes as follows. I scan through the Number values of a bytearray in chunks. Lets say this chunk lenght was 100 numbers I read 2 numbers (left and right) and try find the maximum values. The numbers in my bytearray are PCM data so there is millions of them and this code can often take a long time to execute, especially on a low spec machine. The whole aim

Android include javax.sound.sampled.*

自作多情 提交于 2020-01-15 07:07:06
问题 For an Android app (for Android version 2.1),I want to analysis a sound file and get the frequency. Therefore I want to include javax.sound.sampled.* for that purpose. How can I get that? Any external jar file can do it for me? Any such jar file is available? 回答1: Android does not support it :( 回答2: A Fast Fourier Transform (FFT) library should be usable for your purpose. Unfortunately I cannot recommend any as I haven't tried them myself. 回答3: After lots of google searching, finally stumbled

Android include javax.sound.sampled.*

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-15 07:06:21
问题 For an Android app (for Android version 2.1),I want to analysis a sound file and get the frequency. Therefore I want to include javax.sound.sampled.* for that purpose. How can I get that? Any external jar file can do it for me? Any such jar file is available? 回答1: Android does not support it :( 回答2: A Fast Fourier Transform (FFT) library should be usable for your purpose. Unfortunately I cannot recommend any as I haven't tried them myself. 回答3: After lots of google searching, finally stumbled

Android include javax.sound.sampled.*

こ雲淡風輕ζ 提交于 2020-01-15 07:06:10
问题 For an Android app (for Android version 2.1),I want to analysis a sound file and get the frequency. Therefore I want to include javax.sound.sampled.* for that purpose. How can I get that? Any external jar file can do it for me? Any such jar file is available? 回答1: Android does not support it :( 回答2: A Fast Fourier Transform (FFT) library should be usable for your purpose. Unfortunately I cannot recommend any as I haven't tried them myself. 回答3: After lots of google searching, finally stumbled

How to work with onWaveFormDataCapture result of Visualizer object?

こ雲淡風輕ζ 提交于 2020-01-12 10:13:14
问题 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

RChannel Sensitivity in DICOM waveforms

非 Y 不嫁゛ 提交于 2020-01-04 02:26:09
问题 I am trying to make an ECG viewer reading DICOM files. I get all data (like Channel Definition Seqeunce), also got the waveform samples to each channel. My problem is that there is a Tag (Channel Sensitivity), and I can't figure out it's meaning. What purpose does it have? 回答1: After you have the raw value for a sample you have to apply some transformations defined by several tags. Channel Sensitivity is a mandatory field when samples represent defined units and it must be used in conjunction