Page 1 of 1

Posted: 20 Apr 2016, 07:35
by Shintylla
Hi,
I'd like to create a patch in which I can assign midi parameters to leap motion outs (fingers pos, palm position ecc..) Is there a tutorial/instruction in which is explaned how to commute values from Leap's module to the desired ones (ex.:MIDI; switches; ecc..)
Thanks

Posted: 20 Apr 2016, 12:17
by sephult
I believe there are some posts already in the forum, and I think I have some patches shared in there for XY to controllers you can reference. I dont know if there is a Leap to MIDI tutorial though.

Let me know if you cant find the posts and ill see if I can dig up the patches.

-s

Posted: 20 Apr 2016, 12:49
by Shintylla
Thank you sephult, I'll tell you. This morning I'll digged a little in the forum but I didn't find specific posts. Anyway my aim is to learn how to instead of copy-paste things :-)

Posted: 20 Apr 2016, 13:09
by sephult
i completely understand, but maybe you can reverse engineer a bit and at least see what is done. Will have to be some more documentation for things coming soon. Also dont forget we have a wiki that can be edited. If you learn something share :)


-s

Posted: 20 Apr 2016, 13:12
by sephult
Leap


Try this, I had built a way to recognize independent hands and controlled MIDI CC.
Check for further in post, I might have updated as I went.

-s

Posted: 20 Apr 2016, 13:16
by nay-seven
Here a basis example for the left hand and X axis, the leap module outs array , these arrays send 0 to 1 values,
So here i multiply this value by 127 to have a classic 0 to 127 Midi values
this value is send to the code 2 of a create MIDI module
here the CC number is 10
The has changed module create this MIDI message each time he receive changes

Image

ok, crossed post with sephult :)

Posted: 20 Apr 2016, 13:30
by Shintylla
Many thanks to both :)

Posted: 20 Apr 2016, 20:17
by Shintylla
Sorry, I might making some mistakes but I can't make it work. Can you explain how are code 1 and 2 and how it works to get midi output?
I uploaded a wkp called leapXaxisToMidi. Can you see if something wrong?
Many thanks

Posted: 20 Apr 2016, 21:05
by nay-seven
Which type of message do you want send, note or control change ?
if note, code 1 is the note number, code 2 the velocity
If control change, code 1 is control number, code 2 is value

this means on your workspace, you send note 128 with different velocity on canal 2 ?

Posted: 20 Apr 2016, 22:34
by Shintylla
Note with right hand y axis.

Posted: 20 Apr 2016, 22:35
by Shintylla
Do I have to cable create midi patch midi output to vsti midi in or code 1 output to midi in?

Posted: 20 Apr 2016, 22:47
by nay-seven
ok, so in your first workspae, if you inverse code1 and code 2, must work , code 2 for velocity will be fixed , or maybe you can use another leap value ?

some tips, add a quantize data module before code 1 to not have continues notes, and maybe a MIDI make monophonic module after the create MIDI module to create notes OFF

And yes, create midi patch midi output to vsti midi in

Posted: 21 Apr 2016, 18:22
by Shintylla
I met a problem. Value out of array surpass 1 and some peaks reaches 1.1/1.2. This 'cause unexpected sounds out of the vsti. I also don't notice anything new without make monophonic.
I don't want to buy a leap to midi plugin. The patch just give me ugly sounds ..
Any help?

Posted: 21 Apr 2016, 18:33
by 23fx23
maybe just clamp to 0.1? to clamp either add a "clip array" before the array or a fader with 0..1 range after you take the pin out

Posted: 21 Apr 2016, 19:37
by nay-seven
yes patching in Usine need to experiment a lot, you say you want to learn ? :)

here an update patch from where you start, I've add change scale modules to avoid your issues and quantize data
also add a send note OFF
Download

And here the leap piano (in the Usine browser) adapted to a vsti
Download

Posted: 21 Apr 2016, 21:40
by Shintylla
thanks
best support overall!!!!