summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-16 21:39:50 -0500
committerpommicket <pommicket@gmail.com>2023-01-16 21:39:50 -0500
commit4c152258dcb91fa6216a1276082bb97e61cb9c5a (patch)
tree1aac912d5d943e5fdd6a13bfd4d01128faf26a45
parent4d38e56e4523b0f2acf14095598acab712a6a8f2 (diff)
fix pitch bend biasHEADtrunk
-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,