eclab / gizmo

Apache License 2.0
93 stars 8 forks source link

error: 'union _local' has no member named 'stepSequencer' #10

Open Andrjazz opened 2 years ago

Andrjazz commented 2 years ago

Arduino: 1.8.13 (Windows 10), Board: "Arduino Uno" Hello! I'm trying to upload a sketch Arpeggiator in my Arduino Uno

I set in All.h

if defined(UNO)

// You can pick ONE of these

define INCLUDE_ARPEGGIATOR

//#define INCLUDE_STEP_SEQUENCER

byt I have error

sketch\Arpeggiator.cpp: In function 'void stateArpeggiatorPlay()': Arpeggiator.cpp:653:15: error: 'union _local' has no member named 'stepSequencer' local.stepSequencer.pots[LEFT_POT] = pot[LEFT_POT]; ^~~~~ Arpeggiator.cpp:654:15: error: 'union _local' has no member named 'stepSequencer' local.stepSequencer.pots[RIGHT_POT] = pot[RIGHT_POT]; ^~~~~ Arpeggiator.cpp:791:32: error: 'union _local' has no member named 'stepSequencer' if (potChangedBy(local.stepSequencer.pots, LEFT_POT, BIG_POT_UPDATE)) ^~~~~ Arpeggiator.cpp:799:32: error: 'union _local' has no member named 'stepSequencer' if (potChangedBy(local.stepSequencer.pots, RIGHT_POT, BIG_POT_UPDATE)) ^~~~~ exit status 1 'union _local' has no member named 'stepSequencer'

what am I doing wrong? Help please

eclab commented 2 years ago

Looks like a dumb bug. In StepSequencer.cpp, just replace "local.stepSequencer" with "local.arp", and I'm betting that will fix things.

On Sep 23, 2022, at 6:30 AM, Andr @.***> wrote:

Arduino: 1.8.13 (Windows 10), Board: "Arduino Uno" Hello! I'm trying to upload a sketch Arpeggiator in my Arduino Uno

I set in All.h

if defined(UNO)

// You can pick ONE of these

define INCLUDE_ARPEGGIATOR

//#define INCLUDE_STEP_SEQUENCER

byt I have error

sketch\Arpeggiator.cpp: In function 'void stateArpeggiatorPlay()': Arpeggiator.cpp:653:15: error: 'union _local' has no member named 'stepSequencer' local.stepSequencer.pots[LEFT_POT] = pot[LEFT_POT]; ^~~~~ Arpeggiator.cpp:654:15: error: 'union _local' has no member named 'stepSequencer' local.stepSequencer.pots[RIGHT_POT] = pot[RIGHT_POT]; ^~~~~ Arpeggiator.cpp:791:32: error: 'union _local' has no member named 'stepSequencer' if (potChangedBy(local.stepSequencer.pots, LEFT_POT, BIG_POT_UPDATE)) ^~~~~ Arpeggiator.cpp:799:32: error: 'union _local' has no member named 'stepSequencer' if (potChangedBy(local.stepSequencer.pots, RIGHT_POT, BIG_POT_UPDATE)) ^~~~~ exit status 1 'union _local' has no member named 'stepSequencer'

what am I doing wrong? Help please

— Reply to this email directly, view it on GitHub https://github.com/eclab/gizmo/issues/10, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADAZDVCGCUYRR36DTXXFX53V7WBEJANCNFSM6AAAAAAQT3H33Q. You are receiving this because you are subscribed to this thread.