| View previous topic :: View next topic |
| Author |
Message |
jjcomet
Joined: 23 Apr 2007 Posts: 87
Digg It |
Posted: Thu May 17, 2007 9:50 am Post subject: |
|
|
| cheesenuggett wrote: | DUDE TIGHT! that is exactly what i want
the problem is that i ReWire into reason, so i dont know how to control reason from ableton. but i would LOVE to know how to make wiimote have assignable rotation!!! |
I'm not at my laptop at the moment, but i reckon midi-control of reason via ableton (rewire) isn't really solely dependent on what you write in glovepie, it's how you specify targets, within Ableton midi tracks. Also look under 'Advanced MIDI' in reason and you can specify midi channels, which you could then identify/select via glovepie's midi.Channel variable; but you knew that anyway
Cheers
Brendan |
|
| Back to top |
|
 |
dchild
Joined: 17 May 2007 Posts: 18
Digg It |
Posted: Thu May 17, 2007 11:01 am Post subject: |
|
|
Hey man
Couldn't get you note script to work. The note remains pressed.
I've adapted the drumkit script you get with Glovepie to play notes.
| Quote: |
// Ableton live - play notes
var.xOffset = 8
var.yOffset = -37
var.zOffset = 12
var.xRot = Wiimote1.RawForceX + var.xOffset
var.yRot = Wiimote1.RawForceY + var.yOffset
var.zRot = Wiimote1.RawForceZ + var.zOffset
// Debug
debug = "X=" + var.xRot + " Y=" + var.yRot + " Z=" + var.zRot
// Downward drum beat triggered
if var.yRot > 30 then
var.B = Wiimote1.B and not (Wiimote1.A or Wiimote1.Minus or Wiimote1.Home or Wiimote1.Plus)
var.S = Wiimote1.A and not (Wiimote1.B or Wiimote1.Minus or Wiimote1.Home or Wiimote1.Plus)
var.C = Wiimote1.A and Wiimote1.B and not (Wiimote1.Minus or Wiimote1.Home or Wiimote1.Plus)
var.T = Wiimote1.Minus and not (Wiimote1.A or Wiimote1.B or Wiimote1.Home or Wiimote1.Plus)
var.M = Wiimote1.Home and not (Wiimote1.A or Wiimote1.B or Wiimote1.Minus or Wiimote1.Plus)
var.L = Wiimote1.Plus and not (Wiimote1.A or Wiimote1.B or Wiimote1.Minus or Wiimote1.Home)
var.H = not(Wiimote1.A or Wiimote1.B or Wiimote1.Minus or Wiimote1.Home or Wiimote1.Plus)
else
var.B = false
var.S = false
var.H = false
var.C = false
var.T = false
var.M = false
var.L = false
endif
Midi.volume = 100%
Midi.c3 = var.B
Midi.d3 = var.S
Midi.e3 = var.C
Midi.f3 = var.T
Midi.g3 = var.M
Midi.a3= var.L
Midi.b3 = var.H
|
|
|
| Back to top |
|
 |
