added stream initalized to pitch detection