Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: AverageAnalogIn PinDetect RotaryEncoder Sequence SequencerDisplay mbed-rtos mbed st7567LCD BaseMachineComon
Fork of BaseMachine_Sequencer by
Diff: main.cpp
- Revision:
- 27:c382689e652b
- Parent:
- 26:fbf48a178aeb
- Child:
- 28:d8614d2b82f9
diff -r fbf48a178aeb -r c382689e652b main.cpp --- a/main.cpp Fri Aug 26 07:24:48 2016 +0000 +++ b/main.cpp Fri Aug 26 07:39:02 2016 +0000 @@ -113,8 +113,11 @@ envelopeGenerator.init(envelope); } - if (sequenceSender.getSequences()[sequenceSender.getStep()].isNoteOn()) { + if (sequences[sequenceSender.getStep()].isNoteOn()) { uint16_t level = envelopeGenerator.getModLevel(); + if (!sequences[sequenceSender.getStep()].isAccent()) { + level = level * 3 / 4; + } ampController.outDca(level); } else { ampController.outDca(0);