Author |
Message |
stelpa
Joined: Apr 09, 2021 Posts: 21 Location: USA
|
Posted: Sat Apr 10, 2021 12:46 pm Post subject:
Traditional Oscilloscope |
 |
|
Curious if there's currently a way to get a "traditional" left-to-right oscilloscope in Wren? I see that there's an XY oscilloscope, which is handy for stereo images, but I'd like to have a way to view waveforms in a more traditional manner to see what is happening to the sound over time.
Is there currently a way to do this? If not, I think I'd make that a feature request
Thanks! |
|
Back to top
|
|
 |
Blue Hell
Site Admin

Joined: Apr 03, 2004 Posts: 24042 Location: The Netherlands, Enschede
Audio files: 276
G2 patch files: 320
|
Posted: Sat Apr 10, 2021 1:16 pm Post subject:
|
 |
|
The thing sucks a bit .. but what you can try is to connect a saw wave to the X in and the signal to the Y in ... then maybe reset the saw when the signal is near some value ...
Another way is is to use the graphs thing ... F5 to go to the debug screen, make sure that debug settings "Use graphs" is on, then F4 to go to the graphs screen ..then stop audio if it was running (F9) and hit "debug run" in the graphs screen .. but that really is just for debugging things as it is amazingly slow wh lots of points get accumulated ... anyways, that is what I use for debugging signals.
Edit: the graphs are made from the sum of all output modules in the patch .. so .. could send some debug signals to say output 3 .. 8 .. and then use that on just one output module. _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
Back to top
|
|
 |
stelpa
Joined: Apr 09, 2021 Posts: 21 Location: USA
|
Posted: Sat Apr 10, 2021 2:02 pm Post subject:
|
 |
|
Blue Hell wrote: | The thing sucks a bit .. but what you can try is to connect a saw wave to the X in and the signal to the Y in ... then maybe reset the saw when the signal is near some value ...
Another way is is to use the graphs thing ... F5 to go to the debug screen, make sure that debug settings "Use graphs" is on, then F4 to go to the graphs screen ..then stop audio if it was running (F9) and hit "debug run" in the graphs screen .. but that really is just for debugging things as it is amazingly slow wh lots of points get accumulated ... anyways, that is what I use for debugging signals.
Edit: the graphs are made from the sum of all output modules in the patch .. so .. could send some debug signals to say output 3 .. 8 .. and then use that on just one output module. |
I see, haven't explored the debug screen much, I will check it out!
I'll also play around with the x/y oscilloscope (will return here if I find a cool technique), but I hope you'll consider adding a more traditional oscilloscope down the line, since it could be pretty helpful in understanding what certain controls do
Thanks for the response! |
|
Back to top
|
|
 |
stelpa
Joined: Apr 09, 2021 Posts: 21 Location: USA
|
|
Back to top
|
|
 |
Blue Hell
Site Admin

Joined: Apr 03, 2004 Posts: 24042 Location: The Netherlands, Enschede
Audio files: 276
G2 patch files: 320
|
Posted: Sat Apr 10, 2021 6:37 pm Post subject:
|
 |
|
Yeah it is pretty messy, but indeed can see some things with abit of fiddling. _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
Back to top
|
|
 |
Blue Hell
Site Admin

Joined: Apr 03, 2004 Posts: 24042 Location: The Netherlands, Enschede
Audio files: 276
G2 patch files: 320
|
Posted: Sat Apr 10, 2021 7:21 pm Post subject:
|
 |
|
Your request for a a real(-ish) o-scope has been noted.
I'll have to think a bit of what it would actually have to do. A 'real scope' can be pretty complex, but I do not think such complexity would add much, a more or less still wave image would be enough I guess .. so 'real-ish', without too many controls, maybe just a level control.
edit: and probably some time base control too. _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
Back to top
|
|
 |
Blue Hell
Site Admin

Joined: Apr 03, 2004 Posts: 24042 Location: The Netherlands, Enschede
Audio files: 276
G2 patch files: 320
|
Posted: Sun Apr 11, 2021 6:23 pm Post subject:
|
 |
|
I've made something a bit more traditional in a pre-release version.
https://bluehell.nl/wren/#changes for info
https://bluehell.nl/wiekietje/pmwiki.php/Wren/PreRelease for the info about what to do with a pre-release and a downlaod link.
It's not perfect (the update rate is quite low), but at least a bit .. more traditional .. or real-ish :)
Edit: Just made it update four times as fast, but that is not in a pre-release yet .. next time :)
Edit: .. o .. wait .. it actually is in .. heh. _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
Back to top
|
|
 |
stelpa
Joined: Apr 09, 2021 Posts: 21 Location: USA
|
Posted: Sat Apr 24, 2021 10:44 am Post subject:
|
 |
|
Blue Hell wrote: | I've made something a bit more traditional in a pre-release version.
https://bluehell.nl/wren/#changes for info
https://bluehell.nl/wiekietje/pmwiki.php/Wren/PreRelease for the info about what to do with a pre-release and a downlaod link.
It's not perfect (the update rate is quite low), but at least a bit .. more traditional .. or real-ish
Edit: Just made it update four times as fast, but that is not in a pre-release yet .. next time
Edit: .. o .. wait .. it actually is in .. heh. |
Sorry, didn't see this message! Thanks so much, this is exciting! I just tested the pre-release though, and on my machine (windows, 64 bit), I don't get any display in either trigger mode, just a gray rectangle. Not sure what's up with that >_<
EDIT: Also, it seems to be using a ton of cpu on my machine, even with no other modules except an oscillator! Not sure what's up with that, since my pc has been able to handle all other parts of wren fine so far. Just thought I'd mention. |
|
Back to top
|
|
 |
