1const t={id:"sample-rate-test",title:"Sample Rate Test",description:"Resampling quality and aliasing detection.",category:"System Tests",defaultSettings:{targetRate:48e3,testSignal:"nyquist",frequency:22050,playing:!1},createNodes(t,e){const a=t.createOscillator(),s=t.createAnalyser() 2return s.fftSize=8192,a.connect(s),s.connect(e),{oscillator:a,analyser:s,isStarted:!1}},start(t,e,a){t.oscillator.frequency.value=e.frequency,t.isStarted||(t.oscillator.start(),t.isStarted=!0)},stop(t){t.isStarted&&(t.oscillator.stop(),t.isStarted=!1)},updateSettings(t,e,a){t.isStarted&&(t.oscillator.frequency.value=e.frequency)},keyboard:{handlers:{" ":t=>({playing:!t.playing})}},visualization:{type:"aliasing-display"},controls:{showPlayButton:!0,infoText:"Test sample rate conversion. Nyquist frequency reveals aliasing."}} 3export{t as default}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.