[CM] Two issues

cristopher pierson ewing cewing@u.washington.edu
Tue, 25 Feb 2003 14:30:54 -0800 (PST)


Hi, all.  Two things to ask today.

#1.  Is the square-wave generator broken?  I've been playing with
waveforms, and get the following error when trying to run an instrument
with a square wave: (i included a zoom, for convenience)

Error: `NIL' is not of the expected type `(OR INTEGER FLOAT RATIO)'
  [condition type: TYPE-ERROR]

Restart actions (select using :continue):
 0: abort current note.
 1: close files and return to top-level.
 2: jump past remaining notes.
 3: Return to Top Level (an "abort" restart).
 4: Abort entirely from this process.
[1] CM(24): :zoom
Evaluation stack:

   (ERROR TYPE-ERROR :DATUM ...)
 ->(DOUBLE-FLOAT NIL)
   ((METHOD CLM::GEN-LOAD (SQUARE-WAVE T T T T))
      #<square-wave: freq: 0.014 (100 Hz), phase: 0.0 (0 degrees), base:
1.000, current-value: 0.0> 23 ...)
   (CLM::LOAD-VARS 23 11 ...)
   (RINGMOD "/Users/cewing/SND/samples/glassandstone/rwGlass2clean.aif" 0
...)
   (CATCH :FINISH (RINGMOD PATH 0 ...))
   [... EXCL::%EVAL ]
   (RETURN-FROM #:|Tag83| (CATCH :FINISH #))
   [... EXCL::EVAL-AS-PROGN ]
   (LET* (#) (RETURN-FROM #:|Tag83| #))
   [... EXCL::EVAL-AS-PROGN ]
   (LET* NIL (EXCL::RESTART-BIND-IF T # ...))

... more older frames ...
[1] CM(25):

Also, along these same lines, attempting to set the width of the square
wave pulse-(setf (mus-width wave) some-num)-reports that there is no
setf for mus-width.  Can this be right?

And finally, are the waveforms produced by square-wave, triangle-wwave,
and sawtooth-wave band-limited?

Number 2:

With regard to filters in CLM.  What is the valid scale for the
'frequency-response-envelope' passed to 'envelope->coeffs?' From the
example in the manual, it appears to be 0-1 on both axes.  I assume that
one axis is frequency and the other is amplitude, but how does 0-1 map to
frequency?  Is 1 equal to the nyquist frequency?

Thanks for any input.

Cris



********************************
Cris Ewing
CARTAH Assistant
University of Washington
Home Phone: (206) 365-3413
E-mail: cewing@u.washington.edu
*******************************