338 |
protected: |
protected: |
339 |
class CC { |
class CC { |
340 |
public: |
public: |
341 |
uint8_t Controller; ///< MIDI controller number. |
uint8_t Controller; ///< MIDI controller number. |
342 |
uint8_t Value; ///< Controller Value. |
uint8_t Value; ///< Controller Value. |
343 |
float Influence; |
short int Curve; ///< specifies the curve type |
344 |
|
float Influence; |
345 |
|
|
346 |
CC() { |
CC(uint8_t Controller = 0, float Influence = 0.0f, short int Curve = -1) { |
|
CC(0, 0.0f); |
|
|
} |
|
|
|
|
|
CC(uint8_t Controller, float Influence) { |
|
347 |
this->Controller = Controller; |
this->Controller = Controller; |
348 |
this->Value = 0; |
this->Value = 0; |
349 |
|
this->Curve = Curve; |
350 |
this->Influence = Influence; |
this->Influence = Influence; |
351 |
} |
} |
352 |
|
|
357 |
Controller = cc.Controller; |
Controller = cc.Controller; |
358 |
Value = cc.Value; |
Value = cc.Value; |
359 |
Influence = cc.Influence; |
Influence = cc.Influence; |
360 |
|
Curve = cc.Curve; |
361 |
} |
} |
362 |
}; |
}; |
363 |
|
|
379 |
SignalUnit::Copy(Unit); |
SignalUnit::Copy(Unit); |
380 |
} |
} |
381 |
|
|
382 |
void AddCC(uint8_t Controller, float Influence) { |
void AddCC(uint8_t Controller, float Influence, short int Curve = -1) { |
383 |
Ctrls.add(CC(Controller, Influence)); |
Ctrls.add(CC(Controller, Influence, Curve)); |
384 |
} |
} |
385 |
|
|
386 |
void RemoveAllCCs() { |
void RemoveAllCCs() { |