AHH Rutger!!!! I am so sorry - it seems I got mixed up somewhere a long the line and posted that one thinking it was self contained but forgetting it contained script from my updated one
I had updated my script so that I could route MIDI through a track and record the automation
the way I did that was to set the Control Surface input to MIDI yoke NT 4 and then set the input of a MIDI track to MIDI yoke NT 3 and then it's output to MIDI yoke NT 4
I could have jsut as easily used 1 & 2 or something
but in the script it is set to use MIDI yoke NT 3 - so if you set the control surface to MIDI yoke NT 3 then it should work, or you could try what I'm doing and set it to MIDI yoke NT 4 and use a MIDI track to receive MIDI yoke NT 3 and output to MIDI yoke NT 4
you still need MIDI yoke NT 1 enabled under 'track' because that is where the note is triggered (unless you route through the track)
really sorry about that - I wasnt paying attention!!
BTW - I also swapped over the A and B buttons - I find the trigger easier for playing the note
so here's the updated script, all I've changed is the A and B buttons
//Forge's Ableton script to control Macros with instant mapping
//thanks to Chris Vine
//pressing A triggers C0
midi1.channel3.C0 = Wiimote1.B
//these variables are created to help smooth the controls
//I'm exploring how to make it smoother
var.xRot = smooth((Wiimote1.gx * 30), 15)
var.yRot = smooth((Wiimote1.gy * 30), 15)
var.zRot = smooth((Wiimote1.gz * 30), 15)
//press keys to Map MIDI controls in Live - Wii changes too much to map
//easily - control30 uses A just because I added it later
//this is not case sensitive, a different command is probably needed to
// select case - I will explore better key commands with modifiers later
midi.Control30 = Keyboard.a
midi.Control31 = Keyboard.Q
midi.Control32 = Keyboard.W
midi.Control33 = Keyboard.E
midi.Control34 = Keyboard.R
midi.Control35 = Keyboard.T
midi.Control36 = Keyboard.Y
midi.Control37 = Keyboard.U
midi.Control38 = Keyboard.I
midi.Control39 = Keyboard.O
midi.Control41 = Keyboard.P
midi.Control42 = Keyboard.k
midi.Control43 = Keyboard.l
/* if A is pressed these controls are active
pointing the Wiimote upwards turns the knobs to 100%
*/
if Wiimote1.A = true {
midi1.Control30= (EnsureMapRange(var.zRot, -13,13, 0,1))
midi1.Control31= (EnsureMapRange(var.xRot, -13,13, 0,1))
midi1.Control32= (EnsureMapRange(var.yRot, -13,13, 0,1))
}
//with Left D-pad button held, Wiimote pitch controls Macro 1 and
//LED 1 lights up
if Wiimote1.Left = true {
midi3.Control33= (EnsureMapRange(var.zRot, -13,13, 0,1))
Wiimote1.Led1 = true
else
Wiimote1.Led1 = false
}
//with Up D-pad button held, Wiimote pitch controls Macro 2 and
//LED 2 lights up
if Wiimote1.up = true {
midi3.Control34= (EnsureMapRange(var.zRot, -13,13, 0,1))
Wiimote1.Led2 = true
else
Wiimote1.Led2 = false
}
//with Right D-pad button held, Wiimote pitch controls Macro 3 and
//LED 3 lights up
if Wiimote1.Right = true {
midi3.Control35= (EnsureMapRange(var.zRot, -13,13, 0,1))
Wiimote1.Led3 = true
else
Wiimote1.Led3 = false
}
//with Down D-pad button held, Wiimote pitch controls Macro 4 and
//LED 4 lights up
if Wiimote1.Down = true {
midi3.Control36= (EnsureMapRange(var.zRot, -13,13, 0,1))
Wiimote1.Led4 = true
else
Wiimote1.Led4 = false
}
//with minus button held, Wiimote pitch controls Macro 5 and
//LED 1 lights up
if Wiimote1.Minus = true {
//midi1.Control33= (EnsureMapRange(var.zRot, -13,13, 0,1))
midi3.Control37= (EnsureMapRange(var.zRot, -13,13, 0,1))
Wiimote1.Led1 = true
else
Wiimote1.Led1 = false
}
//with plus button held, Wiimote pitch controls Macro 6 and
//LED 2 lights up
if Wiimote1.Plus = true {
midi3.Control38= (EnsureMapRange(var.zRot, -13,13, 0,1))
Wiimote1.Led2 = true
else
Wiimote1.Led2 = false
}
////with the '1' button held, Wiimote pitch controls Macro 7 and
//LED 3 lights up
if Wiimote1.one = true {
midi3.Control39= (EnsureMapRange(var.zRot, -13,13, 0,1))
Wiimote1.Led3 = true
else
Wiimote1.Led3 = false
}
//with the '2' button held, Wiimote pitch controls Macro 8 and
//LED 4 lights up
if Wiimote1.two = true {
midi3.Control40= (EnsureMapRange(var.zRot, -13,13, 0,1))
Wiimote1.Led4 = true
else
Wiimote1.Led4 = false
}
// if home is pressed, these controls are active - I use them like this:
//41: Grain delay dry/wet or send; 42: GDelay Pitch,
//43: GDly feedback - this is all still being worked out
if Wiimote1.Home = true {
midi1.Control41= (EnsureMapRange(var.xRot, 13,-13, 0,1))
midi1.Control42= (EnsureMapRange(var.yRot, 13,-13, 0,1))
midi1.Control43= (EnsureMapRange(var.zRot, 13,-13, 0,1))
}