Spectrum_draw.praat 371 B

12345678910111213
  1. # test/fon/Spectrum_draw.praat
  2. # Paul Boersma 2017-08-28
  3. # There used to be a bug that caused Praat to crash with an assert message
  4. # if you drew a Spectrum that contained undefined values.
  5. sound = Create Sound as pure tone: "tone", 1, 0, 0.4, 44100, 440, 0.2, 0.01, 0.01
  6. spec = To Spectrum: "yes"
  7. Formula: ~ self / 0
  8. Draw: 0, 0, 0, 0, "yes"
  9. removeObject: sound, spec