User Forum    :: Powered by YaBB
  « MIDI-OX User Forum - Script for mute in X AIR18 with CS-10 »
Welcome, Guest. Please Login or Register.
Jul 15th, 2024, 11:31am


Home Home Help Help Search Search Members Members Login Login Register Register


   MIDI-OX User Forum
   Official
   Announcements
(Moderator: Jamie OConnell)
   Script for mute in X AIR18 with CS-10
« No topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Script for mute in X AIR18 with CS-10  (Read 160 times)
eduggg
New Member
*



MIDI-OX Rules!

   


Posts: 1
Script for mute in X AIR18 with CS-10
« on: May 2nd, 2024, 9:54am »
Quote Quote Modify Modify

have a JL Cooper CS-10 midi controller and I want to control 'mute' on a Behringer XR18. What happens is that while I have the button pressed on the CS-10, the XR18 mixer activates mute 1, but the moment I release it, it deactivates. I think I need a script to manage the solution. I attach rows of information in MIDI-OX to see if anyone can help me - Thanks in advance for any help.
 
When I press the button 1 in the Channel 1 of “CS-10” I watch in Decimal view two rows:
Status = 191; Data 1 = 0; Data 2=127 Chan=16 Event= CC:Bank MSB,
Status = 191; Data 1 = 0; Data 2=0 Chan=16 Event= CC:Bank MSB,
 
I want to map only to one data every time and alternatively:
Status = 177; Data 1 = 0; Data 2=127 Chan=2 Event= CC:Bank MSB, (I need this row For the first press)
Status = 177; Data 1 = 0; Data 2=0 Chan=2 Event= CC:Bank MSB, (this row should be omitted)
 
And wait until  I press the button again, so I send:
Status = 191; Data 1 = 0; Data 2=127 Chan=16 Event= CC:Bank MSB,
Status = 191; Data 1 = 0; Data 2=0 Chan=16 Event= CC:Bank MSB,
But the second time I need  the second row
Status = 177; Data 1 = 0; Data 2=127 Chan=2 Event= CC:Bank MSB, (this row should be omitted)
Status = 177; Data 1 = 0; Data 2=0 Chan=2 Event= CC:Bank MSB, (I need this row for the second press)
 
 
 
IP Logged
Breath
Administrator
*****





   
WWW

Gender: male
Posts: 1006
Re: Script for mute in X AIR18 with CS-10
« Reply #1 on: May 5th, 2024, 12:25am »
Quote Quote Modify Modify

Hi
first let me mention the advantage of Midi in Hex (hexadecimal).
 
Status = 191; Data 1 = 0; Data 2=127 Chan=16 Event= CC:Bank MSB,
Status = 191; Data 1 = 0; Data 2=0 Chan=16 Event= CC:Bank MSB,
becomes...  
Status = BF; Data 1 = 00; Data 2=7F     Chan=16 Event= CC:Bank MSB,
This Status is divided into 'B' and 'F'
B = (always) Continuous controller (CC)
Channel is the second part of the status. In this case F = the channel (F=15 but that is channel 16 as channel really starts at 0 in the computer and outside at 1)
 Data 1 is the CC type (00 in this case)
 
So it is much easier to see the Midi message as CC on chan16  Type 00 - Bank MSB
(177 is B1... a CC message on channel 2 - channel starts at 0)
 
Although you can use CC of any type to be be whatever you want, it is better to use up the other numbers before using an established one (00 for MSB and 20 hex LSB Bank change) for a different purpose.
So I wouldn't use these CC types unless you have to as many devices will react to this message preparing for a bank change and an eventual new patch.
 
So pressing the button puts out a value of 127 and releasing it puts out the same message but with a value of 0.
This is called a 'momentary' action for a switch. On for as long as you hold it.
A switch that turns on with one push and off with the next is called 'toggle'.
(Generally a toggle switch does nothing when you release it.)
 
You need to set the controller switch to toggle mode if it has one.
I looked for a manual to see if that is possible. At a quick search I could only find CS102.
If you can't do it on the CS-10, you can do it in MidiOx, but MidiOx needs to remember if the last state the switch was in was 'on' or 'off' so you need to use a script.
 
Here is an example of the script for a momentary switch to toggle switch.
http://www.midiox.com/cgi-bin/yabb/YaBB.pl?board=MOXScript;action=displa y;num=1657511134
 
 
Hope that helps.
 
Royce
« Last Edit: May 6th, 2024, 7:39pm by Breath » IP Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« No topic | Next topic »


MIDI-OX User Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.