mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 15:49:41 +02:00
Update Nyquist system.lsp to the r288 version
It removes the "s-plot" function which, when defined as it was in our system.lsp, caused Nyquist initialization to fail.
This commit is contained in:
parent
caf36b42ca
commit
333c6905b1
@ -77,14 +77,25 @@
|
|||||||
;; we also need to save the location of this file so we can find
|
;; we also need to save the location of this file so we can find
|
||||||
;; nyquist-plot.txt, the command file for gnuplot
|
;; nyquist-plot.txt, the command file for gnuplot
|
||||||
;;
|
;;
|
||||||
(setf *runtime-path* (current-path))
|
;; This code is broken in the following ways:
|
||||||
(display "system.lsp" *runtime-path*)
|
;; it tries to run gnuplot even when plotting can be done by NyquistIDE
|
||||||
|
;; it plots "points.dat", but "points.dat" may not be correct
|
||||||
(setfn standard-s-plot s-plot)
|
;; (see *default-plot-file*)
|
||||||
|
;; it assumes the plot file is in the current directory, but it
|
||||||
(defun s-plot (s &optional (n 1000) (dur 2.0))
|
;; by default goes to the sound file directory
|
||||||
(let (plot-file)
|
;;
|
||||||
(standard-s-plot s n dur) ;; this calculates the data points
|
;; Fix this code or complain if you want to plot with gnuplot while
|
||||||
(setf plot-file (strcat *runtime-path* "nyquist-plot.txt"))
|
;; running ny (or even NyquistIDE (jny) if you want). Otherwise, use
|
||||||
(system (strcat "gnuplot -persist " plot-file))))
|
;; NyquistIDE to get s-plot to work.
|
||||||
|
;;
|
||||||
|
;(setf *runtime-path* (current-path))
|
||||||
|
;(display "system.lsp" *runtime-path*)
|
||||||
|
;
|
||||||
|
;(setfn standard-s-plot s-plot)
|
||||||
|
;
|
||||||
|
;(defun s-plot (s &optional (dur 2.0) (n 1000))
|
||||||
|
; (let (plot-file)
|
||||||
|
; (standard-s-plot s dur n) ;; this calculates the data points
|
||||||
|
; (setf plot-file (strcat *runtime-path* "nyquist-plot.txt"))
|
||||||
|
; (system (strcat "gnuplot -persist " plot-file))))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user