Use anything as a MIDI/OSC controller with GlovePIE

Share your favorite Ableton Live tips, tricks, and techniques.
forge
Posts: 17422
Joined: Wed Apr 21, 2004 9:47 am
Location: Queensland, AU
Contact:

Re: Use anything as a MIDI/OSC controller with GlovePIE

Post by forge » Tue Apr 01, 2008 12:23 am

rutgermuller wrote:Dear Forge,

I've been trying to figure out how to use your macro control script for the last hours, but haven't been able to work it out :(. I haven't got any knowledge of Instant Mapping.

1)Bluetooth works (via the Bluesoleil stack)

2)MidiYoke works

3)Wiimote works (also in Live with other scripts)

4) I searched for this instant mapping thing in the Manual, and figured out it's unsupported :).

I edited the userconfig.txt

Is this what I need to do?

Code: Select all

Encoder1: 33
Encoder2: 34
Encoder3: 35
Encoder4: 36
Encoder5: 37
Encoder6: 38
Encoder7: 39
Encoder8: 40
Is this alright the way it is?

Code: Select all

GlobalChannel: 0
5) Then I figured I should do the following:
[img]http://www.rutgermuller.nl/forumzooi/gl ... ve.jpg/img]

6) After that I'm completly lost... I know I should map the keys, with the KEY map button. Should I map some of the characters 'aqwertyuiopkl' to any of the 8 macro knobs? (I also went through Live's Macro Control Tutorial but that didn't shed any light on this case)

7)...

Thanks a bunch.
Hi Rutger

in the Screenshot you posted you dont need to enable those buttons under track/sync/remote - that could be causing your problem

but, what I think might also be the case is MIDI Yoke NT1 might be a different number on your system - on my computer it is the first MIDI port available - what I suggest you do is click on the GUI tab and press "choose manually", then in the output device chooser look for MIDI yoke NT 1 and it should have the midi number to the left - if it is not midi1 then go back into the main text view and go to the search menu and select "replace" then key in the 'find what:' field 'midi1' and in the "replace with:' field put the number you want

also - you don;t need to use the keys at all to map anything if you are using instant mapping, the point of it is you select a device (preferably a rack so you can control the macros) then the blue hand appears on it and it should be mapped to those encoders



let me know how you go!

cheers

rutgermuller
Posts: 290
Joined: Thu May 31, 2007 11:27 pm

Post by rutgermuller » Tue Apr 01, 2008 7:23 pm

Hey Forge ! I'm beginning to understand the principles of Instant Mapping. Your script is still not working for me though :(.

GlovePie GUI states : Midi1 (MIDI Yoke NT: 1)

I see the blue hand appear when I activate the macro rack, and I see the macro knobs turn to their max when pressing the keys E to O.

I can't do anything with my wiimote, though. Tried pressing and holding the B, or the HOME and waving around...

Thanks for helping a n00b out :)

forge
Posts: 17422
Joined: Wed Apr 21, 2004 9:47 am
Location: Queensland, AU
Contact:

Post by forge » Wed Apr 02, 2008 1:07 am

Hi Rutger

EDIT - I just realised I misread your post - so you can see the blue hand on the device, and the knobs of the macros move when you press what keys? It sounds like you have mapped something to the macro keys - you will need to delete those mappings

Are you sure you have a connection with the Wiimote? have you tried it with any other scripts?



this is what my script says for the UserConfiguration.txt file

but all I've actually changed are those encoder settings

do you have another controller you can test the instant mapping with?
# Config File for User-defined Instant Mappings

# We assume that the controls on your MIDI controller
# send CCs (except for pads). All controls that do not have
# an explicit channel setting are expected to use the
# global channel. CCs & Notes are counted from 0-127
# and channels from 0-15.

