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:
parent
1047eb1765
commit
9af0547060
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user