* added support for layers * fixed initial pitch calculation which did not honor the sample's own sample rate