Hey guys,
I am trying to figure out how to filter out zeros from an
ever-changing array-queue stream.
There might be two approaches to this:
1) To filter out zeros. But I didn't find a data range filter.
2) To only pass flow if x NOT 0. But it seems I am too dumb today,
somehow I can't figure out how to do that either.
Any ideas on how to approach this?
Thanks,
tL.
stop flow if array value is 0 (or filter out 0 in general)
Depends on what's your goal. There's Array Clip module, that would push any 0 values to minimum value and same for maximum:
http://www.sensomusic.org/manual/en/mod ... array-clip
But if you're getting one value at a time from Array queue, then it get's tricky, because even if you wire it to Stop flow and activate that by '=' module that compares value to 0, as soon as value isn't 0, I think that 0 will get through after being held by Stop flow. At least I think I've dealt with such problem before and usually I just changed my approach so I don't have to do such thing.
EDIT: actually, when Array value is 0 you can trigger (by same '=' module) Data Selector from input 1 to input 0 or 2 where there's no value present. So that way 0 will get nowhere and properly replaced by value after it (if it's not 0).
http://www.sensomusic.org/manual/en/mod ... array-clip
But if you're getting one value at a time from Array queue, then it get's tricky, because even if you wire it to Stop flow and activate that by '=' module that compares value to 0, as soon as value isn't 0, I think that 0 will get through after being held by Stop flow. At least I think I've dealt with such problem before and usually I just changed my approach so I don't have to do such thing.
EDIT: actually, when Array value is 0 you can trigger (by same '=' module) Data Selector from input 1 to input 0 or 2 where there's no value present. So that way 0 will get nowhere and properly replaced by value after it (if it's not 0).
join Hollyhock Usine Discord server: https://discord.gg/EdJarnE
Indeed, that's the problem.x.iso wrote:But if you're getting one value at a time from Array queue, then it get's tricky
Sounds like a good idea.I'll check this out, thanks!x.iso wrote:EDIT: actually, when Array value is 0 you can trigger (by same '=' module) Data Selector from input 1 to input 0 or 2 where there's no value present. So that way 0 will get nowhere and properly replaced by value after it (if it's not 0).
tL.
yes you can just put a stop flow before the queue controlled by =0 logical module.
Who is online
Users browsing this forum: No registered users and 68 guests
