Page 1 of 1

DSP stage(0) question

PostPosted: Sun Mar 04, 2018 11:06 am
by HughBanton
Hi guys,

I got stuck for a couple of hours the other day over stage(0) & stage(2) in a dsp module. The issue (once I'd identified it), can easily be illustrated in the attached demo.

The stage(0) output - z0out (=sum) - ignores the y input from the FA2P module, and just outputs the value of x, whereas the stage(2) output - z2out - correctly adds x + y.

Why is that? I would have expected the value at the y input (always 2) to be present during sample number 1, which is what I understand is the purpose of stage(0).

I'd just lurv to understand this one!

h

Re: DSP stage(0) question

PostPosted: Sun Mar 04, 2018 12:06 pm
by martinvicanek
Unfortunately the note number is not available at stage0, hence the mismatch. If you need to initialize variables depending on input which is only available at stage 2, you could try declare a flag=1 and set it to zero immediately after processing the first sample. I have used this hack in blue, not sure it works in poly though.
P.s. Please use a clipper before the ASIO Out, especially if you connect non-audio stuff. And switch it off before saving.
My speakers say "thank you". ;)

Re: DSP stage(0) question

PostPosted: Sun Mar 04, 2018 12:19 pm
by HughBanton
Thanks MV, somehow I knew you'd be the man with the answer!

Note number not available - I wasn't expecting that, I'd convinced myself this was another FA2P issue.

Doesn't matter a great deal, in practice I was just trying to save some processing. What I'm doing works just fine with everything in stage(2), I was just trying to avoid some repetition, as you do.

The bottomless pit that is Flowstone ;)

H

Re: DSP stage(0) question

PostPosted: Sun Mar 04, 2018 12:23 pm
by HughBanton
P.s. Please use a clipper before the ASIO Out, especially if you connect non-audio stuff. And switch it off before saving.
My speakers say "thank you". ;)


Oops, sorry. I knocked it up this morning, without connecting to anything, just to illustrate; hadn't considered audio implications.

I'll take more care next time :oops:

H