Hi, Partial application was removed in 2.1.x: https://www.liquidsoap.info/doc-dev/migrating.html#partial-application
This would be the way to do it now: low = fun (s) -> filter.iir.eq.low(frequency = 300., s) mh = fun (s) -> filter.iir.eq.high(frequency = 180., s) mid = fun (s) -> filter.iir.eq.low(frequency = 1800., s) high = fun (s) -> filter.iir.eq.high(frequency = 1366., s) Le mar. 2 mai 2023 à 17:38, p····· g······· <pra...@gmail.com> a écrit : > hiya! > > i took the plunge to see how 2.2 works on windows! > well, i made it work but had to turn some multiband compressor off. > it used to go like this: > > > ------------------------------------------------------------------------------------------ > def loudnesswar(s) > # 3-band crossover > low = filter.iir.eq.low(frequency = 300.) > mh = filter.iir.eq.high(frequency = 180.) > mid = filter.iir.eq.low(frequency = 1800.) > high = filter.iir.eq.high(frequency = 1366.) > > # Add back > compressed = add(normalize = false, > [ compress(attack = 100., release = 200., threshold = -20., > ratio = 2.8, gain = 8.0, knee = 9.0, > low(s)), > compress(attack = 100., release = 200., threshold = -24., > ratio = 2.0, gain = 9.0, knee = 9.0, > mid(mh(s))), > compress(attack = 100., release = 200., threshold = -20., > ratio = 2.4, gain = 6.0, knee = 9.0, > high(s)) > ]) > limit(attack=0.01, release=5000., threshold=-2., compressed) > #ladspa.fastlookaheadlimiter(limit=-1.0, release_time=0.08, compressed) > end > > radio = loudnesswar(normalize_music(radio)) > > ----------------------------------------------------------------------------------------------------- > > > it throws this: > > low = filter.iir.eq.low(frequency = 300.) > > Error 15: Missing arguments in function application: source('A). > > ----------------------- > > i've read about "Partial application" and tried to tweak this code in > several ways but the error remained the same and i gave up eventually. > > that happens with liquidsoap-8101608-2.2.0-win64.zip................ > > > cheers, > P > > > > > > _______________________________________________ > Savonet-users mailing list > Savonet-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/savonet-users >
_______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users