File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ where `((t))` will be replaced by the rules you define:
29
29
30
30
for example ` (t>>7)*(t>>9)|t>>6 `
31
31
32
- the output will be a float: ` (result % 255 ) as f32 / 255.0 * 2.0 - 1.0 `
32
+ the output will be a float: ` (result % 256 ) as f32 / 255.0 * 2.0 - 1.0 `
33
33
34
- what kind of tune it will make depends on the your rules:
34
+ what kind of tune it will make depends on the rules you define.
35
35
36
36
### contribution
37
37
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ where
104
104
let mut next_value = move || {
105
105
let result = ((t));
106
106
t += 1;
107
- (result % 255 ) as f32 / 255.0 * 2.0 - 1.0
107
+ (result % 256 ) as f32 / 255.0 * 2.0 - 1.0
108
108
};
109
109
110
110
let err_fn = |err| eprintln!("an error occurred on stream: {}", err);
You can’t perform that action at this time.
0 commit comments