☰
Debian Codegraph
@
1.5.5.8-1
/
/
examples
/
basic
/
zerox.ck
☽
☼
examples/basic/zerox.ck
code
plain
raw
GPL-2.0+
2004 Ge Wang and Perry R. Cook. All rights reserved.
debian/copyright
1
// step generator, zero crossing detector, dac
2
Step s => ZeroX z => dac;
3
1.0 => float v;
4
5
// infinite time-loop
6
while( true )
7
{
8
// set the step value
9
v => s.next;
10
// change step value
11
-v => v;
12
// advance time
13
100::ms => now;
14
}