From 4c152258dcb91fa6216a1276082bb97e61cb9c5a Mon Sep 17 00:00:00 2001 From: pommicket Date: Mon, 16 Jan 2023 21:39:50 -0500 Subject: fix pitch bend bias --- README.md | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f306a02..267d38e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # progmidi -A programmable MIDI keyboard-controlled audio synthesizer. +A simple programmable MIDI keyboard-controlled soundfont player. Check out the [releases](https://github.com/pommicket/progmidi/releases) for Windows and Linux executables. 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, -- cgit v1.2.3