// function to partially match filename for buffers ~getSmp = { |regexp| ~granBfr.detect { |buf| regexp.matchRegexp(buf.path) } };