Creates an audio file from a list of floats.
savefile(samples, path, sr=44100, channels=1, fileformat=0, sampletype=0)
Parameters:
samples : list of floats list of samples data, or list of list of samples data if more than 1 channels. path : string Full path (including extension) of the new file. sr : int, optional Sampling rate of the new file. Defaults to 44100. channels : int, optional number of channels of the new file. Defaults to 1. fileformat : int, optional Format type of the new file. Defaults to 0. Supported formats are: 0 : WAVE - Microsoft WAV format (little endian) {.wav, .wave} 1 : AIFF - Apple/SGI AIFF format (big endian) {.aif, .aiff} sampletype ; int, optional Bit depth encoding of the audio file. Defaults to 0. Supported types are: 0 : 16 bit int 1 : 24 bits int 2 : 32 bits int 3 : 32 bits float 4 : 64 bits float