filterHaps - 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) | parameter | type |
|---|---|
| hap_test |
|
| a function which returns false for haps to be removed from the pattern | |