Not directly answering your question, but you might consider using panflute and take a look at pantable. What do you want the filter to accomplish?