Cabbage Logo
Back to Cabbage Site

Identchannel of XY pad

Hey Rory, does this code work in your computer?

First of all, if I start Cabbage with the name of the .csd I only see half of the XY pad. Second, I’d expected to see the green dot move to the center of the screen after instr 1 gets called. What’s the proper way of doing that? Because I want to replicate in the screen what I do via MIDI, with a real XY pad.

Thanks.

xypad.csd (433 Bytes)

I’ll take a look tomorrow.

Regarding the first thing I wrote about, it’s the weirdest thing. If I pass the name of the .csd as an argument to Cabbage the form displays correctly, but only half of the XY pad gets displayed (as if the form was smaller than 800x600). So I save/update (without changing anything in the file) and the XY pad is now displayed correctly.

The code I am using is this:

form caption(“form1”), size(800, 600)
xypad bounds(0,0, 800, 600), channel(“varX”, “varY”), identchannel(“xyChannel”), rangex(0,1,1), rangey(0,1,1)

You’re right. It’s unexpected behavior indeed. I’ll take a look.

This is fixed now in the dev branch.