SynthMaker

How to get position of module relative to parent ?

Archive · 2009 10 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

mrlucmorin ·

Hi,

Is it possible to determine the position of a component within its Parent module ?

For example, if I manually move a Knob within a module's front panel (by removing the padlock), how can I obtain the x,y coordinates of its position within the module's front panel ?

Thank you.

oddson ·

The same View Area primitive that was the answer in your last question is what you need here too.

If you attach a View Area primitive to the V input in the child module, then an Area to Float module will allow you to extract the x and y offsets.

I'm not at my SythMaker machine so I can't verify or produce an example. It may be a little trickier if the child module uses a "G" panel instead of an MGUI...

mrlucmorin ·

Actually, I had tried the View Area primitive, but the offset is always (0,0).

In my child module, I place one such View Area directly at the wireless input, and another one at the MGUI output, like this:

No matter how I resize/position the child module inside the parent, the x, y position coordinates are always (0,0).

I'm sure I'm missing something simple 😊

Thanks

oddson ·

😊 That's what I meant... I could have sworn that works.

Now I'm thinking I remember someone requesting the ability to read the placement of MGUI elements.

oddson ·

oddson wrote: Now I'm thinking I remember someone requesting the ability to read the placement of MGUI elements.

😊

er... it was me! Can I access the offsets frin the GUI frontpanel?

Hey Luc! were both in Canada... let's go for coffee.

We can meet in Winnipeg (half way at 1900 km). 😉

mrlucmorin ·

oddson wrote: er... it was me! Can I access the offsets frin the GUI frontpanel?

Hahaha that's funny... old age creeping in 😉

Hey Luc! were both in Canada... let's go for coffee.

We can meet in Winnipeg (half way at 1900 km). 😉

uhuh, only if you pay for the plane tickets 😉

About the position thing, I found a way to work around it, but still it would be nice. I'll repost to the Ideas and Requests forum.

Thanks

oddson ·

The only way to work around it is to use explict positioning instead of G panel dragging... it would be nice to have the missing feature.

mrlucmorin ·

Yeah, and not having explicit positioning was the whole idea 😈

So oddson, ever been to Quebec ? The farthest west that I've gone is Calgary. That country is too big, we should break it up 😉

oddson ·

mrlucmorin wrote: ...So oddson, ever been to Quebec ? The farthest west that I've gone is Calgary. [this] country is too big, we should break it up 😉

You guys keep trying but who'd pay for your social programs without transfer payments. 😉

McBarGig ·

HaHa LOL...

I've Been from Quebec att the way to Van Oddson...Both great provinces..

Wrote something here? To have a post removed or your name hidden, write to [email protected].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.