Any way to display "---" ?

Learn about building and using Max for Live devices.
Post Reply
chapelier fou
Posts: 6011
Joined: Mon May 15, 2006 12:15 pm

Any way to display "---" ?

Post by chapelier fou » Thu Jun 01, 2023 9:42 am

Ok this is not a big deal at all, BUT,
I'm trying to mimic Live's interface to send Program Change messages. On the Launch clip tab, Live displays "Bank ---", "Sub ---" and "Pgm ---".
I've set up a [live.numbox] to Enum mode, but the first item, "---" is logically replaced by a number.
Is there a way to display "---" ?
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

subparuser
Posts: 46
Joined: Thu Jan 09, 2020 1:18 pm

Re: Any way to display "---" ?

Post by subparuser » Thu Jun 01, 2023 4:25 pm

ASCII or Unicode character codes maybe?

chapelier fou
Posts: 6011
Joined: Mon May 15, 2006 12:15 pm

Re: Any way to display "---" ?

Post by chapelier fou » Thu Jun 01, 2023 7:46 pm

Thanks for the answer but I’m afraid I don’t get it. Any example ?
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

subparuser
Posts: 46
Joined: Thu Jan 09, 2020 1:18 pm

Re: Any way to display "---" ?

Post by subparuser » Thu Jun 01, 2023 8:16 pm

---

subparuser
Posts: 46
Joined: Thu Jan 09, 2020 1:18 pm

Re: Any way to display "---" ?

Post by subparuser » Thu Jun 01, 2023 8:42 pm

Sorry - I think I may have misinterpreted your issue.


On reflection, it seems the problem is [live.numbox] doesn't have the capability to display anything except numbers?

In that case, I would place an opaque display (but transparent to mouse) over the [live.numbox] and patch some logic to have the [live.numbox] update this display with whatever you desire.


Is that the gist of it?

Rivanni
Posts: 409
Joined: Sat Nov 26, 2016 12:30 pm

Re: Any way to display "---" ?

Post by Rivanni » Fri Jun 02, 2023 8:55 am

chapelier fou wrote:
Thu Jun 01, 2023 9:42 am
Ok this is not a big deal at all, BUT,
I'm trying to mimic Live's interface to send Program Change messages. On the Launch clip tab, Live displays "Bank ---", "Sub ---" and "Pgm ---".
I've set up a [live.numbox] to Enum mode, but the first item, "---" is logically replaced by a number.
That's not logical at all. With an enum, you can display any text you want. That's what enums are for. The actual value (index) use in the code is a number.
I have no problem using and displaying '---' as an item in a [live.numbox]. It's not replaced by a number. (Max 8.5.4)

Perhaps I'm not getting it right. If so, could you share a part of your code and explain the issue further?

Code: Select all

<pre><code>
----------begin_max5_patcher----------
320.3ociRssaBCCC84juhp7bKBpJvD+JSHTZqABJMoJWpXBw+9RbZf0G1zdI
I93isO1NOnDVq9NXYEGJ9rfPdPIDDJBPlsIrA98NI2hzXRwDrR4GhrJS9m3F
Ee.9M2AKs2IAGlf5YTQOxW2dqpIybj65tJTWNYfNWRT06ZVstrntYe7ZOdtY
6p0EGmiIkZ2WiPJ.FqrfcVp4gDb7UdMA84.yIPwakHyMuUmPkEWFzxmf9Sbm
yHZ8N38K67jYdzD6coGzmyvY7k0zOLqspppn7L7dgN9vM8RjKBQpUW9iQ5Bt
Cg0yOFrK7YupMt+ahxyv5jqmT56K77IEEKiONNAFqPqv1N1xg+H2zln4Gkno
PkL2hlFXRj42fHbSXS6BqYuIIt66ReCXC5dvn7BbePCEMVR7+WrQri7tT.wt
f9j9MvzT0JH
-----------end_max5_patcher-----------
</code></pre>

chapelier fou
Posts: 6011
Joined: Mon May 15, 2006 12:15 pm

Re: Any way to display "---" ?

Post by chapelier fou » Fri Jun 02, 2023 3:20 pm

Yeah, it works in Max, it also works in M4L edit mode. But once you save the device and load it it Live, it turns to a number instead of "---".

Here's the patch (change "----" to "---" and save it as a device)

Code: Select all

