repo.or.cz
/
chuck-blob.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
*** empty log message ***
[chuck-blob.git]
/
examples
/
zerox.ck
blob
4ef07a31ed7304ff98e06a2631cfa29137ce4af2
1
// step generator, zero crossing detector, dac
2
step s => zerox z => dac;
3
1.0 => float v;
4
5
// infnite time-loop
6
while( true )
7
{
8
// set the step value
9
v => s.value;
10
// change step value
11
-v => v;
12
// advance time
13
100::ms => now;
14
}