Last active
December 28, 2015 14:38
-
-
Save tonussi/7515829 to your computer and use it in GitHub Desktop.
Rinzler.sc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -- coding: utf-8 | |
# program: rinzler.sc | |
( | |
SynthDef.new(\senoide, { // nome do synth e início da função principal. | |
arg freq=440, amp=0.5; // argumentos recebidos pelo synth com valores padrão determinados | |
var audio; // variáveis que serão usadas dentro do Synth | |
audio = SinOsc.ar(freq,0,amp); // Gerando a senoide com os argumentos recebidos. | |
Out.ar(0,audio); // mandando o audio para a saida. | |
} // fechando a função principal | |
).send(s); // enviando synth para servidor 's' | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment