updated for new web audio standard (except for filter types)