/[svn]/doc/tmpl/index.html
ViewVC logotype

Annotation of /doc/tmpl/index.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3270 - (hide annotations) (download) (as text)
Fri Jun 2 18:31:00 2017 UTC (6 years, 9 months ago) by schoenebeck
File MIME type: text/html
File size: 21266 byte(s)
* Site Template: Content menu can now be hidden.

1 schoenebeck 2732 <html>
2     <head>
3     <meta charset="utf-8">
4 schoenebeck 3267 <meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
5 schoenebeck 2732 <title>Conditional Statements</title>
6     <link rel="stylesheet" href="css/main.css" />
7     <script type="text/javascript" src="js/jquery-1.11.2.js"></script>
8     <script type="text/javascript" src="js/jquery-ui.js"></script>
9     <script type="text/javascript" src="js/jquery.transform2d.js"></script>
10     <script type="text/javascript" src="js/crd.js"></script>
11     </head>
12    
13     <body>
14    
15     <header>
16     <a href="http://doc.linuxsampler.org"><img class="lslogo" src="pix/linuxsampler_logo.png" alt="LinuxSampler Logo"></a>
17     <div><a href="http://doc.linuxsampler.org">Documents</a></div>
18     <menu>
19     <a href="/Writing_Docs/" title="How to write documentation for this site. Be invited to help us!">Writing Docs</a>
20     <a href="/Gigedit/" title="An instrument editor for the GigaStudio file format.">Gigedit</a>
21 schoenebeck 3083 <a href="/sfz/" title="SFZ File Format">SFZ</a>
22 schoenebeck 2732 <a href="/Instrument_Scripts/" title="Real-Time Instrument Scripts.">Instrument Scripts</a>
23 schoenebeck 2957 <a href="/Instrument_Scripts/NKSP_Language/" title="NKSP Language Tour.">NKSP Language</a>
24 schoenebeck 2958 <a href="/Instrument_Scripts/NKSP_Language/Reference/" title="Quick reference to all built-in functions and built-in variables of the NKSP real-rime instrument script language.">NKSP Reference</a>
25 schoenebeck 2732 </menu>
26     </header>
27    
28     <nav>
29 schoenebeck 3270 <div class="foldbtn"><a href="javascript:;" onclick="crdToggleTOC();" title="Hide content menu.">&lt;&lt;&lt;</a></div>
30 schoenebeck 2732 <ul>
31     <li><a href="#">Docs</a></li>
32     <li><a href="#">Instrument Scripts</a>
33     <ul>
34     <li><a href="#">Article 1</a></li>
35     <li><a href="#">Article 2</a></li>
36     <li><a href="#">Article 3</a></li>
37     <li><a href="#">Article 1</a></li>
38     <li><a href="#">Article 2</a></li>
39     <li><a href="#">Article 3</a></li>
40     <li><a href="#">Article 1</a></li>
41     <li><a href="#">Article 2</a></li>
42     <li><a href="#">Article 3</a></li>
43     </ul>
44     </li>
45     <li><a href="#">NKSP Language</a>
46     <ul>
47     <li><a href="#p4">Article 1</a></li>
48     <li><a href="#">Article 2</a></li>
49     <li><a href="#">Article 3</a></li>
50     <li><a href="#">Article 1</a></li>
51     <li><a href="#">Article 2</a></li>
52     <li><a href="#">Article 3</a></li>
53     <li><a href="#">Article 1</a></li>
54     <li><a href="#">Article 2</a></li>
55     <li><a href="#">Article 3</a></li>
56     </ul>
57     </li>
58     <li><a href="#">Introduction</a></li>
59     </ul>
60     </nav>
61    
62     <aside>
63     <div class="toc">
64     <ul>
65     <li><span section="p1">Overview</span>
66     <ul>
67     <li section="p2">A deeper view</li>
68     <li section="p3">Starting the hack</li>
69     <li section="p4">Tearing it down</li>
70     </ul>
71     </li>
72     <li><span onclick="lsdScrollTo(this);" section="p5">The next level</span>
73     <ul>
74     <li>A deeper view</li>
75     <li>Starting the hack</li>
76     <li>Tearing it down</li>
77     </ul>
78     </li>
79     <li>And more</li>
80     <li>Conditional Statements
81     <ul>
82     <li>A deeper view</li>
83     <li>Starting the hack</li>
84     <li>Tearing it down</li>
85     </ul>
86     </li>
87     </ul>
88     <div class="buttons">
89     <a href="#p1" title="Go back to previous article." class="top disabled"><span class="arrow">���</span>&nbsp;Previous</a>
90     <a href="#p3" title="Click here to jump to the next article.">Next&nbsp;<span class="arrow">���</a>
91     </div>
92     </div>
93     </aside>
94    
95     <article>
96     <h1 id="p1">Conditional Statemens</h1>
97     <p>
98     This is just some kind of auto wrapping text for <a href="#" title="<b><u>foo</u></b> boo la la la.">testing purposes</a>. The semantic content is totally irrevant.
99     In fact you are currently wasting your time by reading this at all. Nevertheless I am going to continue
100     writing all kind of crap here, just to get some decent amount of characters onto the screen for seeing
101     various aspects of the final layout and its considerations that may be needed to be taken.
102     </p>
103     <p>
104     This is just some kind of auto wrapping text for testing purposes. The semantic content is totally irrevant.
105     In fact you are currently wasting your time by reading this at all. Nevertheless I am going to continue
106     writing all kind of crap here, just to get some decent amount of characters onto the screen for seeing
107     various aspects of the final layout and its considerations that may be needed to be taken.
108     </p>
109     <h3 id="p2">A deeper view</h3>
110     <p>
111     This is just some kind of auto wrapping text for testing purposes. The semantic content is totally irrevant.
112     In fact you are currently wasting your time by reading this at all. Nevertheless I am going to continue
113     writing all kind of crap here, just to get some decent amount of characters onto the screen for seeing
114     various aspects of the final layout and its considerations that may be needed to be taken.
115     <table>
116     <tr>
117     <th>Function Name</th> <th>Description</th>
118     </tr>
119     <tr>
120     <td><a href="#">message()</a></td> <td>Print a debug message</td>
121     </tr>
122     <tr>
123     <td>wait()</td> <td>Suspend execution for certain amount of microseconds.</td>
124     </tr>
125     <tr>
126     <td><a href="#">message()</a></td> <td>Print a debug message</td>
127     </tr>
128     <tr>
129     <td>wait()</td> <td>This is just a test. Suspend <b>execution</b> for certain amount of microseconds.</td>
130     </tr>
131     </table>
132     This is just some kind of auto wrapping text for testing purposes. The semantic content is totally irrevant.
133     In fact you are currently wasting your time by reading this at all. Nevertheless I am going to continue
134     writing all kind of crap here, just to get some decent amount of characters onto the screen for seeing
135     various aspects of the final layout and its considerations that may be needed to be taken.
136     <ul>
137     <li>Point one. Because this is a bla bla bla and so you can do la lal al.</li>
138     <li>Point two. And this is another line bla here and there and even thing.</li>
139     </ul>
140     This is just some kind of auto wrapping text for testing purposes. The semantic content is totally irrevant.
141     In fact you are currently wasting your time by reading this at all. Nevertheless I am going to continue
142     writing all kind of crap here, just to get some decent amount of characters onto the screen for seeing
143     various aspects of the final layout and its considerations that may be needed to be taken.
144     <ol>
145     <li>Point one. Because this is a bla bla bla and so you can do la lal al.</li>
146     <li>Point two. And this is another line bla here and there and even thing.
147     <ol>
148     <li>Point one. Because this is a bla bla bla and so you can do la lal al.</li>
149     <li>Point two. And this is another line bla here and there and even thing.</li>
150     </ol>
151     </li>
152     </ol>
153     This is just some kind of auto wrapping text for testing purposes. The semantic content is totally irrevant.
154     In fact you are currently wasting your time by reading this at all. Nevertheless I am going to continue
155     writing all kind of crap here, just to get some decent amount of characters onto the screen for seeing
156     various aspects of the final layout and its considerations that may be needed to be taken.
157     </p>
158    
159     <note>This is just the beginning. You should be aware about this before you continue to read this note
160     block, because it might save you a load of time.
161     </note>
162    
163     And the following is just a short note.
164    
165     <note>The mentioned short note.</note>
166    
167     Followed by an important note:
168    
169     <note class="important">This is an important note.</note>
170    
171     <p>
172     <img src="smallfigure.png">This is just some kind of auto wrapping text for testing purposes. The semantic content is totally irrevant.
173     In fact you are currently wasting your time by reading this at all. Nevertheless I am going to continue
174     writing all kind of crap here, just to get some decent amount of characters onto the screen for seeing
175     various aspects of the final layout and its considerations that may be needed to be taken.
176     </p>
177    
178     <p>
179     <img src="largefigure.png"> And this is a paragraph with a fairly
180     large image. It should automatically be constrained by the CSS
181     rules in case the screen size gets too small.
182     This is just some kind of auto wrapping text for testing purposes. The semantic content is totally irrevant.
183     In fact you are currently wasting your time by reading this at all. Nevertheless I am going to continue
184     writing all kind of crap here, just to get some decent amount of characters onto the screen for seeing
185     various aspects of the final layout and its considerations that may be needed to be taken.
186     </p>
187    
188     <p>And this is a sole and centered image:</p>
189     <img src="smallfigure.png" caption="This is a figure.">
190    
191     <p>And this another one:</p>
192     <img src="largefigure.png" caption="asdf">
193    
194    
195     <h3 id="p3">And even more</h3>
196     <p>
197     This is just some kind of auto wrapping text for testing purposes. The semantic content is totally irrevant.
198     In fact you are currently wasting your time by reading this at all. Nevertheless I am going to continue
199     writing all kind of crap here, just to get some decent amount of characters onto the screen for seeing
200     various aspects of the final layout and its considerations that may be needed to be taken.
201     </p>
202     <h2 id="p4">The next level</h2>
203     <p>
204     This is just some kind of auto wrapping text for testing purposes. The semantic content is totally irrevant.
205     In fact you are currently wasting your time by reading this at all. Nevertheless I am going to continue
206     writing all kind of crap here, just to get some decent amount of characters onto the screen for seeing
207     various aspects of the final layout and its considerations that may be needed to be taken.
208     </p>
209     <code>
210     <span class="k">declare</span> <span class="k">const</span> $<span class="v">SIZE</span> := <span class="m">Some Numeric Value</span>
211     </code>
212     <p>
213     And this could be:
214     </p>
215     <code>
216     <span class="k">declare</span> <span class="k">const</span> $<span class="v">SIZE</span> := <span class="n">5</span>
217     </code>
218     <p>
219     The foo bar is the thing lala la. And you could do <code>i := <span class="n">4</span></code>, because bla bla and
220     la is <code><span class="n">4</span></code>.
221     </p>
222    
223     <h2 id="p5">And more</h2>
224     <p>
225     This is just some kind of auto wrapping text for testing purposes. The semantic content is totally irrevant.
226     In fact you are currently wasting your time by reading this at all. Nevertheless I am going to continue
227     writing all kind of crap here, just to get some decent amount of characters onto the screen for seeing
228     various aspects of the final layout and its considerations that may be needed to be taken.
229     </p>
230     <h2 id="p6">Break it down</h2>
231     <p>
232     This is just some kind of auto wrapping text for testing purposes. The semantic content is totally irrevant.
233     In fact you are currently wasting your time by reading this at all. Nevertheless I am going to continue
234     writing all kind of crap here, just to get some decent amount of characters onto the screen for seeing
235     various aspects of the final layout and its considerations that may be needed to be taken.
236     </p>
237    
238     <ul class="code">
239    
240     <li><span class="q">{ Array variables are always global variables, with constant size defined at</span></li>
241     <li><span class="q">parse time. Trying to declare an array size with a runtime expression (i.e. a</span></li>
242     <li><span class="q">non const variable), will cause a parser error. }</span></li>
243     <li></li>
244     <li><span class="p">SET_CONDITION(DEBUG)</span></li>
245     <li></li>
246     <li><span class="k">on</span> <span class="h">init</span></li>
247     <li> <span class="k">declare</span> <span class="k">const</span> $<span class="v">SIZE</span> := <span class="n">5</span></li>
248     <li> <span class="k">declare</span> %<span class="a">a</span>[$<span class="v">SIZE</span>] := ( <span class="n">0</span>,<span class="n">1</span>,<span class="n">2</span>,<span class="n">3</span>,<span class="n">4</span> )</li>
249     <li> <span class="k">declare</span> $<span class="v">i</span></li>
250     <li></li>
251     <li> <span class="i">message</span>(<span class="c">"num_elements(%a) = "</span> & <span class="i">num_elements</span>(%<span class="a">a</span>))</li>
252     <li></li>
253     <li><span class="p">USE_CODE_IF(DEBUG)</span></li>
254     <li> <span class="k">declare</span> <span class="k">const</span> @<span class="s">str</span> := <span class="c">"Initial values of array:"</span></li>
255     <li> <span class="i">message</span>(@<span class="s">str</span>)</li>
256     <li><span class="p">END_USE_CODE</span></li>
257     <li></li>
258     <li> $<span class="v">i</span> := <span class="m">Value</span></li>
259     <li> $<span class="v">i</span> := <span class="n">0</span></li>
260     <li> <span class="k">while</span> ($<span class="v">i</span> < $<span class="v">SIZE</span>)</li>
261     <li> <span class="i">message</span>(<span class="c">"array["</span> & $<span class="v">i</span> & <span class="c">"] = "</span> & %<span class="a">a</span>[$<span class="v">i</span>])</li>
262     <li> $<span class="v">i</span> := $<span class="v">i</span> + <span class="n">1</span></li>
263     <li> <span class="k">end while</span></li>
264     <li></li>
265     <li> %<span class="a">a</span>[<span class="n">0</span>] := <span class="n">2</span></li>
266     <li> %<span class="a">a</span>[<span class="n">1</span>] := <span class="n">3</span></li>
267     <li> %<span class="a">a</span>[<span class="n">2</span>] := <span class="n">5</span></li>
268     <li> %<span class="a">a</span>[<span class="n">3</span>] := <span class="n">7</span></li>
269     <li> %<span class="a">a</span>[<span class="n">4</span>] := <span class="n">11</span></li>
270     <li></li>
271     <li> <span class="i">message</span>(<span class="c">""</span>)</li>
272     <li> <span class="i">message</span>(<span class="c">"New values of array:"</span>)</li>
273     <li></li>
274     <li> $<span class="v">i</span> := <span class="n">0</span></li>
275     <li> <span class="k">while</span> ($<span class="v">i</span> < $<span class="v">SIZE</span>)</li>
276     <li> <span class="i">message</span>(<span class="c">"array["</span> & $<span class="v">i</span> & <span class="c">"] = "</span> & %<span class="a">a</span>[$<span class="v">i</span>])</li>
277     <li> $<span class="v">i</span> := $<span class="v">i</span> + <span class="n">1</span></li>
278     <li> <span class="k">end while</span></li>
279     <li><span class="k">end on</span></li>
280    
281     </ul>
282    
283    
284     <h2 id="p6">Break it down</h2>
285     <p>
286     This is just some kind of auto wrapping text for testing purposes. The semantic content is totally irrevant.
287     In fact you are currently wasting your time by reading this at all. Nevertheless I am going to continue
288     writing all kind of crap here, just to get some decent amount of characters onto the screen for seeing
289     various aspects of the final layout and its considerations that may be needed to be taken.
290     </p>
291    
292     <ul class="code">
293    
294     <li><span class="q">{ Array variables are always global variables, with constant size defined at</span></li>
295     <li><span class="q">parse time. Trying to declare an array size with a runtime expression (i.e. a</span></li>
296     <li><span class="q">non const variable), will cause a parser error. }</span></li>
297     <li></li>
298     <li><span class="p">SET_CONDITION(DEBUG)</span></li>
299     <li></li>
300     <li><span class="k">on</span> <span class="h">init</span></li>
301     <li> <span class="k">declare</span> <span class="k">const</span> $<span class="v">SIZE</span> := <span class="n">5</span></li>
302     <li> <span class="k">declare</span> %<span class="a">a</span>[$<span class="v">SIZE</span>] := ( <span class="n">0</span>,<span class="n">1</span>,<span class="n">2</span>,<span class="n">3</span>,<span class="n">4</span> )</li>
303     <li> <span class="k">declare</span> $<span class="v">i</span></li>
304     <li></li>
305     <li> <span class="i">message</span>(<span class="c">"num_elements(%a) = "</span> & <span class="i">num_elements</span>(%<span class="a">a</span>))</li>
306     <li></li>
307     <li><span class="p">USE_CODE_IF(DEBUG)</span></li>
308     <li> <span class="k">declare</span> <span class="k">const</span> @<span class="s">str</span> := <span class="c">"Initial values of array:"</span></li>
309     <li> <span class="i">message</span>(@<span class="s">str</span>)</li>
310     <li><span class="p">END_USE_CODE</span></li>
311     <li></li>
312     <li> $<span class="v">i</span> := <span class="n">0</span></li>
313     <li> <span class="k">while</span> ($<span class="v">i</span> < $<span class="v">SIZE</span>)</li>
314     <li> <span class="i">message</span>(<span class="c">"array["</span> & $<span class="v">i</span> & <span class="c">"] = "</span> & %<span class="a">a</span>[$<span class="v">i</span>])</li>
315     <li> $<span class="v">i</span> := $<span class="v">i</span> + <span class="n">1</span></li>
316     <li> <span class="k">end while</span></li>
317     <li></li>
318     <li> %<span class="a">a</span>[<span class="n">0</span>] := <span class="n">2</span></li>
319     <li> %<span class="a">a</span>[<span class="n">1</span>] := <span class="n">3</span></li>
320     <li> %<span class="a">a</span>[<span class="n">2</span>] := <span class="n">5</span></li>
321     <li> %<span class="a">a</span>[<span class="n">3</span>] := <span class="n">7</span></li>
322     <li> %<span class="a">a</span>[<span class="n">4</span>] := <span class="n">11</span></li>
323     <li></li>
324     <li> <span class="i">message</span>(<span class="c">""</span>)</li>
325     <li> <span class="i">message</span>(<span class="c">"New values of array:"</span>)</li>
326     <li></li>
327     <li> $<span class="v">i</span> := <span class="n">0</span></li>
328     <li> <span class="k">while</span> ($<span class="v">i</span> < $<span class="v">SIZE</span>)</li>
329     <li> <span class="i">message</span>(<span class="c">"array["</span> & $<span class="v">i</span> & <span class="c">"] = "</span> & %<span class="a">a</span>[$<span class="v">i</span>])</li>
330     <li> $<span class="v">i</span> := $<span class="v">i</span> + <span class="n">1</span></li>
331     <li> <span class="k">end while</span></li>
332     <li><span class="k">end on</span></li>
333    
334     </ul>
335 schoenebeck 2738 <p>
336     This is just some kind of auto wrapping text for testing purposes. The semantic content is totally irrevant.
337     In fact you are currently wasting your time by reading this at all. Nevertheless I am going to continue
338     writing all kind of crap here, just to get some decent amount of characters onto the screen for seeing
339     various aspects of the final layout and its considerations that may be needed to be taken.
340     </p>
341    
342     <dir>root
343     <dir>tmp</dir>
344     <file>foo.png</file>
345     <file>bla.png</file>
346     </dir>
347    
348 schoenebeck 2732 <p>
349     This is just some kind of auto wrapping text for testing purposes. The semantic content is totally irrevant.
350     In fact you are currently wasting your time by reading this at all. Nevertheless I am going to continue
351     writing all kind of crap here, just to get some decent amount of characters onto the screen for seeing
352     various aspects of the final layout and its considerations that may be needed to be taken.
353     </p>
354    
355     <ul class="docpager">
356     <li><a href="#">Previous Article</a></li>
357     <li><a href="#">Parent Topic</a></li>
358     <li><a href="#">Next Article</a></li>
359     </ul>
360     <div class="endline">
361     Document Updated: 2015-04-03&nbsp;&nbsp;|&nbsp;&nbsp;Author: Christian Schoenebeck
362     </div>
363     </article>
364    
365    
366     <footer>
367     Copyright &copy;&nbsp;&nbsp;2002&nbsp;-&nbsp;2015&nbsp;&nbsp;<a href="http://www.linuxsampler.org/developers.html">The LinuxSampler Developers</a>.
368     </footer>
369    
370    
371     </body>
372     </html>

  ViewVC Help
Powered by ViewVC