First time here? Check out the FAQ!
x

How do I tell if a number is odd or even?

0 votes
288 views

Ok, here is the thing:  I am trying to create a flip of the LR for every other ?VoiceNumber

A) I'm thinking the channel crosser is my best choice so far, but am wondering if there is an even more simple way to do it if you don't need the complexity.

B) I encountered a similar problem in Max years ago, I solved it using a modulo. I have been experimenting with mod: but can't seem to re-produce the desired stream of 0/1

Any hints?

Charlie

asked Sep 16, 2018 in Capytalk & Smalltalk by charlienorton (Adept) (2,660 points)

1 Answer

0 votes

SelectableSound with the original and the ChannelCrossed versions as Inputs. The selection index could be

?VoiceNumber mod: 2

to alternate between 0 and 1.

answered Sep 17, 2018 by ssc (Savant) (128,080 points)
...