Uno 2 Help Please


Mike Bullock
 

Brilliant - that worked fine
Thanks again :-)

On Wed, Jun 2, 2021 at 5:06 PM ossandust <ossan.dust@...> wrote:
"TRIGGER_CLICK" and "TRIGGER_RELEASE" are not commands which can be used in the preset content, like "SendMidi". They should be moved outside the preset content - see below. When you type '?' inside the preset content, you will get a dropdown list of valid commands (that is, after you have solved the current compile errors)

PRESET FX MUTE = 
{
   SendMidi X32SNIPPETS ProgChange 22 (this tells my desk to mute all fx)
   SendMidi X32FADERSVOICELIVE NoteOn 127 000 (this changes my lights)
   Pedal 1 = sweep A 1
   Pedal 2 = sweep B 1
}
TRIGGER_CLICK TUNER = Close Relay1
TRIGGER_RELEASE TUNER = Open Relay1

With this setup, you can have a "tuner" switch to toggle the tuner, independent from the other preset switches. 



--
Mike Bullock


ossandust
 

On Wed, Jun 2, 2021 at 12:07 PM, Mike Bullock wrote:
Changing from this:
SendMidi X32SNIPPETS ProgChange 53
SendMidi POD ProgChange 0
 
to this:
SendMidi X32SNIPPETS ProgChange 52
SendMidi POD ProgChange 0
You could do this by programming a "trigger", which in this case is actually more like a reusable function which can be called in all preset contents as follows : 
 
VAR $currentPODPreset = 127
VAR $newPODPreset = 0

TRIGGER_CLICK ControlPod =
{
   if($newPODPreset != $currentPODPreset)
   {
      SendMidi POD ProgChange $newPODPreset 
      $currentPODPreset = $newPODPreset 
   }
}
 
By using this function in the different presets, a MIDI command will only be sent to the POD if the ProgChange value is different from the previous POD ProgChange value : 

PRESET preset 1 =
{
   SendMidi X32SNIPPETS ProgChange 53
   $newPODPreset = 0
   SendTrigger ControlPod 
}
PRESET preset 2 =
{
   SendMidi X32SNIPPETS ProgChange 52
   $newPODPreset = 0
   SendTrigger ControlPod 
}


ossandust
 
Edited

"TRIGGER_CLICK" and "TRIGGER_RELEASE" are commands which can not be used in the preset content, like "SendMidi". They should be moved outside the preset content - see below. When you type '?' inside the preset content, you will get a dropdown list of valid commands (that is, after you have solved the current compile errors)

PRESET FX MUTE = 
{
   SendMidi X32SNIPPETS ProgChange 22 (this tells my desk to mute all fx)
   SendMidi X32FADERSVOICELIVE NoteOn 127 000 (this changes my lights)
   Pedal 1 = sweep A 1
   Pedal 2 = sweep B 1
}
TRIGGER_CLICK TUNER = Close Relay1
TRIGGER_RELEASE TUNER = Open Relay1

With this setup, you can have a "tuner" switch to toggle the tuner, independent from the other preset switches. 


Jack Fenton
 
Edited

My guess is the issue iw with the Pedal 1 or Pedal 2 Commands which should only have 1 parameter (the sweep name)

SWEEP A1 = SendMidi MyController CntrlChange 7 0-127
SWEEP  A2 = SendMidi MyController CntrlChange 11 0-127

PRESET FX_MUTE =
{
...
Pedal 1 = A1
Pedal 2 = A2
...
}

Or it could be that FX MUTE being 2 words should be FX_MUTE


Mike Bullock
 

Hi  ossandust,
I checked and the tuner is indeed a momentary (unlatched) switch,  please could you help me with the correct syntax I need for your comment below:
In that case you should create a trigger, with the 'Close Relay' command on press and the 'Open Relay' command on release

I have done the following:
Created a trigger name:
TRIGGERS = 
{
   TUNER
}

Then edited my tuner/fx mute preset to this:
PRESET FX MUTE = 
{
   SendMidi X32SNIPPETS ProgChange 22 (this tells my desk to mute all fx)
   SendMidi X32FADERSVOICELIVE NoteOn 127 000 (this changes my lights)
   Pedal 1 = sweep A 1
   Pedal 2 = sweep B 1
   TRIGGER_CLICK TUNER = Close Relay1
   TRIGGER_RELEASE TUNER = Open Relay1
}
I obviously have something wrong in the last 2 lines as it says 'unknown command'
Sorry, I'm a slow learner but will get the hang of it when the penny drops.... :-)

MIKE


Mike Bullock
 

