I am a super newbie in SuperCollider. I was wondering if it is possible to create a short impulse with a certain frequency. I suppose that impulses do not have frequency because they are too short? So I wonder if it’s possible to create an impulse, long enough to create the percept of a tone with a certain frequency (short-duration since wave). Is this possible?
Sure, as a starting point you can check short envelopes multiplied with an arbitrary source. For the envelope you can take EnvGen, Decay(2) and a number of others. For quick testing of perceptional thresholds you can plug a MouseX into the decay/release time.
x = { Decay2.ar(Impulse.ar(1), 0.01, 0.03) * SinOsc.ar(1000, 0, 0.1) }.play
x.release
// or use Env with perc, triangle etc.
x = {
EnvGen.ar(Env.triangle(MouseX.kr(0.001, 0.1, 1).poll), Impulse.ar(1)) *
SinOsc.ar(1000, 0, 0.1)
}.play
x.release