~hp/jit.lv2

475b19d6090aabeb3a3a845db46258a10c7dc766 — Hanspeter Portner 2 years ago de5265e
dsp: fix 14bit derivation.
2 files changed, 7 insertions(+), 7 deletions(-)

M VERSION
M jit_dsp.c
M VERSION => VERSION +1 -1
@@ 1,1 1,1 @@
0.1.419
0.1.421

M jit_dsp.c => jit_dsp.c +6 -6
@@ 995,42 995,42 @@ _handle_midi(plughandle_t *handle, dsp_t *dsp,

				case LV2_MIDI_CTL_LSB_MAIN_VOLUME:
				{
					handle->gain[chn] &= 0x7f;
					handle->gain[chn] &= ~0x7f;
					handle->gain[chn] |= val;

					_update_gain(handle, dsp, chn);
				} break;
				case LV2_MIDI_CTL_MSB_MAIN_VOLUME:
				{
					handle->gain[chn] &= 0x3f80;
					handle->gain[chn] &= ~0x3f80;
					handle->gain[chn] |= val << 7;

					_update_gain(handle, dsp, chn);
				} break;
				case LV2_MIDI_CTL_SC1_SOUND_VARIATION | 0x20:
				{
					handle->pressure[chn] &= 0x7f;
					handle->pressure[chn] &= ~0x7f;
					handle->pressure[chn] |= val;

					_update_pressure(handle, dsp, chn);
				} break;
				case LV2_MIDI_CTL_SC1_SOUND_VARIATION:
				{
					handle->pressure[chn] &= 0x3f80;
					handle->pressure[chn] &= ~0x3f80;
					handle->pressure[chn] |= val << 7;

					_update_pressure(handle, dsp, chn);
				} break;
				case LV2_MIDI_CTL_SC5_BRIGHTNESS | 0x20:
				{
					handle->timbre[chn] &= 0x7f;
					handle->timbre[chn] &= ~0x7f;
					handle->timbre[chn] |= val;

					_update_timbre(handle, dsp, chn);
				} break;
				case LV2_MIDI_CTL_SC5_BRIGHTNESS:
				{
					handle->timbre[chn] &= 0x3f80;
					handle->timbre[chn] &= ~0x3f80;
					handle->timbre[chn] |= val << 7;

					_update_timbre(handle, dsp, chn);