diff options
| author | Robert Jonsson <spamatica@gmail.com> | 2011-03-07 19:01:11 +0000 | 
|---|---|---|
| committer | Robert Jonsson <spamatica@gmail.com> | 2011-03-07 19:01:11 +0000 | 
| commit | e40fc849149dd97c248866a4a1d026dda5e57b62 (patch) | |
| tree | b12b358f3b3a0608001d30403358f8443118ec5f /muse_qt4_evolution/synti/zynaddsubfx/Input/MidiIn.C | |
| parent | 1bd4f2e8d9745cabb667b043171cad22c8577768 (diff) | |
clean3
Diffstat (limited to 'muse_qt4_evolution/synti/zynaddsubfx/Input/MidiIn.C')
| -rw-r--r-- | muse_qt4_evolution/synti/zynaddsubfx/Input/MidiIn.C | 73 | 
1 files changed, 0 insertions, 73 deletions
diff --git a/muse_qt4_evolution/synti/zynaddsubfx/Input/MidiIn.C b/muse_qt4_evolution/synti/zynaddsubfx/Input/MidiIn.C deleted file mode 100644 index 3063b793..00000000 --- a/muse_qt4_evolution/synti/zynaddsubfx/Input/MidiIn.C +++ /dev/null @@ -1,73 +0,0 @@ -/* -  ZynAddSubFX - a software synthesizer -  -  MidiIn.C - This class is inherited by all the Midi input classes -  Copyright (C) 2002-2005 Nasca Octavian Paul -  Author: Nasca Octavian Paul - -  This program is free software; you can redistribute it and/or modify -  it under the terms of version 2 of the GNU General Public License  -  as published by the Free Software Foundation. - -  This program is distributed in the hope that it will be useful, -  but WITHOUT ANY WARRANTY; without even the implied warranty of -  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the -  GNU General Public License (version 2) for more details. - -  You should have received a copy of the GNU General Public License (version 2) -  along with this program; if not, write to the Free Software Foundation, -  Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA - -*/ - -#include "../globals.h" -#include "MidiIn.h" - -int MidiIn::getcontroller(unsigned char b){ -    int ctl=C_NULL; -    switch (b){ -	    case 1:ctl=C_modwheel;//Modulation Wheel -		break; -	    case 7:ctl=C_volume;//Volume -    		break; -	    case 10:ctl=C_panning;//Panning -		break; -	    case 11:ctl=C_expression;//Expression -		break; -	    case 64:ctl=C_sustain;//Sustain pedal -	        break; -	    case 65:ctl=C_portamento;//Portamento -	        break; -	    case 71:ctl=C_filterq;//Filter Q (Sound Timbre) -		break; -	    case 74:ctl=C_filtercutoff;//Filter Cutoff (Brightness) -	        break; -	    case 75:ctl=C_bandwidth;//BandWidth -	        break; -	    case 76:ctl=C_fmamp;//FM amplitude -	        break; -	    case 77:ctl=C_resonance_center;//Resonance Center Frequency -	        break; -	    case 78:ctl=C_resonance_bandwidth;//Resonance Bandwith -	        break; -	    case 120:ctl=C_allsoundsoff;//All Sounds OFF -	        break; -	    case 121:ctl=C_resetallcontrollers;//Reset All Controllers -	        break; -	    case 123:ctl=C_allnotesoff;//All Notes OFF -	        break; -	    //RPN and NRPN -	    case 0x06:ctl=C_dataentryhi;//Data Entry (Coarse) -	         break; -	    case 0x26:ctl=C_dataentrylo;//Data Entry (Fine) -	         break; -	    case 99:ctl=C_nrpnhi;//NRPN (Coarse) -	         break; -	    case 98:ctl=C_nrpnlo;//NRPN (Fine) -	         break; -	    default:ctl=C_NULL;//unknown controller -	    //fprintf(stderr,"Controller=%d , par=%d\n",midievent->data.control.param,cmdparams[1]); -	    break; -	}; -    return(ctl); -};  | 
