Sub Patch Problems


#1

I've created an axs file which I can open in a new and saved axp. I add the audio outlet to it and save again. When I try to go live I get this error message. What am I doing wrong??

Generate code complete
Start compiling patch
"RM"
rm -f C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.o C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.elf C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.bin C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.d C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.map C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.lst
"APP"
arm-none-eabi-g++ -nostdlib -fno-exceptions -fno-rtti -mcpu=cortex-m4 -O3 -fomit-frame-pointer -falign-functions=16 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -Wunused-parameter -DCORTEX_USE_FPU=TRUE -DTHUMB_PRESENT -mno-thumb-interwork -DTHUMB_NO_INTERWORKING -mthumb -DTHUMB -std=c++11 -DARM_MATH_CM4 -D__FPU_PRESENT -H -IC:\PROGRA~2\Axoloti\app/CMSIS/Include -IC:\PROGRA~2\Axoloti\app/chibios/os/ports/common/ARMCMx/CMSIS/include -IC:\PROGRA~2\Axoloti\app/chibios/os/ports/common/ARMCMx -IC:\PROGRA~2\Axoloti\app/chibios/os/ports/GCC/ARMCMx -IC:\PROGRA~2\Axoloti\app/chibios/os/ports/GCC/ARMCMx/STM32F4xx -IC:\PROGRA~2\Axoloti\app/chibios/os/kernel/include -IC:\PROGRA~2\Axoloti\app/chibios/os/hal/include -IC:\PROGRA~2\Axoloti\app/chibios/os/hal/platforms/STM32F4xx -IC:\PROGRA~2\Axoloti\app/chibios/os/hal/platforms/STM32 -IC:\PROGRA~2\Axoloti\app/chibios/os/hal/platforms/STM32/GPIOv2 -IC:\PROGRA~2\Axoloti\app/chibios/os/hal/platforms/STM32/I2Cv1 -IC:\PROGRA~2\Axoloti\app/chibios/os/hal/platforms/STM32/OTGv1 -IC:\PROGRA~2\Axoloti\app/chibios/os/hal/platforms/STM32/RTCv2 -IC:\PROGRA~2\Axoloti\app/chibios/os/hal/platforms/STM32/SPIv1 -IC:\PROGRA~2\Axoloti\app/chibios/os/hal/platforms/STM32/TIMv1 -IC:\PROGRA~2\Axoloti\app/chibios/os/hal/platforms/STM32/USARTv1 -IC:\PROGRA~2\Axoloti\app/chibios/boards/ST_STM32F4_DISCOVERY -IC:\PROGRA~2\Axoloti\app/chibios/ext/fatfs/src -IC:\PROGRA~2\Axoloti\app\firmware -Winvalid-pch -MD -MP --include C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.h -c C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp -o C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.o
! C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.h.gch
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp: In member function 'void rootc::instanceahw2__1::voice::instanceread__3::dsp(const int32_t*, int32_t (&)[16])':
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:840:43: error: 'class rootc::instanceahw2__1' has no member named 'instancec_i'
int index = asat>>(27-parent->common->instancec_i.LENGTHPOW);
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:841:33: error: 'class rootc::instanceahw2__1' has no member named 'instancec_i'
int32_t y1 = parent->common->instancec_i.array[index]<common->instancec_i.GAIN;
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:841:75: error: 'class rootc::instanceahw2__1' has no member named 'instancec_i'
int32_t y1 = parent->common->instancec_i.array[index]<common->instancec_i.GAIN;
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:842:33: error: 'class rootc::instanceahw2__1' has no member named 'instancec_i'
int32_t y2 = parent->common->instancec_i.array[(index+1)&parent->common->instancec_i.LENGTHMASK]<common->instancec_i.GAIN;
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:842:77: error: 'class rootc::instanceahw2__1' has no member named 'instancec_i'
int32_t y2 = parent->common->instancec_i.array[(index+1)&parent->common->instancec_i.LENGTHMASK]<common->instancec_i.GAIN;
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:842:118: error: 'class rootc::instanceahw2__1' has no member named 'instancec_i'
int32_t y2 = parent->common->instancec_i.array[(index+1)&parent->common->instancec_i.LENGTHMASK]<common->instancec_i.GAIN;
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:843:51: error: 'class rootc::instanceahw2__1' has no member named 'instancec_i'
int frac = (asat - (index<<(27-parent->common->instancec_i.LENGTHPOW)))<<(parent->common->instancec_i.LENGTHPOW+3);
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:843:94: error: 'class rootc::instanceahw2__1' has no member named 'instancec_i'
int frac = (asat - (index<<(27-parent->common->instancec_i.LENGTHPOW)))<<(parent->common->instancec_i.LENGTHPOW+3);
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp: In member function 'void rootc::instanceahw2__1::voice::instanceread__2::dsp(const int32_t*, int32_t (&)[16])':
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:1088:43: error: 'class rootc::instanceahw2__1' has no member named 'instanceb_i'
int index = asat>>(27-parent->common->instanceb_i.LENGTHPOW);
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:1089:33: error: 'class rootc::instanceahw2__1' has no member named 'instanceb_i'
int32_t y1 = parent->common->instanceb_i.array[index]<common->instanceb_i.GAIN;
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:1089:75: error: 'class rootc::instanceahw2__1' has no member named 'instanceb_i'
int32_t y1 = parent->common->instanceb_i.array[index]<common->instanceb_i.GAIN;
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:1090:33: error: 'class rootc::instanceahw2__1' has no member named 'instanceb_i'
int32_t y2 = parent->common->instanceb_i.array[(index+1)&parent->common->instanceb_i.LENGTHMASK]<common->instanceb_i.GAIN;
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:1090:77: error: 'class rootc::instanceahw2__1' has no member named 'instanceb_i'
int32_t y2 = parent->common->instanceb_i.array[(index+1)&parent->common->instanceb_i.LENGTHMASK]<common->instanceb_i.GAIN;
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:1090:118: error: 'class rootc::instanceahw2__1' has no member named 'instanceb_i'
int32_t y2 = parent->common->instanceb_i.array[(index+1)&parent->common->instanceb_i.LENGTHMASK]<common->instanceb_i.GAIN;
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:1091:51: error: 'class rootc::instanceahw2__1' has no member named 'instanceb_i'
int frac = (asat - (index<<(27-parent->common->instanceb_i.LENGTHPOW)))<<(parent->common->instanceb_i.LENGTHPOW+3);
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:1091:94: error: 'class rootc::instanceahw2__1' has no member named 'instanceb_i'
int frac = (asat - (index<<(27-parent->common->instanceb_i.LENGTHPOW)))<<(parent->common->instanceb_i.LENGTHPOW+3);
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp: In member function 'void rootc::instanceahw2__1::voice::instanceread__1::dsp(const int32_t*, int32_t (&)[16])':
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:1262:43: error: 'class rootc::instanceahw2__1' has no member named 'instancea_i'
int index = asat>>(27-parent->common->instancea_i.LENGTHPOW);
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:1263:33: error: 'class rootc::instanceahw2__1' has no member named 'instancea_i'
int32_t y1 = parent->common->instancea_i.array[index]<common->instancea_i.GAIN;
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:1263:75: error: 'class rootc::instanceahw2__1' has no member named 'instancea_i'
int32_t y1 = parent->common->instancea_i.array[index]<common->instancea_i.GAIN;
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:1264:33: error: 'class rootc::instanceahw2__1' has no member named 'instancea_i'
int32_t y2 = parent->common->instancea_i.array[(index+1)&parent->common->instancea_i.LENGTHMASK]<common->instancea_i.GAIN;
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:1264:77: error: 'class rootc::instanceahw2__1' has no member named 'instancea_i'
int32_t y2 = parent->common->instancea_i.array[(index+1)&parent->common->instancea_i.LENGTHMASK]<common->instancea_i.GAIN;
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:1264:118: error: 'class rootc::instanceahw2__1' has no member named 'instancea_i'
int32_t y2 = parent->common->instancea_i.array[(index+1)&parent->common->instancea_i.LENGTHMASK]<common->instancea_i.GAIN;
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:1265:51: error: 'class rootc::instanceahw2__1' has no member named 'instancea_i'
int frac = (asat - (index<<(27-parent->common->instancea_i.LENGTHPOW)))<<(parent->common->instancea_i.LENGTHPOW+3);
^
C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.cpp:1265:94: error: 'class rootc::instanceahw2__1' has no member named 'instancea_i'
int frac = (asat - (index<<(27-parent->common->instancea_i.LENGTHPOW)))<<(parent->common->instancea_i.LENGTHPOW+3);
^
make: *** [C:\Users\ejr2\DOCUME~1\axoloti/build/xpatch.bin] Error 1
Done compiling patch
Start uploading patch
bin path: C:\Users\ejr2\Documents\axoloti\build\xpatch.bin
FileNotFoundException
Disconnect request
Done uploading patch
Start starting patch
Done starting patch
Start locking
Done locking
Rx paramchange index out of range16 0
Rx paramchange index out of range17 72,351,744
Rx paramchange index out of range50 0
Rx paramchange index out of range51 0
Rx paramchange index out of range52 55,574,528
Rx paramchange index out of range53 57,671,680
Rx paramchange index out of range54 57,671,680
Rx paramchange index out of range55 -25,165,824
Rx paramchange index out of range56 85,983,232
Rx paramchange index out of range57 -50,331,648
Rx paramchange index out of range58 12,582,912


#2

Sorted it.
Having spent all afternoon puzzling over it there was a mistake in the axs and that wouldnt play!


#3

did you put a parameter on parent and then remove the object ?
there is a bug there, which I think gives the same/similar error - which I've been meaning to raise (will do it now wink)

but if you restart the gui, you will find it will 'sort itself out'
(from memory, it caches the object, so you cant just delete the subobject then re-add)

created bug on github https://github.com/axoloti/axoloti/issues/215 , assuming its same error, which it may or may not be


#4

Yes thats what I did.
Thanks