Old 01-17-2013, 01:45 PM   #1
witti
Human being with feelings
 
witti's Avatar
 
Join Date: May 2012
Posts: 1,216
Default Simplify code

How can i simplify this:

set mcp.mute ?mcp_wantextmix&1 [36 120 20 20 0 1 0 1] ?mcp_wantextmix&2 [36 120 20 20 0 1 0 1] ?mcp_wantextmix&4 [36 120 20 20 0 1 0 1] [36 28 20 20 0 0 0 0]

If inserts, sends or fx parameters are shown, the mute button is at the same position, otherwise falls back to another position.

I tried something like this (and many other variations), but it's not working:

set mcp.mute ?mcp_wantextmix&1&2&4 [36 120 20 20 0 1 0 1] [36 28 20 20 0 0 0 0]

Any ideas ?

Last edited by witti; 01-17-2013 at 04:50 PM.
witti is offline   Reply With Quote
Old 02-24-2013, 06:02 AM   #2
witti
Human being with feelings
 
witti's Avatar
 
Join Date: May 2012
Posts: 1,216
Default

Hell, i found out how to do it!

I just had to sum the flags! (1+2+4=7!!)

So it is

set mcp.mute ?mcp_wantextmix&7 [36 120 20 20 0 1 0 1] [36 28 20 20 0 0 0 0]



Thank you witti, you are such a smart guy !
witti is offline   Reply With Quote
Old 02-24-2013, 06:18 AM   #3
Mr. Data
Human being with feelings
 
Mr. Data's Avatar
 
Join Date: Sep 2008
Location: Location
Posts: 5,559
Default

You might be surprised, but I knew that already.

-Data
__________________
German Language Pack for REAPER? Get it here! ... Donate? Yeah!! | Are you nuts? | Maybe
Deutsche Sprachdatei für REAPER? Hier zu haben! ... Spenden? Klar! | Spinnst wohl!? | Vielleicht
Mr. Data is offline   Reply With Quote
Old 02-24-2013, 06:48 AM   #4
witti
Human being with feelings
 
witti's Avatar
 
Join Date: May 2012
Posts: 1,216
Default

Cool !

But who told you that ?

And why didn't YOU tell me that ?
witti is offline   Reply With Quote
Old 02-24-2013, 12:05 PM   #5
Mr. Data
Human being with feelings
 
Mr. Data's Avatar
 
Join Date: Sep 2008
Location: Location
Posts: 5,559
Default

Quote:
Originally Posted by witti View Post
Cool !

But who told you that ?

And why didn't YOU tell me that ?
1. You yourself. One just needs to read your posts, eerrm!
2. Didn't need to. You discovered it yourself, didn't you?
3. I'd even ask you how to program WALTER if I only knew this damn robot.


-Data
__________________
German Language Pack for REAPER? Get it here! ... Donate? Yeah!! | Are you nuts? | Maybe
Deutsche Sprachdatei für REAPER? Hier zu haben! ... Spenden? Klar! | Spinnst wohl!? | Vielleicht
Mr. Data is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:49 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.