-
... .0; ( mag: ((re * re) + (im * im)).sqrt, phase: atan2(im, re) ) }; ~findSpectralPeaksV541 = { |sig, start, fftSize, sr, minFreq, maxFreq, maxPeaks| var spec, binMin, binMax, raw, peaks; spec = ~fftComplexFrameV541.(sig, start, fftSize); bin ...
-
... umber of partials kept (sorted by strength). nil = keep all var <>sortMode; // \peak (default), \energy, or \none — how to rank partials var peakDetector; var peakTracker; var result; // Z354Sound result var cosTableCache; // Cached FFT cos ...
-
// Automated tests for bendenv peak alignment (cumulative-integral inversion). // Run headless: sclang Testcode/tests/bendenv_align_tests.scd // Prints TESTS_PASSED or TESTS_FAILED <n> and exits with matching status code. ( var failures = 0 ...
-
... ///////////////////////////////////////////////////////////////////////// // ATSPeakDetector.sc // Peak detection via parabolic interpolation on FFT magnitudes // Port of peak-detection.lisp from ATS-CUDA /////////////////////////////////// ...
-
... , <>thdiv, <>maFactor1,<>maFactor2; var <crossOn, <crossIDon, <crossIDoff, <lastPeak, <peakUp, <movingAverage1, <movingAverage2, <peaks; *new{ |ltl,stl,tn,tf,td,maf| ^super.new.init(ltl,stl,tn,tf,td,maf); } init{ |ltl,stl,tn,tf,td,maf| ltle ...
-
... .copy.do{|voice| if(ids.includes(voice.gestureID)) { voice.gateOff }; }; }; } //Peak-normalization gain for one (sample, section): align sample peaks to //SSampler.headroomRef when the owning sampler has normalize enabled. *normGainFor {|sa ...
-
/* \peak Parametric equalizer freq: cutoff frequency. rq: the reciprocal of Q. bandwidth / cutoffFreq db: boost/cut the center frequency (in dBs). -- this is an Udef definition file part of the Unit lib default Udefs set */ Udef( \peak, { | ...
-
/* \peak Parametric equalizer freq: cutoff frequency. rq: the reciprocal of Q. bandwidth / cutoffFreq db: boost/cut the center frequency (in dBs). -- this is an Udef definition file part of the Unit lib default Udefs set */ Udef( \peak, { | ...
-
// Listening test: peak alignment under bendenv (2026-07 cumulative-integral rewrite). // The automated math tests live in Testcode/tests/bendenv_align_tests.scd (run headless). // This script is for the ears: with the fix, every chord belo ...
-
>> blkset 1 freq peak == radpost == Ndef('mod1', {arg in=1, mul=1, add=0, lag=0; var sig, chain, freq, mag; sig = SoundIn.ar( (in-1).max(0) ); chain = FFT(LocalBuf(2048), sig); # freq, mag = FFTPeak.kr(chain); (freq.explin(20,20000,-1,1) * ...