[21:37:56] <laertus> hellow, i'm planning on writing a program that reads in an audio file in wav format, taking the data portion of the file (which consists of numbers in the range of -32767 to 32767) and putting it in to to a signed 16-bit tiff, then manipulating the tiff as a regular image file in various external programs, reading tiff back in, extracting the data from the tiff and creating a new wav file
[21:38:35] <laertus> it seems like pillow might be the right thing to use with respect to getting this data in to a tiff file and extracting it ouf of the tiff file
[21:39:55] <laertus> so i'm wondering if someone could point me to the relevant part of the pillow docs that describe how i can insert/extract raw data into/out-of a pillow image data structure
[21:43:23] <laertus> hmm.. i just found ImageFile.set_as_raw()
[21:43:48] <laertus> that looks useful.. though i'm not sure if it expects the "raw" data to already be in tiff format
[21:44:51] <laertus> also, i don't see any corresponding function to extract the raw data out of an image file
[22:06:51] <laertus> looks like fromstring() and tostring() might be what i need
[22:08:33] <laertus> oh nooo... NotImplementedError("tostring() has been removed.
[22:11:57] <laertus> but there is a PIL.Image.frombytes()
[22:12:53] <laertus> but that might be a little too low-level for me