Tutorial 14: Player Attributes Referenceπ
To see all attributes:
You can see what effects are available by evaluating
Let's use the high pass filter for an example. You can see it's described
like so:
"<Fx 'highPassFilter' -- args: hpr, hpf>"
Each effect has a "master" argument and then child arguments. Here the
master argument is hpf (short for high pass filter) and the child argument
is hpr (short for high pass resonance). The effect is only added when the master argument is non-zero:
This sets the high pass filter to 4000 Hz so only frequences in the audio signal above that are actually heard. Let's change the resonance value. It's default value is 1, so let's make it smaller
Notice a difference? We can use patterns / vars in our effects to make them change over time:
Referenceπ
amp - Amplitude (defaults to 1)π
Sets the volume of the note/pattern
Half Volume
Creating a pattern with amp
amplify - Changes amp, by multiplying agasint the existing value (instead of overwritting)π
Creating a pattern with amp
Set up a "drop" in the music (Plays at full volume for 28, then 0 for 4)
bendπ
benddelay - See bendπ
bitsπ
The bit depth, in number of bits, that the signal is reduced to; this is a value between 1 and 24 where other values are ignored. Use crush to set the amount of reduction to the bitrate (defaults to 8)
bitcrush - See bitsπ
blurπ
bpf - Band Pass Filterπ
bpnoise - See bpfπ
bpr - See bpfπ
bpmπ
bufπ
channelπ
chopπ
'Chops' the signal into chunks using a low frequency pulse wave over the sustain of a note.
coarseπ
comb delay - See echoπ
crushπ
cutπ
Cuts a duration
p1 >> pluck(P[:8], dur=1/2, cut=1/8)
p1 >> pluck(P[:8], dur=1/2, cut=1/4)
p1 >> pluck(P[:8], dur=1/2, cut=1/2)
cutoffπ
decay - See echoπ
degree - The degree of the note, or pitch, can be specified by keyword (also the first positional)π
Which is the same as:
Only plays the "root" note of the chord
delay - A duration of time to wait before sending the information to SuperCollider (defaults to 0)π
Delays every 3 note by .1
Delays every 3 note by .5
Plays the note once for each different delays
p1 >> blip([0,1,2,3], delay=(0,0.1))
p1 >> blip([0,1,2,3], delay=(0,0.25))
p1 >> blip([0,1,2,3], delay=(0,.1,.2,.3))
distπ
dur - Durations (defaults to 1 and 1/2 for the Sample Player)π
echoπ
Title keyword: echo, Attribute keyword(s): decay
Sets the decay time for any echo effect in beats, works best on Sample Player (defaults to 0) Multiplied against the sustain value
d1 >> play("x-o-", echo=0.1)
d1 >> play("x-o-", echo=0.5)
p1 >> pluck(P[:8], echo=.25)
p1 >> pluck(P[:8], echo=.5)
p1 >> pluck(P[:8], echo=.5, decay=.5)
envπ
fmodπ
formantπ
freqπ
hpf - High Pass Filterπ
Filters out all the frequencies below given value, removing lower freqencies
# 4000 hertz
p1 >> pluck(P[:8], dur=1/2, hpf=4000)
# HPF is 0 for 4 beats, then 4000 for 4 beats
p1 >> pluck(P[:8], dur=1/2, hpf=var([0,4000],[4,4]))
# Linear change on hpf from 0 take 4 beats to get to 4000, 4 beats back to 0
p1 >> pluck(P[:8], dur=1/2, hpf=linvar([0,4000],[4,4]))
# Linear change on hpf from 0 take 8 beats to get to 4000, then reset back to 0
p1 >> pluck(P[:8], dur=1/2, hpf=linvar([0,4000],[8,0]))
# With resonance change (default is 1)
p1 >> pluck(P[:8], dur=1/2, hpf=linvar([0,4000],[8,0]), hpr=.5)
# With resonance change as a linvar
p1 >> pluck(P[:8], dur=1/2, hpf=linvar([0,4000],[8,0]), hpr=linvar([0.1,1],12))
hpr - See hpfπ
lpf - Low Pass Filterπ
Filters out all the frequencies above given value, removing higher freqencies
# 4000 hertz
p1 >> pluck(P[:8], dur=1/2, lpf=400)
# With resonance change as a linvar
p1 >> pluck(P[:8], dur=1/2, lpf=linvar([500,4000],[8,0]), lpr=linvar([0.1,1],12))
lpr - See lpfπ
midinoteπ
panπ
Panning, where -1 is far left, 1 is far right (defaults to 0)
pitch - See degreeπ
pshiftπ
octπ
rateπ
Variable keyword used for misc. changes to a signal. E.g. Playback rate of the Sample Player (defaults to 1)
roomπ
Title keyword: room, Attribute keyword(s): mix
The room argument specifies the size of the room
Mix is the dry/wet mix of reverb or how much the reverb is mixed with the source. 1 is all reverb, 0 is no reverb at all. (Default 0.1)
Revebπ
See Room
sampleπ
Special keyword for Sample Players; selects another audio file from the bank of samples for a sample character.
scaleπ
shapeπ
slide - Slide Toπ
Slides' the frequency value of a signal to freq * (slide+1) over the duration of a note (defaults to 0)
p1 >> pluck(P[:8], dur=1/2, slide=1)
p1 >> pluck(P[:8], dur=1/2, slide=12)
p1 >> pluck(P[:8], dur=1/2, slide=var([0,-1],[12,4]))
slidedelayπ
slidefromπ
sliderπ
spreadπ
spinπ
striateπ
stutterπ
sus - Sustain (defaults to dur)π
swellπ
vib - Vibratoπ
Vibrato - Title keyword: vib, Attribute keyword(s): Vibrato (defaults to 0)
With child attribute, vibdepth (default 0.2)