Commit d80e190a authored by Arnaud Blanchard's avatar Arnaud Blanchard

Make sinusoid to be in [-1,1] instead of [0,1]

parent 663f99e1
......@@ -39,7 +39,7 @@ if [ $filename ]; then
blaar_module sndfile i_sndfile --file=$filename --size=$size --samplerate=$samplerate $output_option
elif [ $frequency ]; then
echo "Generating sinusoïd at $frequency Hz" >&2
i_oscillator --frequency=$frequency --size=$size --refresh=$(calc $size/$samplerate*1000) $output_option
i_oscillator --min=-1 --frequency=$frequency --size=$size --refresh=$(calc $size/$samplerate*1000) $output_option
elif [ $(uname) = "Darwin" ]; then #microphone
echo "Coreaudio microphone" >&2
[ $device ] && echo "On Darwin you cannot precise microphone (-D)"
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