added polyphony support for sampler object