Trigger Video Clips With MIDI Keyboard

amean_n's icon

Hello, I am in the process of creating a patch where I have a MIDI controller to adjust play speeds and effects on the Jitter video.

I would like to use a Midi Keyboard (M AUDIO Oxygen49) to trigger different video clips to play in the imovie box.

Different notes will trigger different video clips.

I have been told that using the notein object would be the best way. I am having difficulty understanding how to assign each key on the keyboard to the separate video clips.

Can someone please recommend a solution.

Thanks :)

Jean-Francois Charles's icon

One option is to use a ubumenu (umenu in Max 5) with auto-populate to get a list of all videos in a folder. Then, substract an the offset of your first not (suppose you want to trigger from key 49, make [- 49] after your note number, and go to the umenu.
(That is if you don't want to overlap videos. For that, you must design a different system with 2 players.)
Jean-Francois.

amean_n's icon

Thanks for your reply, At first I thought that would be best suited, however in some parts of the preformance I would like to trigger other clips somtimes which stop the old one playing then start the new one or be able to trigger clips on top of the other clips that are allready playinf(been triggerd)

:)

amean_n's icon

I have now managed to get a Umenu with the list of video files.

The next step would be to tell the umenu which video to play right ?

I have included my patch so far, Ignore the stuff on the right, that is for my midi controller.

Im not sure if the keyboard is correct, It was taken from a Jittter Tutorial (26).

Thanks

amean_n's icon

I have jsut thought, could I not use the pitch from Notein to trigger different clips ?

AS you click on each note you can see the pitch changes, is there a way the patch can understand whcih note has been pressed because of the pitch value.

There must be a way of assigning certain pitch values to different clips ?

Pitchs from keys :

0.03333

0.06667

0.08333 and so on !

:)

Jean-Francois Charles's icon

You don't want to trigger according to frequency, but rather stay with integers. For instance:

Max Patch
Copy patch and select New From Clipboard in Max.

To use the [imovie] object, first have a look at the object Reference (in Max Help).
If you want to do more video work in the future (overlap movies, crossfade between them...), you should give Jitter a try.
J-F.

amean_n's icon

woah , im totally lost, im afraid, I have no idea what that code was you pasted :(

Could you perhaps look at my patch and edit it accordingly and post it up on here.

I can understand better if I see what is happening.

I hope that is ok

Thank you

:)

tailortrik0's icon

to save you some grunt work,
heres what I made that kinda fits what what you want

the bottom is where you drop the movies, the top is what is selected

Max Patch
Copy patch and select New From Clipboard in Max.

amean_n's icon

Thanks for the reply,

Now It seems that the code you have pasted is the code from your patch, I assume that all I need to do to see the patcher is to paste this code somewhere. I am afraid I do not know how to do this

I'm sorry I am such a Noob at msp, I'm sure I will get it eventually !

Thank you

:)

amean_n's icon

Ok I figured it out, you literally copy and paste the code.

Thanks I will have a look :)

amean_n's icon

Awesome, Now i See that when the keyboard key has been selected it changes the file/s in the umenu.

So now what is the next step to playing these clips ?

Thanks for your help

Jean-Francois Charles's icon

Max tutorial 12, or Jitter tutorials.