# New rslider identifiers

**URL:** <https://forum.cabbageaudio.com/t/new-rslider-identifiers/2689>\
**Category:** Announcements\
**Created:** [7 July 2021 11:37 UTC](https://forum.cabbageaudio.com/t/new-rslider-identifiers/2689 "2021-07-07T11:37:58Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [7 July 2021 11:37 UTC](https://forum.cabbageaudio.com/t/new-rslider-identifiers/2689/1 "2021-07-07T11:37:58Z")

</div>

I’ve added 3 new `rslider` identifiers that let us do these kind of crazy things (available from v2.7.6).

 ![Screen Shot 2021-07-07 at 12.31.46](https://forum.cabbageaudio.com/uploads/default/original/2X/5/5c9aa920c498ad31566a15e0a13c6989f59d70bd.png)

**trackerStart(val)** Sets where Cabbage will start drawing the rotary slider tracker. This is a value between 0 and 1, where 0 and 1 represent 6 o’clock. The default value is 0.1.

**trackerEnd(val)** Sets where Cabbage will stop drawing the rotary slider tracker. This is a value between 0 and 1, where 0 and 1 represent 6 o’clock. The default value is 0.9.

**trackerCentre(val)** Sets where Cabbage will start drawing the tracker progress from. This is a value between 0 and 1, where 0 and 1 represent 6 o’clock. The default value is .9.

> _**trackerCentre(val)**_ should always be within the `trackerStart()` and `trackerEnd()` points. If not, your will look quite strange!

p.s. being able to move the centre point of the tracker’s progress bar is something I’ve been asked to add multiple times before. Apologies for the wait 🤣

---

<div class="post-metadata">

**Author:** ![hdale94](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/hdale94/32/6371_2.png) [@hdale94](https://forum.cabbageaudio.com/u/hdale94)\
**Post date:** [7 July 2021 11:54 UTC](https://forum.cabbageaudio.com/t/new-rslider-identifiers/2689/2 "2021-07-07T11:54:24Z")

</div>

Been missing the possibility to do this, so this is a very nice addition Rory 👍

Would something like this also be possible now?

 ![IMG_20210707_135044](https://forum.cabbageaudio.com/uploads/default/original/2X/5/5c0db334568901bd13cd64ffbed93379198d3632.png)

When the slider moves from the left, the marker increases from the middle on both sides?

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [7 July 2021 12:04 UTC](https://forum.cabbageaudio.com/t/new-rslider-identifiers/2689/3 "2021-07-07T12:04:35Z")

</div>

This was always possible using a filmstrip 😉

But to do it natively might not work. I don’t think there is a way to set the tracker background colour? So in this case the blue line above would be black, and when you move the slider it will draw a line from `trackerCentre()` to the slider position using a colour set by `trackerColour()`. So we would need yet another identifier for the tracker slot colour 🤔

---

<div class="post-metadata">

**Author:** ![hdale94](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/hdale94/32/6371_2.png) [@hdale94](https://forum.cabbageaudio.com/u/hdale94)\
**Post date:** [7 July 2021 12:17 UTC](https://forum.cabbageaudio.com/t/new-rslider-identifiers/2689/4 "2021-07-07T12:17:02Z")

</div>

![SliderMiddle](https://forum.cabbageaudio.com/uploads/default/original/2X/c/c160e358f10b72ade6f433497f566c3873b68f11.png)

Sorry for the absurdly ugly slider drawings…

What I’m imagining is the green tracker (orange here) starts from the centre. When moving an increment on the slider, two graphical trackers (one going left and one right) mirrors each other?

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [7 July 2021 12:52 UTC](https://forum.cabbageaudio.com/t/new-rslider-identifiers/2689/5 "2021-07-07T12:52:59Z")

</div>

Yeah that’s definitely a job for a filmstrip 👍

---

<div class="post-metadata">

**Author:** ![chronopolis](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/c/c37758/32.png) [@chronopolis](https://forum.cabbageaudio.com/u/chronopolis)\
**Post date:** [7 July 2021 16:50 UTC](https://forum.cabbageaudio.com/t/new-rslider-identifiers/2689/6 "2021-07-07T16:50:55Z")

</div>

Thanks Rory - this is a useful addition!

---

<div class="post-metadata">

**Author:** ![Samo](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/s/71c47a/32.png) [@Samo](https://forum.cabbageaudio.com/u/Samo)\
**Post date:** [8 July 2021 17:12 UTC](https://forum.cabbageaudio.com/t/new-rslider-identifiers/2689/7 "2021-07-08T17:12:32Z")

</div>

Beautiful!!! Thank you very much!

However, there is still a little issue, which I hope you could address.  
Clicking on the widget in edit mode erases these new identifiers as it does also with e.g. `markerStart`.  
I’d really like to be able to position widgets with the mouse without loosing their attributes.

You have suggested a work around for this kind of thing in your SmallSliders.csd example in the other thread: [https://forum-next.cabbageaudio.com/t/little-gui-widget-slugs-and-wishes/2673](https://forum-next.cabbageaudio.com/t/little-gui-widget-slugs-and-wishes/2673). So I guess I could fix it in the init pass, but it would be really comfy to not need doing this. 🙄 Could it be possible?

Also channel names are added automatically. I am not sure, but maybe this is the reason for some weird surprises, sometimes getting copies of widgets with possibly non unique channel names after clicking. Not easy to demonstrate this since it seems quite sporadic. But maybe you noticed something related?

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [8 July 2021 18:02 UTC](https://forum.cabbageaudio.com/t/new-rslider-identifiers/2689/8 "2021-07-08T18:02:13Z")

</div>

> [@Samo](#):
>
> Clicking on the widget in edit mode erases these new identifiers as it does also with e.g. `markerStart` .  
> I’d really like to be able to position widgets with the mouse without loosing their attributes.

Sorry, I didn’t think about that. I’ll get on that now..

[edit] fixed. New build underway..

---

<div class="post-metadata">

**Author:** ![Samo](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/s/71c47a/32.png) [@Samo](https://forum.cabbageaudio.com/u/Samo)\
**Post date:** [8 July 2021 20:12 UTC](https://forum.cabbageaudio.com/t/new-rslider-identifiers/2689/9 "2021-07-08T20:12:12Z")

</div>

Great! And thanks so much for bouncing back all the balls so fast 😃

Are these going to be `cabbageSet`-able? In the previous build I tried they were not.

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [9 July 2021 11:26 UTC](https://forum.cabbageaudio.com/t/new-rslider-identifiers/2689/10 "2021-07-09T11:26:50Z")

</div>

I can make them set-able. I won’t be able to do much in the coming days, so please feel free to bump this thread if you see no movement!

---

<div class="post-metadata">

**Author:** ![Samo](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/s/71c47a/32.png) [@Samo](https://forum.cabbageaudio.com/u/Samo)\
**Post date:** [9 July 2021 16:28 UTC](https://forum.cabbageaudio.com/t/new-rslider-identifiers/2689/11 "2021-07-09T16:28:00Z")

</div>

Take your time:) BTW.

> [@Samo](#):
>
> `markerStart`

still seems to suffer from the mouse click issue, and likely some other attributes as well - I hope there is a way to automate the checking of this issue for all attributes.

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [9 July 2021 18:31 UTC](https://forum.cabbageaudio.com/t/new-rslider-identifiers/2689/12 "2021-07-09T18:31:12Z")

</div>

It’s added now.

> [@Samo](#):
>
> I hope there is a way to automate the checking of this issue for all attributes.

I will try to add one for the future. 😉

---

<div class="post-metadata">

**Author:** ![Samo](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/s/71c47a/32.png) [@Samo](https://forum.cabbageaudio.com/u/Samo)\
**Post date:** [9 July 2021 18:58 UTC](https://forum.cabbageaudio.com/t/new-rslider-identifiers/2689/13 "2021-07-09T18:58:11Z")

</div>

Nice! Thanks!

> [@rorywalsh](#):
>
> I will try to add one for the future

I can’t believe you have been doing it all manually - superman! 😆

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [9 July 2021 22:43 UTC](https://forum.cabbageaudio.com/t/new-rslider-identifiers/2689/14 "2021-07-09T22:43:19Z")

</div>

Less Superman, more stupid man! The GUI editor came along after the parser, the two elements are independent. If I had known then what I know now 😂

---

<div class="post-metadata">

**Author:** ![Bryan\_T](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/bryan_t/32/5680_2.png) [@Bryan\_T](https://forum.cabbageaudio.com/u/Bryan_T)\
**Post date:** [30 July 2024 14:48 UTC](https://forum.cabbageaudio.com/t/new-rslider-identifiers/2689/15 "2024-07-30T14:48:16Z")

</div>

I’d love centre setting for hsliders, too. I sometimes use hsliders in the way you’d use a pan pot (like DJ crossfaders).
