diff options
Diffstat (limited to 'conv.awk')
| -rw-r--r-- | conv.awk | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,7 +4,8 @@ # [PoC] linear convolution (with hardcoded IR window).
BEGIN {
- X = ARGV[1]
+ ARGV[1] ? X = ARGV[1] : X = 0
+ ARGV[2] ? OFMT = "%." ARGV[2] "g" : OFMT = "%g"
input_size = split(X, X_arr)
#H = "1.0 1.0 1.0" # rect
#H = "0.25 0.50 0.25" # von Hann
|
