zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit da7c07f8708d5f42ced96c2efed23f64ff82269c
parent 4f44fd744b3f92988702f3e91b0b0e97e305dd6f
Author: Hans Petter Selasky <hps@selasky.org>
Date:   Thu,  2 Apr 2020 16:18:00 +0200

Remove unused argument for PolyphonicAftertouch() function.

Signed-off-by: Hans Petter Selasky <hps@selasky.org>

Diffstat:
Msrc/Misc/Master.cpp | 2+-
Msrc/Misc/Part.cpp | 5+----
Msrc/Misc/Part.h | 3+--
3 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/src/Misc/Master.cpp b/src/Misc/Master.cpp @@ -977,7 +977,7 @@ void Master::polyphonicAftertouch(char chan, note_t note, char velocity) for(int npart = 0; npart < NUM_MIDI_PARTS; ++npart) if(chan == part[npart]->Prcvchn) if(part[npart]->Penabled) - part[npart]->PolyphonicAftertouch(note, velocity, keyshift); + part[npart]->PolyphonicAftertouch(note, velocity); } else diff --git a/src/Misc/Part.cpp b/src/Misc/Part.cpp @@ -604,11 +604,8 @@ void Part::NoteOff(note_t note) //release the key } void Part::PolyphonicAftertouch(note_t note, - unsigned char velocity, - int masterkeyshift) + unsigned char velocity) { - (void) masterkeyshift; - if(!Pnoteon || !inRange(note, Pminkey, Pmaxkey) || Pdrummode) return; diff --git a/src/Misc/Part.h b/src/Misc/Part.h @@ -52,8 +52,7 @@ class Part float note_log2_freq) REALTIME; void NoteOff(note_t note) REALTIME; void PolyphonicAftertouch(note_t note, - unsigned char velocity, - int masterkeyshift) REALTIME; + unsigned char velocity) REALTIME; void AllNotesOff() REALTIME; //panic void SetController(unsigned int type, int par) REALTIME; void ReleaseSustainedKeys() REALTIME; //this is called when the sustain pedal is released