Page 1 of 1

Poly and Mono4 Debug Tools

PostPosted: Thu Feb 13, 2020 6:59 am
by trogluddite
Yes, yes, I know, I know - I promise I will build a synth one of these days instead of fiddling with nuts and bolts! :lol:

Here are a few more gadgets for rummaging about in the values on stream connectors. For mono4 there are three modules which show all four SSE channels - one showing numbers, one showing bar graphs, and one showing audio level meters. And there's the same selection for poly streams, which can read and display any arbitrary number of voices (you can select how many in the properties).
multi_channel_readouts.fsm
(706.47 KiB) Downloaded 1221 times

The poly versions do need a little bit of setup doing - they require that the 'Gate' and 'Id' outputs from the "V to P" primitive inside the "Midi to Poly" module are made available as wireless outputs - it just saves an awful lot of awkward wiring if you want to poke around deep in the module nesting (name them exactly as written there).

To make the poly readouts a little less confusing, the channel labels light up when there's a key pressed for that voice. I say that because the "unvoiced" channels of each SSE block have all sort of strange signals on them that I wasn't expecting - it's not the modules that are malfunctioning, I promise!

NOTE: I haven't tried these in the 64-bit alphas yet, but I suspect that they may NOT work, due to the way that they pass memory pointers from Ruby to ASM.

Re: Poly and Mono4 Debug Tools

PostPosted: Thu Feb 13, 2020 10:34 am
by adamszabo
Excellent stuff, thank you!

Re: Poly and Mono4 Debug Tools

PostPosted: Thu Feb 13, 2020 5:21 pm
by BobF
Like adamszabo said, these are excellent, right into my tool box.

Great stuff!

Thanks, BobF.....

Re: Poly and Mono4 Debug Tools

PostPosted: Thu Feb 13, 2020 8:51 pm
by martinvicanek
Thanks for thant one, Trog! :ugeek: :D Debugging poly had always been a problem. Very handy tool!

Re: Poly and Mono4 Debug Tools

PostPosted: Thu Feb 13, 2020 11:49 pm
by trogluddite
martinvicanek wrote:Debugging poly had always been a problem.

Thanks. It's no coincidence that I made these just as I'm working on a custom envelope project - trial-and-error wasn't getting me anywhere very fast, so it was quicker to build a test tool! It's taken me over a decade, but I'm finally starting to understand how the blocks of 4 * SSE get used - the stage(0) for a whole block of four, not per-note, has had me confused for a very long time!

Re: Poly and Mono4 Debug Tools

PostPosted: Fri Feb 14, 2020 8:28 pm
by trogluddite
NB: I've tested these in the Alphas now; and was pleasantly surprised to find that they seem to work fine - even in the 64bit version (I was worried that Frames might use 64-bit pointers, which would mess up my scheme completely)!

Of course, that could change in future versions, or maybe I just haven't tested thoroughly enough. But so far, I'm extremely pleased and amazed at how good back-compatibilty is, even when faced by my outlandish hackery!

Re: Poly and Mono4 Debug Tools

PostPosted: Fri Feb 14, 2020 9:11 pm
by wlangfor@uoguelph.ca
Thanks, it's an idea that sounds a great deal like matrix. I'm always so busy with working on effects, sigh; One day Me and DJBrynte will be releasing a new instrument every week lol.