added quantizePot option to midiFileToStream