Operations on Analysis Data (SPEAR)
Some simple programs to modify SPEAR analysis output files. We will
be using these to develop a max/msp SPEAR resynth external in the
coming weeks.
Links
Applications and Examples
Class code:
- SPEAR-progs.sit
- SPEAR-progs.tar.gz
These unpack into a folder called SPEAR-progs, containing
the following:
- partials-readwrite.c
-- C code for reading and then writing (no modification)
SPEAR data saved in the "text-partials" format
- timeoffset.c
-- C code for reading and then writing SPEAR data saved
in the "text-partials" format adding a frequency-dependent
time offset
- resampframes-readwrite.c
-- C code for reading and then writing (no modification)
SPEAR data saved in the "text-resampleframes" format
- freqsquash.c
-- C code for reading and then writing SPEAR data saved in
the "text-resampleframes" format, dynamically shifting the
frequency over time
- Eb1.txt-partials
-- the "text-partials" analysis file (of a piano chord) used
in the above code
- Eb1.txt-resampleframes
-- the "text-resampleframes" analysis file (of a piano chord) used
in the above code
All of these programs are compiled with just the basic "cc" command,
no Makefiles necessary. They write their output to the terminal, so you
will need to redirect it (i.e. a.out > outputfile) and then
import that outputfile into SPEAR for resynthesis.