I am having a great time using Eurorack-blocks to build all kinds of modules in VCV rack. It is absolutely fanastic but I’ve come up against a problem when trying to make a module with stereo inputs and outputs.
For the sake of debugging, i’ve tried making a module with just in1, in2, out1 and out2 wired in parallel. I’ve used the suggested erbui from the documentation.
control audio_in_left AudioIn {
position 2hp, 111mm
style thonk.pj398sm.knurled
label "IN L"
cascade audio_in_right
}
control audio_in_right AudioIn {
position 4.66hp, 111mm
style thonk.pj398sm.knurled
label "IN R"
}
control audio_out_left AudioOut {
position 7.33hp, 111mm
style thonk.pj398sm.knurled
label "OUT L"
}
control audio_out_right AudioOut {
position 10hp, 111mm
style thonk.pj398sm.knurled
label "OUT R"
}
But I come up with this error when building the simulator
clam@Clams-MacBook-Air Tester % erbb configure
clam@Clams-MacBook-Air Tester % erbb build simulator_xcode
objc[40446]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1ed957b78) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x110f3c2c8). One of the two will be used. Which one is undefined.
objc[40446]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1ed957bc8) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x110f3c318). One of the two will be used. Which one is undefined.
ACTION Transpile Ui
ACTION Transpile VcvRack
COPY /Users/clam/eurorack-blocks/max/Tester/artifacts/panel_vcvrack.svg
COPY /Users/clam/eurorack-blocks/max/Tester/artifacts/plugin.json
CXX /Users/clam/eurorack-blocks/max/Tester/Tester.cpp
/Users/clam/eurorack-blocks/max/Tester/Tester.cpp:20:10: error: no member named 'audio_out' in 'TesterUi'
ui.audio_out [i] = ui.audio_in [i];
~~ ^
/Users/clam/eurorack-blocks/max/Tester/Tester.cpp:20:29: error: no member named 'audio_in' in 'TesterUi'
ui.audio_out [i] = ui.audio_in [i];
~~ ^
2 errors generated.
** BUILD FAILED **
The following build commands failed:
CompileC /Users/clam/eurorack-blocks/max/Tester/artifacts/build/project_vcvrack.build/Release/Tester.build/Objects-normal/x86_64/Tester.o /Users/clam/eurorack-blocks/max/Tester/Tester.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'Tester' from project 'project_vcvrack')
(1 failure)
Traceback (most recent call last):
File "/Users/clam/eurorack-blocks/build-system/scripts/erbb", line 467, in <module>
sys.exit (main ())
File "/Users/clam/eurorack-blocks/build-system/scripts/erbb", line 431, in main
build ()
File "/Users/clam/eurorack-blocks/build-system/scripts/erbb", line 281, in build
erbb.build_simulator_xcode_target (module, cwd, configuration)
File "/Users/clam/eurorack-blocks/build-system/erbb/__init__.py", line 477, in build_simulator_xcode_target
asyncio.run (run_command (cmd))
File "/opt/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/opt/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
return future.result()
File "/Users/clam/eurorack-blocks/build-system/erbb/__init__.py", line 475, in run_command
raise subprocess.CalledProcessError (process.returncode, command)
subprocess.CalledProcessError: Command '['/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild', '-project', '/Users/clam/eurorack-blocks/max/Tester/artifacts/project_vcvrack.xcodeproj', '-configuration', 'Release', '-target', 'Tester', '-parallelizeTargets', '-PBXBuildsContinueAfterErrors=NO', 'SYMROOT=/Users/clam/eurorack-blocks/max/Tester/artifacts/build']' returned non-zero exit status 65.
clam@Clams-MacBook-Air Tester %
Is it just a matter of labelling the inputs and outputs differently in Max? It all works fine when I do stuff in mono?
I’m basically planning to debug this module all day so hopefully I don’t don’t up with too many silly questions!