[pitch~] – 2 bugs
I finally had some time to find a more or less repeatable procedure to show some problems with [pitch~] which annoyed me recently.
Max5.0.7, OSX.5.7, intel
Start Max and create a new patcher;
instantiate a [pitch~], open its help file;
start the [dac~] in the help file, and check it works (with the phasor input for instance);
close the help file, and the unsaved patcher.
Create a new patcher, instantiate a [pitch~] again, open its help file and start the [dac~] there. Check it works… it doesn’t for me, there is no analyse performed.
Delete the [pitch~] instance in the unsaved patcher, Max will crash quite often after a couple of seconds (sorry, I couldn’t find a reproductible pattern):
Thread 8 Crashed:
0 com.mzed.pitch~ 0x164ec634 fftComplex + 21665
1 com.mzed.pitch~ 0x164ec7fa realfft + 94
2 com.mzed.pitch~ 0x164eca88 fftRealfast + 48
3 com.mzed.pitch~ 0x164ef0aa pitch_tick + 149
4 com.cycling74.MaxMSP 0×00025753 sched_takepoll + 461
5 com.cycling74.MaxMSP 0x0005f02c systimer_takeaction + 110
6 com.cycling74.MaxAudioAPI 0x167672a9 ad_process + 410
7 com.cycling74.ad_coreaudio 0x1728e14d coreaudio_onedevice_ioproc + 254
8 com.apple.audio.CoreAudio 0x96dde177 HP_IOProc::Call(AudioTimeStamp const&, AudioTimeStamp const&, AudioBufferList const*, AudioTimeStamp const&, AudioBufferList*) + 319
9 com.apple.audio.CoreAudio 0x96ddde68 IOA_Device::CallIOProcs(AudioTimeStamp const&, AudioTimeStamp const&, AudioTimeStamp const&) + 274
10 com.apple.audio.CoreAudio 0x96dddd44 HP_IOThread::PerformIO(AudioTimeStamp const&) + 1246
11 com.apple.audio.CoreAudio 0x96ddc11f HP_IOThread::WorkLoop() + 1239
12 com.apple.audio.CoreAudio 0x96ddbc43 HP_IOThread::ThreadEntry(HP_IOThread*) + 17
13 com.apple.audio.CoreAudio 0x96dcc480 CAPThread::Entry(CAPThread*) + 96
14 libSystem.B.dylib 0×96733155 _pthread_start + 321
15 libSystem.B.dylib 0×96733012 thread_start + 34
I’m having trouble reproducing that, but I’ll look into it.
I’d like to redo the whole analyzer~ suite with a better fft~ at some point. This one is getting a little old.
Also, if pitch~ isn’t working, I find that toggling the dac tends to get things started.