SuperCollider : SynthDefs

SuperCollider :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
Architecture du serveur < Index > Passage de Message


SynthDef

représentation dans le langage d'une définition de la synthèse

Envoi au serveur

le SynthDef, pour être utilisé, doit être passé au Serveur.
trois méthodes possibles:

Fonctions UGen Graph

[UGen Graph Functions and Special Argument Forms]

trois types d'arguments spéciaux:
initial rate

trigger rate

litteral array

éléments statiques, éléments dynamiques

(

SynthDef("help-notRand", { Out.ar(0, SinOsc.ar(rrand(400, 800), 0, 0.2)
 * Line.kr(1, 0, 1, doneAction: 2)); }).send(s);

)

a = Synth("help-notRand");

b = Synth("help-notRand"); // the same freq as a

L'exemple suivant génèrera une fréquence aléatoire différente pour chaque nouveau Synth:
(

SynthDef("help-isRand", { Out.ar(0, SinOsc.ar(Rand(400, 800), 0, 0.2)

 * Line.kr(1, 0, 1, doneAction: 2)); }).send(s);

)

a = Synth("help-isRand");

b = Synth("help-isRand"); // une nouvelle freq à chaque évaluation



Architecture du serveur < Index > Passage de Message

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.3
Page was generated in 0.1662 seconds