Accurate Waveform-cycle Display
Posted: Thu Nov 26, 2015 6:42 pm
I know I'm asking for much, but I don't see any light at the end of the tunnel:
For Martin's awesome SWM-Sine Oscillator (from this thread) I would like to have a display of the waveform, so that any change to SWM is visible to the user. I don't need help regarding the displaying itself, but I have no clue how to get the correct data from the osc. Here are the requirements:
-Data should only be given out on a green trigger, to prevent contiguous cpu-load while active.
-The data should also be given out when no sound is playing.
-It needs to be the exact data needed to display exactly one cycle of the waveform, from beginning to end (not starting inbetween)
There's no size requirement; I can always map to 256 pixels, or 128 or whatever. The scope doesn't help me, because it just displays what is coming in.
My read is that it is somehow related to a frequency against the samplerate to get the right spot for the start of the data. But since there is no data if nothing is playing, I wouldn't know how to solve this.
Is someone able to help me finding a solution that meets the three points mentioned above?
For Martin's awesome SWM-Sine Oscillator (from this thread) I would like to have a display of the waveform, so that any change to SWM is visible to the user. I don't need help regarding the displaying itself, but I have no clue how to get the correct data from the osc. Here are the requirements:
-Data should only be given out on a green trigger, to prevent contiguous cpu-load while active.
-The data should also be given out when no sound is playing.
-It needs to be the exact data needed to display exactly one cycle of the waveform, from beginning to end (not starting inbetween)
There's no size requirement; I can always map to 256 pixels, or 128 or whatever. The scope doesn't help me, because it just displays what is coming in.
My read is that it is somehow related to a frequency against the samplerate to get the right spot for the start of the data. But since there is no data if nothing is playing, I wouldn't know how to solve this.
Is someone able to help me finding a solution that meets the three points mentioned above?