BaseMachine OscController Library
Diff: OscController.h
- Revision:
- 3:31a6b490986f
- Parent:
- 1:d3217569b33e
- Child:
- 5:dda1279a1bf4
--- a/OscController.h Mon Feb 13 16:02:37 2017 +0000 +++ b/OscController.h Mon Feb 13 18:19:13 2017 +0000 @@ -15,9 +15,15 @@ waveShape(_waveShape), pulseWidth(_pulseWidth) {} - virtual void OutDco(uint32_t frequency) + virtual void OutDco() { - printf("%d\r\n", frequency>>16); + printf("%d\t%d\t%d\r\n", frequency10, waveShape, pulseWidth); + } + + // frequecny10: 周波数の10倍値を16bit左シフト + void setFrequency10(uint16_t _frequency10) + { + frequency10 = _frequency10; } void setWaveShape(uint8_t _waveShape) { @@ -39,6 +45,7 @@ } protected: + uint16_t frequency10; uint8_t waveShape; uint8_t pulseWidth; };