SynthMaker

monoboolean add = OR?

Archive · 2008 5 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

oddson ·

Can anyone confirm without me having to build test code that adding two monoboolean streams to a single input will give an 'OR' result into the receiving module?

MyCo ·

Streamboolean are just streams with a different symbol. So if you can convert streams to streamboolean and vice versa without loosing its value.

When you add 2 monoboolean your result is added like normal. But if you only check with "equal zero" or "greater zero" you can use it as OR and you could use multiplication as AND (not supported by rule checking, you have to force a link).

oddson ·

😮 😕 My first reaction is 'that can't be right' but a cursory test says it is.

rl ·

I can't check that right now, since I'm far away from my SM capable machine. But in case monobool's are treated as int's it should be possible, but only for or-ing int's with single bits set like in 1 2 4 8 16,... Note that e.g. 3 + 1 = 4 but 3 OR 1 is 3

____________________ Temporarily greetings from San Francisco. The city of open wireless lan connections

MyCo ·

they are treated as floats, like normal streams. So there is only one way to boolean compare, which is the comparing with zero.

Wrote something here? To have a post removed or your name hidden, write to [email protected].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.