Sieve Rhythm Notation

Combine modular pulse layers into one notated rhythmic cycle.

Input

Sieve layers
A layer m@r selects pulses whose remainder modulo m is r.