Welcome to %s forums

BrainModular Users Forum

Login Register

leap motion patch creation

General Discussion about whatever fits..
Post Reply
Shintylla
Member
Posts: 125
Contact:

Unread post by Shintylla » 20 Apr 2016, 07:35

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

sephult
Member
Posts: 1144
Contact:

Unread post by sephult » 20 Apr 2016, 12:17

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
"Every act of creation is first an act of destruction." -Picasso

Shintylla
Member
Posts: 125
Contact:

Unread post by Shintylla » 20 Apr 2016, 12:49

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 :-)

sephult
Member
Posts: 1144
Contact:

Unread post by sephult » 20 Apr 2016, 13:09

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
"Every act of creation is first an act of destruction." -Picasso

sephult
Member
Posts: 1144
Contact:

Unread post by sephult » 20 Apr 2016, 13:12

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
"Every act of creation is first an act of destruction." -Picasso

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 20 Apr 2016, 13:16

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 :)

Shintylla
Member
Posts: 125
Contact:

Unread post by Shintylla » 20 Apr 2016, 13:30

Many thanks to both :)

Shintylla
Member
Posts: 125
Contact:

Unread post by Shintylla » 20 Apr 2016, 20:17

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

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 20 Apr 2016, 21:05

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 ?

Shintylla
Member
Posts: 125
Contact:

Unread post by Shintylla » 20 Apr 2016, 22:34

Note with right hand y axis.

Shintylla
Member
Posts: 125
Contact:

Unread post by Shintylla » 20 Apr 2016, 22:35

Do I have to cable create midi patch midi output to vsti midi in or code 1 output to midi in?

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 20 Apr 2016, 22:47

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

Shintylla
Member
Posts: 125
Contact:

Unread post by Shintylla » 21 Apr 2016, 18:22

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?

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 21 Apr 2016, 18:33

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

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 21 Apr 2016, 19:37

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

Shintylla
Member
Posts: 125
Contact:

Unread post by Shintylla » 21 Apr 2016, 21:40

thanks
best support overall!!!!

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 150 guests