# Toggle CC# instead of CC values?

**URL:** <https://forum.electra.one/t/toggle-cc-instead-of-cc-values/3011>\
**Category:** General discussion\
**Created:** [June 11, 2024, 5:46pm UTC](https://forum.electra.one/t/toggle-cc-instead-of-cc-values/3011 "2024-06-11T17:46:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuipb](https://avatars.discourse-cdn.com/v4/letter/n/4af34b/32.png) [@nuipb](https://forum.electra.one/u/nuipb)\
**Post date:** [June 11, 2024, 5:46pm UTC](https://forum.electra.one/t/toggle-cc-instead-of-cc-values/3011/1 "2024-06-11T17:46:21Z")

</div>

Hi E1 people, I was wondering if there could be a way to toggle between 2 CC# instead of between 2 CC values with a Pad Toggle. Would anyone have a clue ?

---

<div class="post-metadata">

**Author:** ![martin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/martin/32/145_2.png) [@martin](https://forum.electra.one/u/martin)\
**Post date:** [June 14, 2024, 3:56am UTC](https://forum.electra.one/t/toggle-cc-instead-of-cc-values/3011/2 "2024-06-14T03:56:45Z")

</div>

I am afraid that this cannot be one without using Lua. I can create an example for you, but I need to know more about how it should work. Shall the Pad toggle send the message by itself? say, when switched from off → on it would send CC# 1 with value 1 and when switched from on → off, the CC #2 with value 1 would go out?

---

<div class="post-metadata">

**Author:** ![nuipb](https://avatars.discourse-cdn.com/v4/letter/n/4af34b/32.png) [@nuipb](https://forum.electra.one/u/nuipb)\
**Post date:** [June 15, 2024, 10:36pm UTC](https://forum.electra.one/t/toggle-cc-instead-of-cc-values/3011/3 "2024-06-15T22:36:31Z")

</div>

Thank you very much to consider reflecting on my request. Yes ideally the same Pad Toggle would be able to send CC#X with value a when ON and CC#Y with value b when OFF and the user being able to fill the fields for X, Y, a & b.

---

<div class="post-metadata">

**Author:** ![nuipb](https://avatars.discourse-cdn.com/v4/letter/n/4af34b/32.png) [@nuipb](https://forum.electra.one/u/nuipb)\
**Post date:** [June 27, 2024, 1:56pm UTC](https://forum.electra.one/t/toggle-cc-instead-of-cc-values/3011/4 "2024-06-27T13:56:47Z")

</div>

Hi Martin, I’m sure you have a lot keeping you busy these days but have you had a chance to create an example for this “upgraded” Toggle Pad ?

---

<div class="post-metadata">

**Author:** ![NewIgnis](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/newignis/32/767_2.png) [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Post date:** [June 30, 2024, 11:04am UTC](https://forum.electra.one/t/toggle-cc-instead-of-cc-values/3011/5 "2024-06-30T11:04:30Z")

</div>

I imagine you’d have 4 faders then and one pad. 2 faders to choose the CC number, and 2 faders to choose their value 0-127.  
Now, when do you want a message to be sent? Only when toggling the pad? Not when you change a CC number and not when you change to desired value?  
Or should it be slightly more clever, i.e. when you change the MIDI value that corresponds with the CC number that was sent in the last message, then a new message may be sent as well?

That would give you the following: if you,ve toggled the pad so CC B is transmitted, tweaking the value fader of CC A would not result in any transmission. But the tweaking the value fader of CC B ( being the CC number of the last transmission) would result in MIDI message for CC B.

---

<div class="post-metadata">

**Author:** ![nuipb](https://avatars.discourse-cdn.com/v4/letter/n/4af34b/32.png) [@nuipb](https://forum.electra.one/u/nuipb)\
**Post date:** [June 30, 2024, 11:29am UTC](https://forum.electra.one/t/toggle-cc-instead-of-cc-values/3011/6 "2024-06-30T11:29:08Z")

</div>

> [@NewIgnis](#):
>
> Now, when do you want a message to be sent? Only when toggling the pad? Not when you change a CC number and not when you change to desired value?  
> Or should it be slightly more clever, i.e. when you change the MIDI value that corresponds with the CC number that was sent in the last message, then a new message may be sent as well?
> 
> That would give you the following: if you,ve toggled the pad so CC B is transmitted, tweaking the value fader of CC A would not result in any transmission. But the tweaking the value fader of CC B ( being the CC number of the last transmission) would result in MIDI message for CC B.

Thanks for your suggestion but as described above I’m only looking for a simple Toggle from a [CC# + CC value] couple to another [CC# + CC value] couple. Actually it could replace the current Toggle Pad by simply adding a ON # (parameter) and OFF # (parameter) field in addition to the already existing ON VALUE and OFF VALUE.

---

<div class="post-metadata">

**Author:** ![NewIgnis](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/newignis/32/767_2.png) [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Post date:** [June 30, 2024, 4:25pm UTC](https://forum.electra.one/t/toggle-cc-instead-of-cc-values/3011/7 "2024-06-30T16:25:23Z")

</div>

This is not complicated, it’s a good exercise in lua actually. I don’t have an E1 with me, and I’m on a holiday. So up to you: you wait for another 2 weeks and then I make such template, or I 'll guide you at ease through the process, in which you will have built the preset yourself.  
What say you?

---

<div class="post-metadata">

**Author:** ![nuipb](https://avatars.discourse-cdn.com/v4/letter/n/4af34b/32.png) [@nuipb](https://forum.electra.one/u/nuipb)\
**Post date:** [June 30, 2024, 5:01pm UTC](https://forum.electra.one/t/toggle-cc-instead-of-cc-values/3011/8 "2024-06-30T17:01:37Z")

</div>

Thanks. I’d be happy to be guided to build the lua template however I would be available either late tonight, either tomorrow end of afternoon, what would be best for you ? Also, shouldn’t we do this via direct mail ?

---

<div class="post-metadata">

**Author:** ![NewIgnis](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/newignis/32/767_2.png) [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Post date:** [June 30, 2024, 8:05pm UTC](https://forum.electra.one/t/toggle-cc-instead-of-cc-values/3011/9 "2024-06-30T20:05:22Z")

</div>

As said I’m on a holiday . And travelling around. Not gonna plan in any meetings now 🙂

---

<div class="post-metadata">

**Author:** ![NewIgnis](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/newignis/32/767_2.png) [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Post date:** [June 30, 2024, 8:08pm UTC](https://forum.electra.one/t/toggle-cc-instead-of-cc-values/3011/10 "2024-06-30T20:08:44Z")

</div>

The first step is quite easy: make a template with the five controls. Make sure they all are virtual, and they all have the desired CC number or CC value range.

For the pad, just ensure both toggle mode show whatever it is you want it to show.

Once that is done, send me your template and I’ll add a bit and explain the rest of how to add lua to add.
