What's the difference?
-
Featherless biped Featherless biped https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=698984
- KVRist
- Topic Starter
- 38 posts since 7 Apr, 2024
Strangely there's a difference between the outputs of the following two projects:
Case1 has an extra multiplication by 1, why does that matter? Something to do with execution order?You do not have the required permissions to view the files attached to this post.
-
- KVRist
- 493 posts since 21 Nov, 2012 from Sitting in front of my PC
I can't quite work out the math but I can see whats happening.
When the oscillator pitch exceeds 5.0v the circuit is adding a DC offset of -5.0v (shown as -0.5 on the scope).
When it's ready to redraw the window the scope fills its buffer for each trace when it detects a zero volt rising. That is when the previous sample is <= 0.0f and the current sample is > 0.0f.
Because scope A is getting the -0.5f DC offset it never triggers and so you see the contents of the last trigged buffer displayed as a static image.
If you add a positive DC offset (either a constant 5.0v or a scaled connection from the pitch parameter) directly to the scope A trace it fixes it. But at very high frequencys the filters 45deg phase offset might come into play.
Kirsty
When the oscillator pitch exceeds 5.0v the circuit is adding a DC offset of -5.0v (shown as -0.5 on the scope).
When it's ready to redraw the window the scope fills its buffer for each trace when it detects a zero volt rising. That is when the previous sample is <= 0.0f and the current sample is > 0.0f.
Because scope A is getting the -0.5f DC offset it never triggers and so you see the contents of the last trigged buffer displayed as a static image.
If you add a positive DC offset (either a constant 5.0v or a scaled connection from the pitch parameter) directly to the scope A trace it fixes it. But at very high frequencys the filters 45deg phase offset might come into play.
Kirsty