CabbageRack
CabbageRack copied to clipboard
`label` widgets not rendering in Rack export
When exporting the "hello world" example, the label
widgets don't seem to render in the Rack UI:
They look fine here? I'm using the latest build. Can you pull from source and try again?
I re-built Cabbage today from commit https://github.com/rorywalsh/cabbage/commit/203b2cae695ca4c4ca4f049fc25a466eac5a3f2d in the cmake
branch and the labels still don't render on Rack 1.1.6.
label_test.csd
<Cabbage>
form caption("CabbageModule") size(100, 380), colour(255, 255, 255), pluginid("def1")
screw bounds(5, 10, 15, 15)
screw bounds(80, 10, 15, 15)
screw bounds(5, 360, 15, 15)
screw bounds(80, 360, 15, 15)
cvinput bounds(34, 60, 30, 30), channel("cvInput1")
label bounds(0, 90, 100, 12), fontColour(0,0,0) text("Input")
cvoutput bounds(34, 300, 30, 30), channel("cvOutput1")
label bounds(0, 330, 100, 12), fontColour(0,0,0) text("Output")
rslider bounds(0, 150, 100, 100), channel("gain"), text("Gain"), textColour(0, 0, 0, 255), range(0, 1, 0, 1, 0.01)
light bounds(45, 250, 10, 10), channel("light1")
</Cabbage>
<CsoundSynthesizer>
<CsOptions>
-n -d
</CsOptions>
<CsInstruments>
; Initialize the global variables.
ksmps = 32
nchnls = 2
0dbfs = 1
</CsInstruments>
<CsScore>
</CsScore>
</CsoundSynthesizer>
In case it is useful, here is the Rack terminal output when I instantiate the label_test
module:
Rack terminal output
UnifiedCSD: /home/bco/.Rack/plugins-v1/3_label_test/3_label_test.csd
Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.002s
sorting score ...
... done
Elapsed time at end of score sort: real: 0.003s, CPU: 0.004s
--Csound version 6.17 (double samples) Oct 16 2021
[commit: b8a41184ca64044e767ce387a02b3ac2d96b450a]
libsndfile-1.0.31
displays suppressed
sr = 44100.0, kr = 1378.125, ksmps = 32
0dBFS level = 1.0, A4 tuning = 440.0
orch now loaded
audio buffered in 256 sample-frame blocks
SECTION 1:
<Cabbage>
form caption("CabbageModule") size(100, 380), colour(255, 255, 255), pluginid("def1")
screw bounds(5, 10, 15, 15)
screw bounds(80, 10, 15, 15)
screw bounds(5, 360, 15, 15)
screw bounds(80, 360, 15, 15)
cvinput bounds(34, 60, 30, 30), channel("cvInput1")
label bounds(0, 90, 100, 12), fontColour(0,0,0) text("Input")
cvoutput bounds(34, 300, 30, 30), channel("cvOutput1")
label bounds(0, 330, 100, 12), fontColour(0,0,0) text("Output")
rslider bounds(0, 150, 100, 100), channel("gain"), text("Gain"), textColour(0, 0, 0, 255), range(0, 1, 0, 1, 0.01)
light bounds(45, 250, 10, 10), channel("light1")
</Cabbage>
100
++++++++++++++++++++++++++++++
Gain++++++++++++++++++++++++++++++
I was referring to the latest CabbageRack source code. I will check what version of Rack I'm using when I'm next at my Linux machine..
Out of curiosity, does the cmake
branch automatically download the latest CabbageRack commit on the main
branch or is it downloading a packaged release?
It's just grabbing a the latest release. I had a CI build set up for this, but it proved to be a nightmare to maintain. Btw, the cmake branch will probably be merged back into the develop branch at some point this week. I'm more or less done with testing now.