[Globals]
# The channel that the controller should send on
GlobalChannel: 0
# If your controller is connected via USB, replace ControllerName
# with the name of the respective port. Live will then try to
# recognize the ports for you when you select your Instant-Mappings
InputName: ControllerName
OutputName: ControllerName
# If your controller has pads that send notes, you can use them to
# play the visible pads in your DrumRacks. Just replace the -1 for
# the note (and channel) of the respective pad. The arrangement of
# the pads in the DrumRacks is as follows:
# 1 2 3 4
# 5 6 7 8
# 9 10 11 12
# 13 14 15 16
# (If you leave the channel of a pad at -1, Live will assume that
# the pad uses the global channel)
Pad1Note: -1
Pad2Note: -1
Pad3Note: -1
Pad4Note: -1
Pad5Note: -1
Pad6Note: -1
Pad7Note: -1
Pad8Note: -1
Pad9Note: -1
Pad10Note: -1
Pad11Note: -1
Pad12Note: -1
Pad13Note: -1
Pad14Note: -1
Pad15Note: -1
Pad16Note: -1
Pad1Channel: -1
Pad2Channel: -1
Pad3Channel: -1
Pad4Channel: -1
Pad5Channel: -1
Pad6Channel: -1
Pad7Channel: -1
Pad8Channel: -1
Pad9Channel: -1
Pad10Channel: -1
Pad11Channel: -1
Pad12Channel: -1
Pad13Channel: -1
Pad14Channel: -1
Pad15Channel: -1
Pad16Channel: -1

[DeviceControls]
# The Encoders will control the device parameters (you can also
# use knobs or sliders). Replace the -1's with the CCs sent by
# the respective controls on your controller. You can also set
# the channel for each controller if it differs from the global
# channel (if you leave the channel of an encoder at -1, Live
# will assume that the encoder uses the global channel).
Encoder1: 33
Encoder2: 34
Encoder3: 35
Encoder4: 36
Encoder5: 37
Encoder6: 38
Encoder7: 39
Encoder8: 40
EncoderChannel1: -1
EncoderChannel2: -1
EncoderChannel3: -1
EncoderChannel4: -1
EncoderChannel5: -1
EncoderChannel6: -1
EncoderChannel7: -1
EncoderChannel8: -1
# Enter the respective map mode for the encoders here. The following
# map modes are available:
# - Absolute
# - Absolute14Bit
# - LinearSignedBit
# - LinearSignedBit2
# - LinearTwoCompliment
# - LinearBinaryOffset
# - AccelSignedBit
# - AccelSignedBit2
# - AccelTwoCompliment
# - AccelBinaryOffset
# Consult the controller's documentation to find out which mode to use.
EncoderMapMode: Absolute
# Buttons used here are expected to not be toggles (i.e., sending
# value 0 every second time you press it).
Bank1Button: -1
Bank2Button: -1
Bank3Button: -1
Bank4Button: -1
Bank5Button: -1
Bank6Button: -1
Bank7Button: -1
Bank8Button: -1
NextBankButton: -1
PrevBankButton: -1
LockButton: -1

[MixerControls]
# Again enter the appropriate CCs for the respective controls.
# If all sliders use the global channel to send their data,
# you can leave the channels at -1. You can, of course, use
# encoders or knobs instead of sliders.
VolumeSlider1: -1
VolumeSlider2: -1
VolumeSlider3: -1
VolumeSlider4: -1
VolumeSlider5: -1
VolumeSlider6: -1
VolumeSlider7: -1
VolumeSlider8: -1
Slider1Channel: -1
Slider2Channel: -1
Slider3Channel: -1
Slider4Channel: -1
Slider5Channel: -1
Slider6Channel: -1
Slider7Channel: -1
Slider8Channel: -1
MasterVolumeSlider: -1
MasterSliderChannel: -1
Send1Knob1: -1
Send1Knob2: -1
Send1Knob3: -1
Send1Knob4: -1
Send1Knob5: -1
Send1Knob6: -1
Send1Knob7: -1
Send1Knob8: -1
Send2Knob1: -1
Send2Knob2: -1
Send2Knob3: -1
Send2Knob4: -1
Send2Knob5: -1
Send2Knob6: -1
Send2Knob7: -1
Send2Knob8: -1
TrackArmButton1: -1
TrackArmButton2: -1
TrackArmButton3: -1
TrackArmButton4: -1
TrackArmButton5: -1
TrackArmButton6: -1
TrackArmButton7: -1
TrackArmButton8: -1
VolumeMapMode: Absolute
SendsMapMode: Absolute

[TransportControls]
# The transport buttons are also expected not to be toggles.
StopButton: -1
PlayButton: -1
RecButton: -1
LoopButton: -1
RwdButton: -1
FfwdButton: -1


rutgermuller
Posts: 290
Joined: Thu May 31, 2007 11:27 pm

