Skip to content

Commit 756cde3

Browse files
committed
fix 256
1 parent fc5eefe commit 756cde3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ where `((t))` will be replaced by the rules you define:
2929

3030
for example `(t>>7)*(t>>9)|t>>6`
3131

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`
3333

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.
3535

3636
### contribution
3737

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ where
104104
let mut next_value = move || {
105105
let result = ((t));
106106
t += 1;
107-
(result % 255) as f32 / 255.0 * 2.0 - 1.0
107+
(result % 256) as f32 / 255.0 * 2.0 - 1.0
108108
};
109109
110110
let err_fn = |err| eprintln!("an error occurred on stream: {}", err);

0 commit comments

Comments
 (0)