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:
- 33:a24a4c435973
- Parent:
- 32:2a4554f8ad3e
- Child:
- 34:602ee5e771e3
--- a/main.cpp Wed Sep 07 16:11:21 2016 +0000 +++ b/main.cpp Wed Sep 07 16:27:17 2016 +0000 @@ -184,8 +184,8 @@ filterController.setResonance(AinResonance.read_u16() >> 8); //envMod = AinEnvMod.read_u16() >> 8; - //envelope.setLevel(AinLevel.read_u16() >> 4); - envelope.setLevel(4095); + envelope.setLevel(AinLevel.read_u16() >> 4); + //envelope.setLevel(4095); envelope.setDuration(AinDuration.read() * envelopeLength); envelope.setDecay(AinDecay.read() * envelopeLength); envelope.setSustain(AinSustain.read() * 4095);