Post by rutgermuller » Wed Apr 02, 2008 10:04 am

Hey Forge,

My UserConfiguration.txt is like you said. I've got no key mappings or midi mappings. When I see the blue hand I can press the keys E R T Y U I O to see the first 7 macro knobs flip from their current to their max value.

My wiimote works with other scripts, like Kid Quaalude's Wii to Midi script. But it only works if I activate REMOTE on Midi Port Options: Glovepie (MIDI Yoke NT1)

I'll see If I can test my CME UF6keyboard with instant mapping.

:cry:

Thanks

:)

forge
Posts: 17422
Joined: Wed Apr 21, 2004 9:47 am
Location: Queensland, AU
Contact:

Post by forge » Wed Apr 02, 2008 10:54 am

hey Rutger

just to check - you are holding down the buttons on the Wiimote while rotating?

so for example, hold down the left button in the D-Pad then turn from buttons to the left, round to the right

the keys influencing the macros indicate the script is working because those Controls are getting through

are the LEDs lighting up when you press those buttons? does the B button send a note?

actually for it to send a note you will need a track to receive on MIDI channel 3

forgetting instant mapping for the moment, does Live's enabling the remote button fro MIDI yoke NT 1 allow you to map the Wiimote to Live's remote?

rutgermuller
Posts: 290
Joined: Thu May 31, 2007 11:27 pm

Post by rutgermuller » Wed Apr 02, 2008 11:29 am

Yo.
just to check - you are holding down the buttons on the Wiimote while rotating? so for example, hold down the left button in the D-Pad then turn from buttons to the left, round to the right
Yep just tried this again, d-pad and rotating doesn't do anything.
are the LEDs lighting up when you press those buttons?
Haven't seen any of the LEDS light up during all this testing.
does the B button send a note?
actually for it to send a note you will need a track to receive on MIDI channel 3
The B Button only sends a note to channel 3 if I activate TRACK on Midiyoke1. Is that what you meant? Cause there's not any midi coming in (no yellow blinking in the midi indicator at the top right).
forgetting instant mapping for the moment, does Live's enabling the remote button fro MIDI yoke NT 1 allow you to map the Wiimote to Live's remote?
No. But with REMOTE on Midi Yoke NT1 the only midi signal that comes in is through the wiimote's A button (channel 3 midi note C2 according to the midi mapper)

Thanks again. Darn, can't wait till this works!

forge
Posts: 17422
Joined: Wed Apr 21, 2004 9:47 am
Location: Queensland, AU
Contact:

Post by forge » Wed Apr 02, 2008 1:18 pm

rutgermuller wrote:Yo.
just to check - you are holding down the buttons on the Wiimote while rotating? so for example, hold down the left button in the D-Pad then turn from buttons to the left, round to the right
Yep just tried this again, d-pad and rotating doesn't do anything.
are the LEDs lighting up when you press those buttons?
Haven't seen any of the LEDS light up during all this testing.
does the B button send a note?
actually for it to send a note you will need a track to receive on MIDI channel 3
The B Button only sends a note to channel 3 if I activate TRACK on Midiyoke1. Is that what you meant? Cause there's not any midi coming in (no yellow blinking in the midi indicator at the top right).
forgetting instant mapping for the moment, does Live's enabling the remote button fro MIDI yoke NT 1 allow you to map the Wiimote to Live's remote?
No. But with REMOTE on Midi Yoke NT1 the only midi signal that comes in is through the wiimote's A button (channel 3 midi note C2 according to the midi mapper)

Thanks again. Darn, can't wait till this works!
hmmmm...this all sounds a bit weird because you are getting buttons from the Wiimote so the connection is there, and you also know the script is running because the keys are triggering CCs

can you paste the exact script you have running, just in case something has gone amiss somewhere.....

and maybe if you could post any other descriptions or screenshots that might clarify how you have it set up

are you using your in built Blue tooth driver or Bluesoleil? But you say the movements work with a different script so that's probably not it......strange

logic_user99
Posts: 1965
Joined: Fri Oct 26, 2007 3:58 pm
Location: Nottingham, UK

Post by logic_user99 » Wed Apr 02, 2008 1:56 pm

This could be FAR too easy, but...

