okey dokey.
(https://github.com/catfact/WaveSpecter/releases/tag/v0.0.1)
logarithmic frequency scaling is now the default and the height argument works. NB that the order of arguments has changed.
to force linear scaling, enter “lin” in the 3rd argument (case sensitive)
for example, with lin scale and height=120px:
wavespecter input.wav output.png lin 120
if you want log scaling and also want to specify a height, put whatever in the 3rd argument:
wavespecter input.wav output.png logabloobloo 120
PS. i know this argument parsing system is stupid. on *nix i would usually use getopt. but i don’t know a good/easy way of doing that for windows as well, didn’t want to look too hard, and definitely don’t want to roll my own. (anyone have an idea?)
PS.2. i had a moment of self-inflicted mindf*ckery trying to decide how people deal with DC in a log frequency scale. i decided not to worry about it, assume that zero in = zero out, and start interpolating from the first non-zero index. copious code commenting ensued. (anyone have another idea?)
PS.3. if you want to do a lot of batch image processing (say, rescaling) it could be worth learning a bit of imagemagick (fair warning - that shit gets deep.) but whatever works of course.