block_quantize.test.ctrl 507 Bytes
Newer Older
Jeroen Vreeken's avatar
Jeroen Vreeken committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
frequency 10

blocks {
	{ "quantize", "quantize" }
	
	{ "test_input_float", "in" }
	
	{ "test_output_float", "out"   }
}

links {
	{ "in", "value",     "quantize", "in", true }
	{ "quantize", "out", "out", "value",   true }
}

params {
	{ "quantize", "quantum", (float) 0.1 }
	
	{ "in", "value", 7, (float) 
		{ 0.0, -100.09, -11.13, -11.01, 22.01, 22.19, 100.001 } 
	}

	{ "out", "value", 7, 
		(float) { 0.0, -100.1, -11.1, -11.0, 22.0, 22.2, 100.0 },
		(float) { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }
	}
}