Hello All, Thanks in advance for any insights. I am very new to Processing. My project is to create an oscilloscope-like presentation of the signal on the MIC input of my desktop computer. The test waveform is a 20 Hz sawtooth wave generated by an external signal generator.
1 - the externally generated signal is being acquired correctly by the PC audio hardware as evidenced by a correct display using the example code in the minim getLineIn example.
2- my code generates the desired display when executed using the “test();” fake input generator function.
3 - when the “test()” call is commented out, I get an unintelligible image (see below)
Thanks, but…
The example you suggested fills a buffer, then plays the buffer. I am trying to get a single data point (buffer size of one) and plot that point. I am looking for a solution to the problem of acquiring a single data point.
signal generator ( with 20Hz sawtooth sound output? )
microphone PC sound card
record to file? or looped to processing input
scope like processing show
i am currently on a remake of a processing scope
using arduino USB connected analog inputs.
but think that sound frequencies are on the limit of that hardware.
as i lack the hardware ( calibrated signal generator ) even to see that my indicated
frequencies are nearly correct, i think after reading this post , that using a
sound / micro / arduino analog input /
might be a good idea and not need to buy much signal generation hardware,
just play a sound from any PC using ?audacity?
up to now i only have a signal from a other arduino ( DUE has analog output )
where i have no idea what frequency that might be
( can not calibrate one arduino with an other )