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

Contents of /doc/tmpl/index.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3267 - (show annotations) (download) (as text)
Thu Jun 1 16:05:18 2017 UTC (3 years, 7 months ago) by schoenebeck
File MIME type: text/html
File size: 21140 byte(s)
* Site Template: Rendering fixes for iOS and MS IE.

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

  ViewVC Help
Powered by ViewVC