Does anyone have a script to turn a USB gamepad into a MIDI controller? Litterally (for now) just turn the buttons into MIDI CC#...

I'm at work at the momement, so am just speculating!
Macbook | Live 7.0.18 |

Angstrom
Posts: 14923
Joined: Mon Oct 04, 2004 2:22 pm
Contact:

Post by Angstrom » Wed Apr 02, 2008 1:59 pm

that is far too easy.
sorry, it's not even a test.

I think if you open the app it sort of forces that one on you.

bear in mind I was skateboarding Sampler the other day

forge
Posts: 17422
Joined: Wed Apr 21, 2004 9:47 am
Location: Queensland, AU
Contact:

Post by forge » Wed Apr 02, 2008 2:04 pm

logic_user99 wrote:This could be FAR too easy, but...

Does anyone have a script to turn a USB gamepad into a MIDI controller? Litterally (for now) just turn the buttons into MIDI CC#...

I'm at work at the momement, so am just speculating!
but as it goes I do:

midi1.Control21 = midi1.Control21 + 15*deadzone(joystick.x)
midi1.Control22 = midi1.Control22 + 15*deadzone(joystick.y)

midi1.Control23 = Joystick1.Button7

these are just the basics, you'll have to fill in the blanks, but it gives you an idea of how to do it
basically the deadzone function is to stop drift when the joystick is centered, I think it's only necessary if it needs calibration, but not sure about that

anyway, the crux of it is joystick.x (left/right) will control CC21
joystick. (up/down) will control CC22

and button 7 23

it's quite likely that all the buttons will just have numbers like that button.1 etc

if you want notes, jsut make it
midi1.D0 = Joystick1.Button7

etc

logic_user99
Posts: 1965
Joined: Fri Oct 26, 2007 3:58 pm
Location: Nottingham, UK

Post by logic_user99 » Wed Apr 02, 2008 2:15 pm

Thankyou, forge.

:)
Macbook | Live 7.0.18 |

rutgermuller
Posts: 290
Joined: Thu May 31, 2007 11:27 pm

Post by rutgermuller » Wed Apr 02, 2008 3:05 pm

Hey forge, I've made a little video for you. Don't what time it is at your place, but don't go to sleep yet ;). I just have to upload it.

logic_user99
Posts: 1965
Joined: Fri Oct 26, 2007 3:58 pm
Location: Nottingham, UK

Post by logic_user99 » Wed Apr 02, 2008 3:25 pm

Please tell me it's a video of you skateboarding Live!

Share it! Share it!
Macbook | Live 7.0.18 |

rutgermuller
Posts: 290
Joined: Thu May 31, 2007 11:27 pm

Post by rutgermuller » Wed Apr 02, 2008 3:40 pm

Skateboarding Live... is there a skateboard mod for the wiimote yet? That would be glitchy and dangerous.

Anyway damn argh div-x and x-vid encoding my screenrecordings isn't working at all :|, too many weird errors. I'll just have type/make screenshots I guess.
hmmmm...this all sounds a bit weird because you are getting buttons from the Wiimote so the connection is there, and you also know the script is running because the keys are triggering CCs

can you paste the exact script you have running, just in case something has gone amiss somewhere.....
I use exactly your script, I copied the one on the forum and the only in glovepie to a freeware text comparison tool to check.
and maybe if you could post any other descriptions or screenshots that might clarify how you have it set up
I would be glad too, but I don't really know what more I can show you :? (that's why I tried to make the screenrecording to show you everything, I'll try that again)
are you using your in built Blue tooth driver or Bluesoleil? But you say the movements work with a different script so that's probably not it......strange
Bluesoleil, works just fine. I also checked my wiimote batteries with a glovepie script. They're still half full.

The movents work with KidQuaalude's script (it's on page 1 here).

Maybe it would be wise for you/us to test that one out on your system ?

I also checked this: my UserConfiguration.txt's in the right scripts directory, from live 7.0.3.

What's going on :?

logic_user99
Posts: 1965
Joined: Fri Oct 26, 2007 3:58 pm
Location: Nottingham, UK

Post by logic_user99 » Wed Apr 02, 2008 5:33 pm

So like, I guess there's not a Mac-compatible version is there...? Are there any other programs out there that'll let me use a USB game pad as a MIDI controller?
Macbook | Live 7.0.18 |

Post Reply