Commit d9b0a8d0 authored by Arnaud Blanchard's avatar Arnaud Blanchard

e_graph_spectrum.sh uses i_spectrum.sh inside

parent a3d74da4
......@@ -29,16 +29,14 @@ blaar_add_option max M "" "real" "maximal intensity to display"
blaar_add_option xmax X "" "real" "maximal values on absisca to display"
blaar_parse_args "$@"
[ $filename ] && file_option="--file=$filename" || file_option=""
[ $filename ] && file_option="-f=$filename" || file_option=""
[ $max ] && max_option="--max=$max" || max_option=""
[ $xmax ] && xmax_option="--xmax=$xmax" || xmax_option=""
i_sound.sh -s$size -o:sound$$ $file_option $device_option |
blaar_module.sh fftw f_fftw_spectrum --output=.spectrum$$ |
i_spectrum.sh -s$size $file_option $device_option -o.spectrum$$ |
o_gnuplot --label-max=$(calc "$samplerate/2") --text="xlabel 'Frequencies (Hz)'" $max_option $xmax_option
#specify the output names allows you to erase them later
#remove the used blc_channels
blc_channels --unlink /sound$$
blc_channels --unlink /spectrum$$
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment