filterHaps
  1. hap_test

Returns a new Pattern, which only returns haps that meet the given test.

s("bd*8").velocity(rand).filterHaps((h) => (h.whole.begin % 1) < h.value.velocity)
parametertype
hap_test
  • function
a function which returns false for haps to be removed from the pattern
mentioned in (1)