Rename position to pos

This commit is contained in:
2024-05-30 00:01:33 +02:00
parent 208826fd66
commit 4923eedb3f

View File

@ -21,22 +21,22 @@
} }
limiter { limiter {
arg level=1.0, position=950, wet=1; arg level=1.0, pos=950, wet=1;
this.fx(position, wet, { |in| this.fx(pos, wet, { |in|
Limiter.ar(in: in, level: level, dur: 0.01) Limiter.ar(in: in, level: level, dur: 0.01)
}) })
} }
compressor { compressor {
arg sidechainIn=false, sidechain=0, ratio=4, threshold=40.neg, arg sidechainIn=false, sidechain=0, ratio=4, threshold=40.neg,
attack=0.1, release=100.01, makeup=0.5, automakeup=1, position=950, wet=1; attack=0.1, release=100.01, makeup=0.5, automakeup=1, pos=950, wet=1;
var sideChainValue; var sideChainValue;
if (sidechainIn.not, { if (sidechainIn.not, {
var sideChainValue = 0; var sideChainValue = 0;
}, { }, {
var sideChainValue = sidechainIn; var sideChainValue = sidechainIn;
}); });
this.fx(position, wet, { |in| this.fx(pos, wet, { |in|
DCompressor.ar(in, DCompressor.ar(in,
sidechainIn: sideChainValue, sidechainIn: sideChainValue,
sidechain: sidechain, sidechain: sidechain,
@ -53,8 +53,8 @@
flanger { flanger {
/* FIX: Make it better than it currently is */ /* FIX: Make it better than it currently is */
arg modSpeed=0.1, modDepth=0.01, position=950, wet=1; arg modSpeed=0.1, modDepth=0.01, pos=950, wet=1;
this.fx(position, wet, { this.fx(pos, wet, {
arg in; arg in;
var lfo = SinOsc.kr(modSpeed, 3pi / 2).range(0.001, modDepth); var lfo = SinOsc.kr(modSpeed, 3pi / 2).range(0.001, modDepth);
var delay = DelayL.ar(in, 0.01, lfo); var delay = DelayL.ar(in, 0.01, lfo);
@ -64,8 +64,8 @@
phaser { phaser {
/* TODO: implement */ /* TODO: implement */
arg position=950, wet=1; arg pos=950, wet=1;
this.fx(position, wet, { this.fx(pos, wet, {
arg in; arg in;
in in
}) })
@ -73,8 +73,8 @@
grain { grain {
/* Experimental live audio granular effect */ /* Experimental live audio granular effect */
arg grains=32, dur= 0.1, position=950, wet=1; arg grains=32, dur= 0.1, pos=950, wet=1;
this.fx(position, wet, { |in| this.fx(pos, wet, { |in|
var signal = DelayN.ar(in, 0.2, 0.2) * 0.7; var signal = DelayN.ar(in, 0.2, 0.2) * 0.7;
var modulatedSignal = GrainIn.ar( var modulatedSignal = GrainIn.ar(
numChannels: 2, numChannels: 2,
@ -89,8 +89,8 @@
rings { rings {
/* TODO: adapt with audio rate pattern capabilities */ /* TODO: adapt with audio rate pattern capabilities */
arg pitch=60, trig=0, struct=0.25, bright=0.5, arg pitch=60, trig=0, struct=0.25, bright=0.5,
damp=0.5, pos=0.25, model=0, position=950, wet=1; damp=0.5, position=0.25, model=0, position=950, wet=1;
this.fx(position, wet, { |in| this.fx(pos, wet, { |in|
MiRings.ar( MiRings.ar(
in: in, in: in,
trig: trig, trig: trig,
@ -98,7 +98,7 @@
struct: struct, struct: struct,
bright: bright, bright: bright,
damp: damp, damp: damp,
pos: pos, pos: position,
model: model, model: model,
poly: 1, poly: 1,
) )
@ -107,9 +107,9 @@
distort { distort {
arg cutoff=600, gain=0.5, harmonics=0, arg cutoff=600, gain=0.5, harmonics=0,
lowgain=0.1, highgain=0.1, position=950, lowgain=0.1, highgain=0.1, pos=950,
wet=1; wet=1;
this.fx(position, wet, { this.fx(pos, wet, {
arg in; arg in;
AnalogVintageDistortion.ar( AnalogVintageDistortion.ar(
in, in,
@ -124,8 +124,8 @@
} }
crush { crush {
arg rate=Server.default.sampleRate, bits=24, position=950, wet=1; arg rate=Server.default.sampleRate, bits=24, pos=950, wet=1;
this.fx(position, wet, { this.fx(pos, wet, {
arg in; arg in;
Decimator.ar( Decimator.ar(
in, in,
@ -137,8 +137,8 @@
} }
shift { shift {
arg ratio=1, dispersion= 0.0, time=0.0, position=950, wet=1; arg ratio=1, dispersion= 0.0, time=0.0, pos=950, wet=1;
this.fx(position, wet, { this.fx(pos, wet, {
arg in; arg in;
PitchShift.ar( PitchShift.ar(
in: in, in: in,
@ -151,8 +151,8 @@
} }
verb { verb {
arg time=0.5, damp=0.5, freeze=0, position=950, wet=1; arg time=0.5, damp=0.5, freeze=0, pos=950, wet=1;
this.fx(position, 1, { this.fx(pos, 1, {
arg in; arg in;
MiVerb.ar( MiVerb.ar(
inputArray: in, inputArray: in,
@ -165,8 +165,8 @@
} }
delay { delay {
arg time=2, slice=0.125, decay=1, position=950, wet=1; arg time=2, slice=0.125, decay=1, pos=950, wet=1;
this.fx(position, wet, { this.fx(pos, wet, {
arg in; arg in;
CombC.ar( CombC.ar(
in: in, in: in,
@ -178,16 +178,16 @@
} }
lpf { lpf {
arg cutoff=10000, resonance=0.5, position=950, wet=1; arg cutoff=10000, resonance=0.5, pos=950, wet=1;
this.fx(position, wet, { this.fx(pos, wet, {
arg in; arg in;
RLPF.ar(in, cutoff, resonance); RLPF.ar(in, cutoff, resonance);
}) })
} }
mooglpf { mooglpf {
arg cutoff=10000, resonance=0.5, saturation=0.95, position=950, wet=1; arg cutoff=10000, resonance=0.5, saturation=0.95, pos=950, wet=1;
this.fx(position, wet, { this.fx(pos, wet, {
arg in; arg in;
BMoog.ar( BMoog.ar(
in: in, in: in,
@ -200,8 +200,8 @@
} }
vlpf2 { vlpf2 {
arg cutoff=10000, resonance=0.5, position=950, wet=1; arg cutoff=10000, resonance=0.5, pos=950, wet=1;
this.fx(position, wet, { this.fx(pos, wet, {
arg in; arg in;
VadimFilter.ar( VadimFilter.ar(
in, in,
@ -213,8 +213,8 @@
} }
vlpf4 { vlpf4 {
arg cutoff=10000, resonance=0.5, position=950, wet=1; arg cutoff=10000, resonance=0.5, pos=950, wet=1;
this.fx(position, wet, { this.fx(pos, wet, {
arg in; arg in;
VadimFilter.ar( VadimFilter.ar(
in, in,
@ -226,8 +226,8 @@
} }
mooghpf { mooghpf {
arg cutoff=10000, resonance=0.5, saturation=0.95, position=950, wet=1; arg cutoff=10000, resonance=0.5, saturation=0.95, pos=950, wet=1;
this.fx(position, wet, { this.fx(pos, wet, {
arg in; arg in;
BMoog.ar( BMoog.ar(
in: in, in: in,
@ -240,8 +240,8 @@
} }
moogbpf { moogbpf {
arg cutoff=10000, resonance=0.5, saturation=0.95, position=950, wet=1; arg cutoff=10000, resonance=0.5, saturation=0.95, pos=950, wet=1;
this.fx(position, wet, { this.fx(pos, wet, {
arg in; arg in;
BMoog.ar( BMoog.ar(
in: in, in: in,
@ -255,16 +255,16 @@
hpf { hpf {
arg cutoff=10000, resonance=0.5, position=950, wet=1; arg cutoff=10000, resonance=0.5, pos=950, wet=1;
this.fx(position, wet, { this.fx(pos, wet, {
arg in; arg in;
RHPF.ar(in, cutoff, resonance); RHPF.ar(in, cutoff, resonance);
}) })
} }
vhpf2 { vhpf2 {
arg cutoff=10000, resonance=0.5, position=950, wet=1; arg cutoff=10000, resonance=0.5, pos=950, wet=1;
this.fx(position, wet, { this.fx(pos, wet, {
arg in; arg in;
VadimFilter.ar( VadimFilter.ar(
in, in,
@ -276,8 +276,8 @@
} }
vhpf4 { vhpf4 {
arg cutoff=10000, resonance=0.5, position=950, wet=1; arg cutoff=10000, resonance=0.5, pos=950, wet=1;
this.fx(position, wet, { this.fx(pos, wet, {
arg in; arg in;
VadimFilter.ar( VadimFilter.ar(
in, in,
@ -289,16 +289,16 @@
} }
bpf { bpf {
arg cutoff=10000, resonance=0.5, position=950, wet=1; arg cutoff=10000, resonance=0.5, pos=950, wet=1;
this.fx(position, wet, { this.fx(pos, wet, {
arg in; arg in;
BPF.ar(in, cutoff, resonance); BPF.ar(in, cutoff, resonance);
}) })
} }
vbpf2 { vbpf2 {
arg cutoff=10000, resonance=0.5, position=950, wet=1; arg cutoff=10000, resonance=0.5, pos=950, wet=1;
this.fx(position, wet, { this.fx(pos, wet, {
arg in; arg in;
VadimFilter.ar( VadimFilter.ar(
in, in,
@ -310,8 +310,8 @@
} }
vbpf4 { vbpf4 {
arg cutoff=10000, resonance=0.5, position=950, wet=1; arg cutoff=10000, resonance=0.5, pos=950, wet=1;
this.fx(position, wet, { this.fx(pos, wet, {
arg in; arg in;
VadimFilter.ar( VadimFilter.ar(
in, in,
@ -323,8 +323,8 @@
} }
brf { brf {
arg cutoff=10000, resonance=0.5, position=950, wet=1; arg cutoff=10000, resonance=0.5, pos=950, wet=1;
this.fx(position, wet, { this.fx(pos, wet, {
arg in; arg in;
BRF.ar(in, cutoff, resonance); BRF.ar(in, cutoff, resonance);
}) })