WirteAllBits function works. This function creates a seperate wav file for each note