shithub: orca

Download patch

ref: a39e017c36f996fdcb6b80895840b5b3c8b8806e
parent: 3db00f74c78797166707980731082c21e57c1d1e
author: cancel <cancel@cancel.fm>
date: Tue Dec 11 12:39:18 EST 2018

Fix incorrect var being used for octave in :

--- a/sim.c
+++ b/sim.c
@@ -443,7 +443,7 @@
   Oevent_midi* oe = (Oevent_midi*)oevent_list_alloc_item(extra_params->oevent_list);
   oe->oevent_type = (U8)Oevent_type_midi;
   oe->channel = (U8)channel_num;
-  oe->octave = (U8)usz_clamp(index_of(channel_g), 1, 9);
+  oe->octave = (U8)usz_clamp(octave_num, 1, 9);
   oe->note = note_num;
   oe->velocity = midi_velocity_of(velocity_g);
   oe->bar_divisor = (U8)usz_clamp(index_of(length_g), 1, 36);