added check for correct use of wave packet descriptor indices and allowing scale factors of 0.5 and else