What "_" underscores meaning in supercollider?

Hello;
What “_” underscores meaning in supercollider? I know that ‘Partial application’ is a way to create a function by passing only some arguments to a method. But in this example, What does it mean?

(
OSCdef.new(\noise, {
	arg msg;
	msg.postln;
	{~sl.value_(msg[3])}.defer; //Lo que está haciendo "_ "es reemplazar una declaración de argumento "n "
	
} , '/noiseamp')

)
2 Likes

Usually, that is a short hand for setters on a settable value. what is ~sl?

a = SomeClass.new;
a.someVarValue = 0.2;
a.someVarValue_(0.2);

These are equivalent examples … the advantage of the _ version is you can append many calls on the same line

a.someVarValue_(0.2).someOtherValue_(0.3);

is valid
Josh

1 Like

Thank you very much, it is tremendous to be a newly :person_facepalming: :person_facepalming:

no problem! that’s why we have a forum

1 Like