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

Contents of /doc/tmpl/index.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3271 - (show annotations) (download) (as text)
Fri Jun 2 18:56:03 2017 UTC (3 years, 4 months ago) by schoenebeck
File MIME type: text/html
File size: 21731 byte(s)
- Site Template: Adjust navbar x pos if content menu hidden.

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

  ViewVC Help
Powered by ViewVC