Polyphonic subpatch compilation error


#1

I'm trying to make a simple polyphonic subpatch using patch/patcher, but it doesn't compile. This is the error log:

Generate code complete
Start creating directory on sdcard : /untitled
creating dir: /untitled
Done creating directory
Changing working directory on sdcard : /untitled
Change working directory: /untitled
Done changing working directory
Start compiling patch
Compiling patch... with /Applications/Axoloti.app/Contents/Java/firmware
BDIR = /Users/toon/Documents/axoloti/build
FIRMWARE = .
RM
rm -f /Users/toon/Documents/axoloti/build/xpatch.o /Users/toon/Documents/axoloti/build/xpatch.elf /Users/toon/Documents/axoloti/build/xpatch.bin /Users/toon/Documents/axoloti/build/xpatch.d /Users/toon/Documents/axoloti/build/xpatch.map /Users/toon/Documents/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 -I/Applications/Axoloti.app/Contents/Java/CMSIS/Include -I/Applications/Axoloti.app/Contents/Java/chibios/os/ports/common/ARMCMx/CMSIS/include -I/Applications/Axoloti.app/Contents/Java/chibios/os/ports/common/ARMCMx -I/Applications/Axoloti.app/Contents/Java/chibios/os/ports/GCC/ARMCMx -I/Applications/Axoloti.app/Contents/Java/chibios/os/ports/GCC/ARMCMx/STM32F4xx -I/Applications/Axoloti.app/Contents/Java/chibios/os/kernel/include -I/Applications/Axoloti.app/Contents/Java/chibios/os/hal/include -I/Applications/Axoloti.app/Contents/Java/chibios/os/hal/platforms/STM32F4xx -I/Applications/Axoloti.app/Contents/Java/chibios/os/hal/platforms/STM32 -I/Applications/Axoloti.app/Contents/Java/chibios/os/hal/platforms/STM32/GPIOv2 -I/Applications/Axoloti.app/Contents/Java/chibios/os/hal/platforms/STM32/I2Cv1 -I/Applications/Axoloti.app/Contents/Java/chibios/os/hal/platforms/STM32/OTGv1 -I/Applications/Axoloti.app/Contents/Java/chibios/os/hal/platforms/STM32/RTCv2 -I/Applications/Axoloti.app/Contents/Java/chibios/os/hal/platforms/STM32/SPIv1 -I/Applications/Axoloti.app/Contents/Java/chibios/os/hal/platforms/STM32/TIMv1 -I/Applications/Axoloti.app/Contents/Java/chibios/os/hal/platforms/STM32/USARTv1 -I/Applications/Axoloti.app/Contents/Java/chibios/boards/ST_STM32F4_DISCOVERY -I/Applications/Axoloti.app/Contents/Java/chibios/ext/fatfs/src -I. -I/Applications/Axoloti.app/Contents/Java/chibios -Winvalid-pch -MD -MP --include /Users/toon/Documents/axoloti/build/xpatch.h -c /Users/toon/Documents/axoloti/build/xpatch.cpp -o /Users/toon/Documents/axoloti/build/xpatch.o *
! /Users/toon/Documents/axoloti/build/xpatch.h.gch
/Users/toon/Documents/axoloti/build/xpatch.cpp: In member function 'void rootc::instancepatcher__1::voice::instancekeyb__1::MidiInHandler(midi_device_t, uint8_t, uint8_t, uint8_t, uint8_t)':
/Users/toon/Documents/axoloti/build/xpatch.cpp:422:14: error: 'class rootc::instancepatcher__1::voice' has no member named 'GetModulationTable'
* &parent->GetModulationTable()[parent->MODULATOR_instancekeyb__1_velocity*NMODULATIONTARGETS],*
* ^*
/Users/toon/Documents/axoloti/build/xpatch.cpp:428:14: error: 'class rootc::instancepatcher__1::voice' has no member named 'GetModulationTable'
* &parent->GetModulationTable()[parent->MODULATOR_instancekeyb__1_note*NMODULATIONTARGETS],*
* ^*
/Users/toon/Documents/axoloti/build/xpatch.cpp:439:14: error: 'class rootc::instancepatcher__1::voice' has no member named 'GetModulationTable'
* &parent->GetModulationTable()[parent->MODULATOR_instancekeyb__1_releasevelocity*NMODULATIONTARGETS],*
* ^*
make: *** [/Users/toon/Documents/axoloti/build/xpatch.bin] Error 1
shell task failed, exit value: 2
Compiling patch failed ( untitled )

When I set the subpatch to mono it does compile.
I'm using version 1.0.8 of the editor on osx 10.10.3.
patcher_problem.axp (2.7 KB)

Thanks for helping out!


Axoloti TEST release 1.0.8
#2

replace "midi/in/keyb mod" with "midi/in/keyb" for now, known issue...