First time here? Check out the FAQ!
x

How to compute lowest common denominator of a collection of event values?

0 votes
270 views

I was revisiting some old research, and re-discovered a way of computing triggers , part of which relied on an LCM search. 

 

genA := (?genA asInteger).
genB := (?genB asInteger).
genC := (?genC asInteger).

numtrigs := (genA lcm: genB) lcm: genC.

Wondered what would be a better way to do this, so the variables can be changed live in the VCS?

asked Oct 27, 2023 in Capytalk & Smalltalk by cristian-vogel (Master) (8,440 points)
What range of the number of beats were you thinking to accommodate? And would three Event Values be enough or are you thinking of more?

Please log in or register to answer this question.

...