Gen~ csound ladder filter example

ward de jager's icon

I'm a bit confused , under help?gen?examples/moogladder , there is a port of the Csound moog ladder .

When going in the poly~ ( for oversampling ), then into gen~ , all I see in the gen~ codebox are declarations for the arguments , but no actual filter code .
require("moogLadderFilter")

cf = clip(in2, 20., (samplerate / 4.));

res = clip(in3, 0., 1.);

out1 = moogLadder(in1, cf, res);

out2 = samplerate;

Where is the actual dsp code that does the heavy lifting ?

I assume : require " moogladderfilter " is the code I am looking for , is it referenced outside of the patcher ( iow not loaded with the pacther ) ?


👽'tW∆s ∆lienz👽's icon

ya, i've been a little annoyed they do it this way, but at least on Mac, i go to the Max app icon, right+click to "Show Package Contents" then it's at: 'Contents'/'Resources'/'Examples'/'gen'/'moogLadderFilter.genexpr'

(Windows will have a similar filetree somewhere...)

i can then open up the '.genexpr' file in Sublime or similar IDE/text-editor to view the code.

[EDIT: on Windows, it's in 'Program Files'->'Cycling'74'->'Max 9'->'examples'... etc... i guess that's just the examples folder, but you can finder/file-explore it there and open it separately in any text editor outside Max]

[2ndEDIT: personally i wish i could type into a new object something like 'codebox @code moogLadderFilter.genexpr' and it would show me the code, but doesn't seem to be available in any easy way like that within the gen/codebox environ]