Welcome to %s forums

BrainModular Users Forum

Login Register

stop flow if array value is 0 (or filter out 0 in general)

I need help on a Patch
Post Reply
lytz1
Member
Posts: 123
Contact:

Unread post by lytz1 » 27 Dec 2018, 17:35

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.

User avatar
x.iso
Member
Posts: 565
Location: RU, Saint-Petersburg
Contact:

Unread post by x.iso » 27 Dec 2018, 17:54

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).
join Hollyhock Usine Discord server: https://discord.gg/EdJarnE

lytz1
Member
Posts: 123
Contact:

Unread post by lytz1 » 27 Dec 2018, 19:03

x.iso wrote:But if you're getting one value at a time from Array queue, then it get's tricky
Indeed, that's the problem.
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).
Sounds like a good idea.I'll check this out, thanks!

tL.

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 27 Dec 2018, 22:23

yes you can just put a stop flow before the queue controlled by =0 logical module.

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests