File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -137,11 +137,14 @@ void MIDIdrum::setThreshold(){
137
137
}
138
138
};
139
139
140
- void MIDIdrum::setThreshold (int thresh){
140
+ void MIDIdrum::setThreshold (unsigned int thresh){
141
141
if (inputType == 1 ){
142
142
// Do nothing if someone adds a specific threshold as an argument for a
143
143
// Touch input. (This is not going to go the way that you think.)
144
144
}
145
145
else {threshold = thresh;}
146
146
};
147
147
148
+ void MIDIdrum::setWaitTime (unsigned int time){
149
+ waitTime = time;
150
+ };
Original file line number Diff line number Diff line change @@ -38,11 +38,12 @@ class MIDIdrum: public TouchVelocity{
38
38
byte number;
39
39
byte outLo = 1 ;
40
40
byte outHi = 127 ;
41
- int threshold;
41
+ unsigned int threshold;
42
42
void setNoteNumber (byte num);
43
43
void outputRange (byte min, byte max);
44
44
void setThreshold ();
45
- void setThreshold (int thresh);
45
+ void setThreshold (unsigned int thresh);
46
+ void setWaitTime (unsigned int time);
46
47
};
47
48
48
49
#endif
You can’t perform that action at this time.
0 commit comments