1 /* abGate - LV2 Noise Gate Plugin 2 * 3 * Copyright 2011 Antanas Bružas 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 3 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this library; if not, write to the Free 17 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 */ 19 #define p_output 0 20 #define p_input 1 21 #define p_switch 2 22 #define p_threshold 3 23 #define p_attack 4 24 #define p_hold 5 25 #define p_decay 6 26 #define p_gaterange 7 27 #define p_n_ports 8 28 29 #define BYPASS_MIN 0 30 #define BYPASS_MAX 1 31 #define BYPASS_DEFAULT 0 32 33 #define THRESHOLD_MIN -70 34 #define THRESHOLD_MAX 12 35 #define THRESHOLD_DEFAULT -70 36 37 #define ATTACK_MIN 0.1 38 #define ATTACK_MAX 500 39 #define ATTACK_DEFAULT 30 40 41 #define HOLD_MIN 5 42 #define HOLD_MAX 3000 43 #define HOLD_DEFAULT 500 44 45 #define DECAY_MIN 5 46 #define DECAY_MAX 4000 47 #define DECAY_DEFAULT 1000 48 49 #define RANGE_MIN -90 50 #define RANGE_MAX -20 51 #define RANGE_DEFAULT -90 52 53 #define p_uri "http://hippie.lt/lv2/gate" 54