Blue Hell
Site Admin

Joined: Apr 03, 2004 Posts: 24042 Location: The Netherlands, Enschede
Audio files: 276
G2 patch files: 320
|
Posted: Sat Apr 24, 2021 12:07 pm Post subject:
|
 |
|
Strange ... this is what I get (for example)
Edit: what is your 'lights rate'? (on the settings screen (F3), near the top left). I have it set to 24.40Hz here.
 _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
Back to top
|
|
 |
stelpa
Joined: Apr 09, 2021 Posts: 21 Location: USA
|
Posted: Sat Apr 24, 2021 12:40 pm Post subject:
|
 |
|
Blue Hell wrote: | Strange ... this is what I get (for example)
Edit: what is your 'lights rate'? (on the settings screen (F3), near the top left). I have it set to 24.40Hz here.
 |
My light rate was at 23.03hz, though changing it doesn't have any affect - I replicated your patch here and still don't get any visual, strange.
The cpu load is pretty dramatic, more than any other module I've used in Wren so far - not sure what's going on here :S Let me know if you have any ideas to test and I'll try them  |
|
Back to top
|
|
 |
Grumble

Joined: Nov 23, 2015 Posts: 1293 Location: Netherlands
Audio files: 30
|
Posted: Sat Apr 24, 2021 2:19 pm Post subject:
|
 |
|
Maybe it’s a video card issue? _________________ my synth |
|
Back to top
|
|
 |
Blue Hell
Site Admin

Joined: Apr 03, 2004 Posts: 24042 Location: The Netherlands, Enschede
Audio files: 276
G2 patch files: 320
|
Posted: Sat Apr 24, 2021 2:30 pm Post subject:
|
 |
|
I forgot to set a pen color for trace painting ... and the trace will now show in the border color ... could you set that color to some other value? (to see if you get something displayed then).
It is the Viewer border color under colors in the settings screen (F3).
As to why the module would eat a lot of CPU ... I have no idea yet ... it uses about 1% or so here, and there is nothing in it that would be CPU heavy.
For the next pre-release that color issue will be fixed, and it will be the Viewer line color then _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
Back to top
|
|
 |
Blue Hell
Site Admin

Joined: Apr 03, 2004 Posts: 24042 Location: The Netherlands, Enschede
Audio files: 276
G2 patch files: 320
|
Posted: Sat Apr 24, 2021 3:02 pm Post subject:
|
 |
|
Ok, I've made a new pre-release for the color issue, and also added a debug display to the scope module that will show the internal state of the module.
State can be any of (Collecting, Displaying, PreSyncing, Syncing) (with an msts prefix).
What state does it show to you? (I would expect it to be mostly mstsDisplaying) - in the patch sketched above. _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
Back to top
|
|
 |
stelpa
Joined: Apr 09, 2021 Posts: 21 Location: USA
|
Posted: Sat Apr 24, 2021 4:44 pm Post subject:
|
 |
|
Blue Hell wrote: | Ok, I've made a new pre-release for the color issue, and also added a debug display to the scope module that will show the internal state of the module.
State can be any of (Collecting, Displaying, PreSyncing, Syncing) (with an msts prefix).
What state does it show to you? (I would expect it to be mostly mstsDisplaying) - in the patch sketched above. |
Not sure what it was, but this new release fixed it and it's working perfectly now! It's still using a good chunk of cpu, but not nearly as much as it was previously - weird! Thanks so much for adding this though, it'll help a lot in learning how Wren ticks ^_^
Edit: and you're right, mstsDisplaying is the main thing I see at the top btw |
|
Back to top
|
|
 |
Blue Hell
Site Admin

Joined: Apr 03, 2004 Posts: 24042 Location: The Netherlands, Enschede
Audio files: 276
G2 patch files: 320
|
Posted: Sat Apr 24, 2021 4:54 pm Post subject:
|
 |
|
Ok .. still weird .. in that simple patch I used I see no noticible difference in CPU usage (the % as reported by Wren itself) with or without the scope module being present.
Ah, but the windows CPU usage does go up a bit on it it seems, yup, quite a bit .. must be the screen painting then I guess ... hmm
Anyway - is that what you meant?
Edit: sped up the drawing quite a bit too, windows CPU display is more reasonable now. Publised a fresh pre-release for that. Also decided on keeping the state display. _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
Back to top
|
|
 |
stelpa
Joined: Apr 09, 2021 Posts: 21 Location: USA
|
Posted: Sun Apr 25, 2021 10:20 am Post subject:
|
 |
|
Blue Hell wrote: | Ok .. still weird .. in that simple patch I used I see no noticible difference in CPU usage (the % as reported by Wren itself) with or without the scope module being present.
Ah, but the windows CPU usage does go up a bit on it it seems, yup, quite a bit .. must be the screen painting then I guess ... hmm
Anyway - is that what you meant?
Edit: sped up the drawing quite a bit too, windows CPU display is more reasonable now. Publised a fresh pre-release for that. Also decided on keeping the state display. |
Yep, seems perfect now - thank you so much, this is great  |
|
Back to top
|
|
 |
|