Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

label widgets not rendering in Rack export #7

Open
brylie opened this issue Oct 16, 2021 · 5 comments
Open

label widgets not rendering in Rack export #7

brylie opened this issue Oct 16, 2021 · 5 comments

Comments

@brylie
Copy link

brylie commented Oct 16, 2021

When exporting the "hello world" example, the label widgets don't seem to render in the Rack UI:

image

@rorywalsh
Copy link
Owner

They look fine here? I'm using the latest build. Can you pull from source and try again?

image

@brylie
Copy link
Author

brylie commented Oct 17, 2021

I re-built Cabbage today from commit rorywalsh/cabbage@203b2ca in the cmake branch and the labels still don't render on Rack 1.1.6.

image

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++++++++++++++++++++++++++++++

@rorywalsh
Copy link
Owner

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..

@brylie
Copy link
Author

brylie commented Oct 17, 2021

Out of curiosity, does the cmake branch automatically download the latest CabbageRack commit on the main branch or is it downloading a packaged release?

@rorywalsh
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants