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

Contents of /doc/tmpl/index.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3083 - (show annotations) (download) (as text)
Mon Jan 9 19:23:58 2017 UTC (3 years, 9 months ago) by schoenebeck
File MIME type: text/html
File size: 21080 byte(s)
* Added SFZ articles section.
* NKSP: New sfz "script" opcode added.

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

  ViewVC Help
Powered by ViewVC