CFLAGS=-Wall
LDFLAGS=-lrfftw -lfftw -lm
all: sound2music rawadd fixwav synth oscillator
%: %.o
sample.txt: sample.raw
	<$< raw2txt >$@
power.txt: sound2music sample.txt
	sound2music <sample.txt >power.txt
plot: power.txt power.gnuplot
	cat power.gnuplot
	gnuplot power.gnuplot -

.PHONY: plot
