Ge Wangupdated tests3a080483 years agoHistory
50 lines · 1.3 KB · Text
RawDownload
// testing for filter blowup | 1.5.0.0 (ge) added// NOTE: intended to be run with --silent//// filter explosions observed, before this commit d53cdfb// https://github.com/ccrma/chuck/commit/d53cdfbf448c1c52a760fc2769e94204ad3a6f4d//// macOS (64-bit, macOS Venture)// *** BLOW UP at time: 19.815533 value: 100.037407 freq: 0.100000 Q: 7.844161// linux (64-bit, planetCCRMA)// *** BLOW UP at time: 33.817312 value: 100.002319 freq: 0.100000 Q: 1.309424// windows (32-bit and 64-bit, windows 10)// *** BLOW UP at time: 18.635624 value: 100.004440 freq: 0.100000 Q: 9.886994//// author: Ge Wang// date: Winter 2023 // blackhole for maximum safety from filter explosionStep n => LPF f => blackhole; // sus.1 => f.freq;// set step function1 => n.next;// did we detect blow upfalse => int blowup; // laternow + 50::second => time later;// go until laterwhile( now < later ){    // sweep Q    .001 + 10*(1+Math.cos(now/second))/2 => f.Q;    1::samp => now;        // consider this a blow up    if( f.last() > 100 )    {        // note        <<< "*** BLOW UP at time:", now/second, "value:", f.last(),            "freq:", f.freq(), "Q:", f.Q() >>>;        // flag        true => blowup;        // bail        break;    }} // no blow up? greatif( !blowup ) <<< "success" >>>;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t