summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--src/main.rs2
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,