Thanks for your reply, but I mistyped - it is already set up the way you suggested (close relay for tuner, and open relay for others). I just tried it with another piece of kit (a channel switch on my amp) and does the same thing: I press the tuner preset and nothing happens (although the relay led does light up) and then when I press another preset, the tuner comes on (but ONLY if I press the tuner preset before it.....

Yes, maybe that's the way to do it with a trigger command - I'll give that a go. 

Yes I suspected it might be a conditional command I needed, just wasn't sure how to compile the necessary syntax - I am send programme changes to my Line 6 POD as well as invoking fx changes on my digital mixing desk, but if I am already on the correct POD programme and just changing the desk fx I don't always want the POD to receive the command as it tends to create a momentary silence as it tries to switch programmes.

Below is an example of what I have:

Changing from this:
SendMidi X32SNIPPETS ProgChange 53
SendMidi POD ProgChange 0

to this:
SendMidi X32SNIPPETS ProgChange 52
SendMidi POD ProgChange 0

Where the desk is changing but the POD is staying on the same programme.

Thank you so much for your help, I will try your suggestions.
Mike

On Wed, Jun 2, 2021 at 12:37 PM ossandust <ossan.dust@...> wrote:
- possibly you just need to swap the relay commands : 'Close Relay 1' to engage the tuner, 'Open Relay 1' to hide it. Not sure about the "relay clicks and illuminates" : the relay LED on the FCB1010 illuminates when the relay is in the 'closed' state.
If indeed the tuner is controlled with a toggling switch (closed/open to activate/deactivate the tuner), you'd better use an effect button to switch the tuner on (EFFECT_ON) and off (EFFECT_OFF) - this avoids the need to add a relay command to all other presets.
It's also possible that the tuner expects a 'momentary' switch instead of a toggling switch. In that case you should create a trigger, with the 'Close Relay' command on press and the 'Open Relay' command on release. A momentary switch would mean that you can't see on the FCB1010 if the tuner is engaged, but I guess you are watching the tuner anyway, so that's not really an issue. 

- the 'no PC repeats' option doesn't exist in UnO2, but you can use the conditional statements "if(...)" to implement something similar. How to do that depends on what exactly you want to avoid. For instance, if you want to avoid certain commands to be resent when clicking the same preset twice : 
 
PRESET preset 1 =
{
   // specify here all commands which need to be sent always
   if($currentPreset != "preset 1")
   {
      $currentPreset = "preset 1"
      // specify here all commands which should be sent only once when selecting the same preset multiple times
   }
}



--
Mike Bullock


ossandust
 

- possibly you just need to swap the relay commands : 'Close Relay 1' to engage the tuner, 'Open Relay 1' to hide it. Not sure about the "relay clicks and illuminates" : the relay LED on the FCB1010 illuminates when the relay is in the 'closed' state.
If indeed the tuner is controlled with a toggling switch (closed/open to activate/deactivate the tuner), you'd better use an effect button to switch the tuner on (EFFECT_ON) and off (EFFECT_OFF) - this avoids the need to add a relay command to all other presets.
It's also possible that the tuner expects a 'momentary' switch instead of a toggling switch. In that case you should create a trigger, with the 'Close Relay' command on press and the 'Open Relay' command on release. A momentary switch would mean that you can't see on the FCB1010 if the tuner is engaged, but I guess you are watching the tuner anyway, so that's not really an issue. 

- the 'no PC repeats' option doesn't exist in UnO2, but you can use the conditional statements "if(...)" to implement something similar. How to do that depends on what exactly you want to avoid. For instance, if you want to avoid certain commands to be resent when clicking the same preset twice : 
 
PRESET preset 1 =
{
   // specify here all commands which need to be sent always
   if($currentPreset != "preset 1")
   {
      $currentPreset = "preset 1"
      // specify here all commands which should be sent only once when selecting the same preset multiple times
   }
}


Mike Bullock
 

Hi All, I have successfully migrated to the Uno 2 chip, but I do have a couple of small issues:

  • In the Uno 1 GUI, you have the ability to select 'no PC repeats' by just clicking the button - how do I invoke this in Uno 2?
  • I use one of the switch/relay outputs to switch on my tuner - this always worked with Uno 1, but when I uploaded my setting to Uno 2, the FCB button I designated does not now switch the tuner on. The relay clicks and illuminates but the tuner does not come on - however, when I switch to another preset, the tuner then comes on (when I don't want it to). The upload settings in Uno 2 state 'Open Relay1' for my tuner preset, and 'Close Relay1' for all others.
Any help gratefully received - I am new to programming language, so on a bit of a learning curve.

Thanks,

Mike