1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-31 16:09:28 +02:00

Steve Daulton's fix to prevent NaNs

This commit is contained in:
v.audacity 2012-02-13 22:19:46 +00:00
parent 1047eb1765
commit 9af0547060

View File

@ -84,6 +84,11 @@ error-msg
(setf lower (min (first range) (second range)))
(setf upper (max (first range) (second range)))
;; Temporary fix to keep frequencies within valid range (see bug 152)
;; ToDo - fix this properly SD
(setf lower (min (truncate (/ *sound-srate* 2.0)) lower))
(setf upper (min (truncate (/ *sound-srate* 2.0)) upper))
(cond
((= bc 1) ; invert [delete] band of frequencies inside range