<pre><code>
----------begin_max5_patcher----------
1479.3oc6ZsraaiCEcsyWgfvL6RL3S8X10NXPmMyCztrXPgrsRpZskLjjyjN
E8eeHOWpDmVkHYaZmBzjEzwz7vKOWd3QjR5ymMIbV0M4MgA+RvaClL4ymMYB
pxVwD22mDtJ6l4KyZPyBmWsZUdYa34zu0leSKp+ue8e8pW+h+H3W+8W7mu52
dc2uutNuwz7r1hpx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B
MmRyI0HsFmDabgSoR8Bo23jfiSJNNI43jliaDccKgu2BmkEkez5Ossgx8aPU
4U8Xfcu1rxXBB7hjd90l2WU2daWrt+tnyzQzyusorf7orwO3maBen1z9Ix5I
k9cXd28gecxeylYC3jq8iQtHIktZG6n5jqd1I+Ym7mcx+wwI+NCr81Iuo+tX
bN4l3+8gS9KyJ+3PaJ2KN4t6i2w0HW9rO9y93O6i+iiO9V1W6sQ9rGnOFmSt
cDbhrxej6kjwmrq9KqJuiauntHaYvKqVtXmeRgL2iHD2zP2i6lM3a+v12vrs
GQME+GYBa5B+R8hxiCycOUsAeFo67sKkOh7BvYt1c4W+ZKgwqs96mrZp1TOu
KvtWTByEXuM7KxaZKJu8Rdu81GC+4AFd06DxNEI1.QBq84GXjvUJNIbBQZHN
IS8AmTiI6w8Am3iHR9I6YijXLYOuDI9XzdGbjXmrrG6jk8XmprmbTqm7Q1C6
Pcv4oTeEoAciX9HRiwiP5COBrW+Aci7R1SLhHoY9JRCNO4kr2XbXwdoEGZjF
ifP6AJIROUTpym4w4jzGbRbprxEi4xSH6IOvHwGS1S3AJwGi+pvKQZTtddIR
6Uti1hd150WmW23ZLBg4jKefd6uwYOMGRoj9pFesN+5ht1i2uxvrZyQPZMm+
XSMc1kahnGHQ3ppE40kaJbuh2FxYBINUDNh75r4tivZN7zYe4r+GegBKW
-----------end_max5_patcher-----------
</code></pre>
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

Rivanni
Posts: 409
Joined: Sat Nov 26, 2016 12:30 pm

Re: Any way to display "---" ?

Post by Rivanni » Fri Jun 02, 2023 7:07 pm

chapelier fou wrote:
Fri Jun 02, 2023 3:20 pm
Yeah, it works in Max, it also works in M4L edit mode. But once you save the device and load it it Live, it turns to a number
Ah, some additional relevant info.
Yes, I see the same behavior.
Three minus signs can be used to make object names unique. The three dashes then become a 3-digit number when the device is used. Of course, this should not happen when the three dashes are used as an enum.

I would replace the minus sign with one of its look-a-likes, and report to Cycling74.
Here are some examples.

Code: Select all

‑   
–   
—

chapelier fou
Posts: 6011
Joined: Mon May 15, 2006 12:15 pm

Re: Any way to display "---" ?

Post by chapelier fou » Fri Jun 02, 2023 8:22 pm

Yep! That’s what I did in the end.
Well, except for the report, which I definitely intend to do (it’s just that my days are a mix of music and making reports :wink: ))
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

Rivanni
Posts: 409
Joined: Sat Nov 26, 2016 12:30 pm

Re: Any way to display "---" ?

Post by Rivanni » Sat Jun 03, 2023 12:36 pm

chapelier fou wrote:
Fri Jun 02, 2023 8:22 pm
Well, except for the report, which I definitely intend to do (it’s just that my days are a mix of music and making reports :wink: ))
I just reported, so keep on making music. :wink:

chapelier fou
Posts: 6011
Joined: Mon May 15, 2006 12:15 pm

Re: Any way to display "---" ?

Post by chapelier fou » Sat Jun 03, 2023 12:42 pm

Haha, thanks !
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

Rivanni
Posts: 409
Joined: Sat Nov 26, 2016 12:30 pm

Re: Any way to display "---" ?

Post by Rivanni » Mon Jun 05, 2023 1:39 pm

I got a reply.
While I explained in my mail to support that I understand what the three dashes are normally used for, they felt the need to explain this again.
And that's it. No reaction to my comment why this conversion to unique numbers makes no sense when used in enums and menus. So a pretty useless response.
Luckily there are the look-alike characters we can use.

chapelier fou
Posts: 6011
Joined: Mon May 15, 2006 12:15 pm

Re: Any way to display "---" ?

Post by chapelier fou » Mon Jun 05, 2023 2:25 pm

Ha, thanks.
I hate this when I get replies like this. Or, when you pretty much explain the problem perfectly but they only reply with "please send a status request and a video demonstrating your problem".
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

Post Reply