|
This program is the inverse of the fromStream program. This program will take raw signed 16-bit PCM and emits our stream format for it. The following example should be pretty close to the identity transformation (assuming that the incoming stream had 32 columns.
... | fromStream | soundToStream -width 32 | ...
64.0
.32.0
.0.44
.
For more information, see the documentation for
fromStream.128.0
.4096.0
.
Note, if the minimum and maximum aren't both powers of the
same number, chances are that there will be a great deal of
interference between your frequencies that results in crackles
in the sound. Also note, that there is no reason that the
minimum frequency really has to be smaller than the maximum
frequency.8192
.sine
.