rsc3/doc-schelp/Help-3.12.2/Classes/VOSIM.html

81 lines
No EOL
5.3 KiB
HTML

<!doctype html><html lang='en'><head><title>VOSIM | SuperCollider 3.12.2 Help</title>
<link rel='stylesheet' href='./../scdoc.css' type='text/css' />
<link rel='stylesheet' href='./../codemirror.css' type='text/css' />
<link rel='stylesheet' href='./../editor.css' type='text/css' />
<link rel='stylesheet' href='./../frontend.css' type='text/css' />
<link rel='stylesheet' href='./../custom.css' type='text/css' />
<meta name='viewport' content='width=device-width, initial-scale=1'>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
<script src='./../lib/jquery.min.js'></script>
<script src='./../lib/codemirror-5.39.2.min.js' type='text/javascript'></script>
<script src='./../lib/codemirror-addon-simple-5.39.2.min.js' type='text/javascript'></script>
<script>
var helpRoot = './..';
var scdoc_title = 'VOSIM';
var scdoc_sc_version = '3.12.2';
</script>
<script src='./../scdoc.js' type='text/javascript'></script>
<script src='./../docmap.js' type='text/javascript'></script>
<script src='qrc:///qtwebchannel/qwebchannel.js' type='text/javascript'></script>
</head>
<body onload='fixTOC()'>
<div id='toc'>
<div id='toctitle'>VOSIM:</div>
<span class='toc_search'>Filter: <input id='toc_search'></span><ul class='toc'><li class='toc1'><a href='#classmethods'>Class methods</a></li>
<ul class='toc'><li class='toc3'><a href='#*ar'>ar</a> </li>
<li class='toc2'><a href='#Inherited%20class%20methods'>Inherited class methods</a></li>
</ul><li class='toc1'><a href='#instancemethods'>Instance methods</a></li>
<ul class='toc'><li class='toc2'><a href='#Inherited%20instance%20methods'>Inherited instance methods</a></li>
</ul><li class='toc1'><a href='#examples'>Examples</a></li>
<ul class='toc'></ul></ul></div><div id='menubar'></div>
<div class='contents'>
<div class='header'>
<div id='label'>
<span id='folder'>Classes (extension)</span>
| <span id='categories'><a href='./../Browse.html#UGens'>UGens</a>&#8201;&gt;&#8201;<a href='./../Browse.html#UGens>Generators'>Generators</a></span>
</div><h1>VOSIM<span id='superclasses'> : <a href="../Classes/UGen.html">UGen</a> : <a href="../Classes/AbstractFunction.html">AbstractFunction</a> : <a href="../Classes/Object.html">Object</a></span>
<div class='extension-indicator-ctr' title='This help file originates from a third-party quark or plugin for SuperCollider.'><img class='extension-indicator-icon' alt='Extension' src='./../images/plugin.png'><span class='extension-indicator-text'>Extension</span></div></h1>
<div id='summary'>vosim pulse generator</div>
</div>
<div class='subheader'>
<div id='filename'>Source: <a href='file:///Users/zzk/Library/Application Support/SuperCollider/Extensions/SC3plugins/VOSIMUGens/VOSIM.sc' title='/Users/zzk/Library/Application Support/SuperCollider/Extensions/SC3plugins/VOSIMUGens/VOSIM.sc'>VOSIM.sc</a></div></div>
<h2><a class='anchor' name='classmethods'>Class Methods</a></h2>
<h3 class='method-code'><span class='method-prefix'>VOSIM.</span><a class='method-name' name='*ar' href='./../Overviews/Methods.html#ar'>ar</a>(<span class='argstr'>trig: 0.1</span>, <span class='argstr'>freq: 400.0</span>, <span class='argstr'>nCycles: 1</span>, <span class='argstr'>decay: 0.9</span>, <span class='argstr'>mul: 1.0</span>, <span class='argstr'>add: 0.0</span>)</h3>
<div class='method'><h4>Arguments:</h4>
<table class='arguments'>
<tr><td class='argumentname'>trig<td class='argumentdesc'>
<p>[ar kr] starts a vosim pulse when a transition from non-positive to positive occurs and no other vosim is still going. audio rate input will produce sample accurate triggering.<tr><td class='argumentname'>freq<td class='argumentdesc'>
<p>[ar kr] the frequency of the squared sinewave.<tr><td class='argumentname'>nCycles<td class='argumentdesc'>
<p>the number of squared sinewaves to use in one vosim pulse. nCycles gets checked when VOSIM receives a trigger.<tr><td class='argumentname'>decay<td class='argumentdesc'>
<p>the decay factor.</table></div><h3><a class='anchor' name='Inherited%20class%20methods'>Inherited class methods</a></h3>
<div id='inheritedclassmets'></div><h2><a class='anchor' name='instancemethods'>Instance Methods</a></h2>
<h3><a class='anchor' name='Inherited%20instance%20methods'>Inherited instance methods</a></h3>
<div id='inheritedinstmets'></div><h2><a class='anchor' name='examples'>Examples</a></h2>
<textarea class='editor'>s.boot;
z = {VOSIM.ar(Impulse.ar(100), MouseX.kr(440, 880, 1), 3, 0.99)}.play;
z.free;
(
z = {
var p,t,f,n,d,a,l,x,y,z,x_,y_;
p = TRand.ar(0.0,1.0,Impulse.ar(6.0));
t = Impulse.ar(9*(1+(p&gt;0.95)));
f = TRand.ar([40.0,120.0,220.0],[440.0,990.0,880.0],t);
n = TRand.ar(4.0,[8.0, 16.0, 32.0],t);
d = TRand.ar([0.2,0.4,0.6],[0.6, 0.8, 1.0],t);
a = TRand.ar(0.0,[0.2, 0.6, 1.0],t);
l = TRand.ar(-1.0,1.0,t);
x = MouseX.kr(0.25,2.0);
y = MouseY.kr(0.25,1.5);
z = 9.0;
x_ = x * LFNoise2.kr(z).range(0.25,2.0);
y_ = y * LFNoise2.kr(z).range(0.25,2.0);
Out.ar(0, Pan2.ar(Mix.ar(VOSIM.ar(t, f*x_, n, d*y_) * a),l,1));
}.play;
)
z.free;</textarea>
<div class='doclink'>helpfile source: <a href='file:///Users/zzk/Library/Application Support/SuperCollider/Extensions/SC3plugins/VOSIMUGens/HelpSource/Classes/VOSIM.schelp'>/Users/zzk/Library/Application Support/SuperCollider/Extensions/SC3plugins/VOSIMUGens/HelpSource/Classes/VOSIM.schelp</a><br>link::Classes/VOSIM::<br></div></div><script src='./../editor.js' type='text/javascript'></script>
</body></html>