diff options
author | pommicket <pommicket@gmail.com> | 2023-01-16 21:39:50 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-16 21:39:50 -0500 |
commit | 4c152258dcb91fa6216a1276082bb97e61cb9c5a (patch) | |
tree | 1aac912d5d943e5fdd6a13bfd4d01128faf26a45 /src/main.rs | |
parent | 4d38e56e4523b0f2acf14095598acab712a6a8f2 (diff) |
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index e4c6e8d..5992015 100644 --- a/src/main.rs +++ b/src/main.rs @@ -862,7 +862,7 @@ fn progmidi_main() { (channel as i64, note as i64, vel as i64), ), PitchBend { channel, amount } => { - let amount = (amount as f64 - 8192.0) * (1.0 / 8192.0); + let amount = amount as f64 / 8192.0; call_fn_if_exists( &engine, &ast, |