dchild
Joined: 17 May 2007 Posts: 18
Digg It |
Posted: Thu May 17, 2007 11:17 am Post subject: |
|
|
I'm trying use the nunchuck as a keyboard by adapting the 'Ableton live play notes' script i posted previously
Can someone please explain how it can adapt this script (posted on the resolume forum) so that i can use the nunchuck to select a note, and then play the note by waving the nunchuck.
| Quote: |
//nunchuck variable definitions
var.nunForce = wiimote1.Nunchuk.RawForceY
var.nunJoyX = wiimote1.Nunchuk.JoyX
var.nunJoyY = wiimote1.Nunchuk.JoyY
var.nunC = wiimote1.Nunchuk.CButton
var.nunZ = wiimote1.Nunchuk.ZButton
//Nunchuck clip selection
if (var.nunForce > 70)
//no buttons held - top row of clips
if (var.nunJoyX < -.90 and var.nunJoyY < .2 and not var.nunC and not var.nunZ and not wiimote1.Two)
midi.c4 = true
endif
if (var.nunJoyX > -.80 and var.nunJoyX < -.2 and var.nunJoyY < -.6 and var.nunJoyY > -.9 and not var.nunC and not var.nunZ and not wiimote1.Two )
midi.d4 = true
endif
if (var.nunJoyX > -.20 and var.nunJoyX < 0.2 and var.nunJoyY < -.8 and var.nunJoyY < -.8 and not var.nunC and not var.nunZ and not wiimote1.Two )
midi.e4 = true
endif
if (var.nunJoyX < 0.90 and var.nunJoyX > 0.2 and var.nunJoyY < -.5 and var.nunJoyY > -.9 and not var.nunC and not var.nunZ and not wiimote1.Two )
midi.f4 = true
endif
if (var.nunJoyX > .90 and var.nunJoyY < .2 and not var.nunC and not var.nunZ and not wiimote1.Two)
midi.g4 = true
endif
//C button held - 2nd row of clips
if (var.nunJoyX < -.90 and var.nunJoyY < .2 and var.nunC and not var.nunZ and not wiimote1.Two)
midi.a4 = true
endif
if (var.nunJoyX > -.80 and var.nunJoyX < -.2 and var.nunJoyY < -.6 and var.nunJoyY > -.9 and var.nunC and not var.nunZ and not wiimote1.Two )
midi.b4 = true
endif
if (var.nunJoyX > -.20 and var.nunJoyX < 0.2 and var.nunJoyY < -.8 and var.nunJoyY < -.8 and var.nunC and not var.nunZ and not wiimote1.Two )
midi.c5 = true
endif
if (var.nunJoyX < 0.90 and var.nunJoyX > 0.2 and var.nunJoyY < -.5 and var.nunJoyY > -.9 and var.nunC and not var.nunZ and not wiimote1.Two )
midi.d5 = true
endif
if (var.nunJoyX > .90 and var.nunJoyY < .2 and var.nunC and not var.nunZ and not wiimote1.Two)
midi.e5 = true
endif
//Z button held - 3rd row of clips
if (var.nunJoyX < -.90 and var.nunJoyY < .2 and not var.nunC and var.nunZ and not wiimote1.Two)
midi.f5 = true
endif
if (var.nunJoyX > -.80 and var.nunJoyX < -.2 and var.nunJoyY < -.6 and var.nunJoyY > -.9 and not var.nunC and var.nunZ and not wiimote1.Two )
midi.g5 = true
endif
if (var.nunJoyX > -.20 and var.nunJoyX < 0.2 and var.nunJoyY < -.8 and var.nunJoyY < -.8 and not var.nunC and var.nunZ and not wiimote1.Two )
midi.a5 = true
endif
if (var.nunJoyX < 0.90 and var.nunJoyX > 0.2 and var.nunJoyY < -.5 and var.nunJoyY > -.9 and not var.nunC and var.nunZ and not wiimote1.Two )
midi.b5 = true
endif
if (var.nunJoyX > .90 and var.nunJoyY < .2 and not var.nunC and var.nunZ and not wiimote1.Two)
midi.c6 = true
endif
//Both buttons held - 4th row of clips
if (var.nunJoyX < -.90 and var.nunJoyY < .2 and var.nunC and var.nunZ and not wiimote1.Two)
midi.d6 = true
endif
if (var.nunJoyX > -.80 and var.nunJoyX < -.2 and var.nunJoyY < -.6 and var.nunJoyY > -.9 and var.nunC and var.nunZ and not wiimote1.Two )
midi.e6 = true
endif
if (var.nunJoyX > -.20 and var.nunJoyX < 0.2 and var.nunJoyY < -.8 and var.nunJoyY < -.8 and var.nunC and var.nunZ and not wiimote1.Two )
midi.f6 = true
endif
if (var.nunJoyX < 0.90 and var.nunJoyX > 0.2 and var.nunJoyY < -.5 and var.nunJoyY > -.9 and var.nunC and var.nunZ and not wiimote1.Two )
midi.g6 = true
endif
if (var.nunJoyX > .90 and var.nunJoyY < .2 and var.nunC and var.nunZ and not wiimote1.Two)
midi.a6 = true
endif
endif
|
I want to select a note using the X/Y on the nunchuck and the
//Nunchuck clip selection
if (var.nunForce > 70)
command so the note plays |
|
| Back to top |
|
 |
