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

Contents of /doc/tmpl/index.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2738 - (show annotations) (download) (as text)
Tue Apr 28 17:24:16 2015 UTC (8 years, 11 months ago) by schoenebeck
File MIME type: text/html
File size: 20712 byte(s)
- Site's CSS style: Added support for "dir" and "file" HTML tags.

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

  ViewVC Help
Powered by ViewVC