dchild
Joined: 17 May 2007 Posts: 18
Digg It |
Posted: Thu May 17, 2007 1:08 pm Post subject: |
|
|
This is where i'm @
Please note this script does not yet play all the notes listed.
HELP NEEDED
| Quote: |
//This is a text script
//input required for it to fully function
//This will play one note with the nunchuck
// Is intended to play all the notes listed at the bottom
var.xOffset = 8
var.yOffset = -37
var.zOffset = 12
var.xRot = Wiimote1.RawForceX + var.xOffset
var.yRot = Wiimote1.RawForceY + var.yOffset
var.zRot = Wiimote1.RawForceZ + var.zOffset
//nunchuck variable definitions
var.nunForce = wiimote1.Nunchuk.RawForceY
var.nunJoyX = wiimote1.Nunchuk.JoyX
var.nunJoyY = wiimote1.Nunchuk.JoyY
var.nunC = wiimote1.Nunchuk.CButton
var.nunZ = wiimote1.Nunchuk.ZButton
// Debug
debug = "X=" + var.xRot + " Y=" + var.yRot + " Z=" + var.zRot
//no buttons held - top row of clips
if (var.nunJoyX < -.90 and var.nunJoyY < .2 and not var.nunC and not var.nunZ and not wiimote1.Two)
var.pos1 = true
endif
if (var.nunJoyX > -.80 and var.nunJoyX < -.2 and var.nunJoyY < -.6 and var.nunJoyY > -.9 and not var.nunC and not var.nunZ and not wiimote1.Two )
var.pos2 = true
endif
if (var.nunJoyX > -.20 and var.nunJoyX < 0.2 and var.nunJoyY < -.8 and var.nunJoyY < -.8 and not var.nunC and not var.nunZ and not wiimote1.Two )
var.pos3 = true
endif
if (var.nunJoyX < 0.90 and var.nunJoyX > 0.2 and var.nunJoyY < -.5 and var.nunJoyY > -.9 and not var.nunC and not var.nunZ and not wiimote1.Two )
var.pos4 = true
endif
if (var.nunJoyX > .90 and var.nunJoyY < .2 and not var.nunC and not var.nunZ and not wiimote1.Two)
var.pos5 = true
endif
//Nunchuck clip selection
if var.nunForce > 70 then
var.B = var.pos1
var.S = var.pos2
var.C = var.pos3
var.T = var.pos4
var.M = var.pos5
else
var.B = false
var.S = false
var.H = false
var.C = false
var.T = false
var.M = false
endif
endif
Midi.Volume = 100%
Midi.c3 = Var.B
Midi.d3 = var.S
Midi.e3 = var.H
Midi.f3 = var.C
Midi.g3 = var.T
Midi.a3 = var.M
|
|
|
| Back to top |
|
 |
TiagoTiago
Joined: 20 Jan 2007 Posts: 711 Location: Brasil
Digg It |
Posted: Thu May 17, 2007 1:22 pm Post subject: |
|
|
| jjcomet wrote: | if someone could take the time to describe the difference between RawAccY and gY (with scripting examples)I'd really appreciate it
|
this is the text ont he "preliminary documentation" you find on the help menu:
| Quote: | There are three calibrated force values:
gx, gy, and gz
They can be zero for no force/acceleration, 1 for the same amount of force/acceleration as gravity, or any value in between or outside that range. There is also the vector version:
g
The accelerations above are effectively measured in Gs. You can use them for measuring actual acceleration, or for measuring tilt.
If you prefer acceleration values in other units, you can use these values:
RawAccX, RawAccY, and RawAccZ.
They are measured in Metres Per Second Per Second. |
is this not enough for you? _________________ please put the scripts on the wiki so they dont get lost as new stuff is posted!
I don't always get notifications of new replies, if you see a thread I should have responded, could please email me? |
|
| Back to top |
|
 |
|