Page 1 of 1

MIDI triggering issue with unusual controller

Posted: Wed Dec 17, 2008 4:59 pm
by poz
Hi,

I would like to know how to "ignore" some midi signals
I explain my case:

I've got one midi trigger used by a musician while playing a home made instrument (kind of e-drum).
This midi trigger triggs a sampler, for let's say, a kick or Hi hat sound, and is then sent to modul8.

During the song, this triggers sends this midi signal many times to modul8. (example: if the kick is played, the signal will be exactly following the BPM .. if the hihat is played, the signal will occur twice per BPM ... )
I would like to know how to loop a small video clip (2 sec) all the time this signal is received (more than one / sec). When it stops, i want the video clip to dissapear with a fade out.

I managed to use "media to layer" with a "fade" module , and it works for last fade out... but each time the trigger is activated, the video restarts from the beginning, breaking the wanted loop, and creating a "freeze" when the trigger is played.

I want the loop to be continous while trigger is played, and fade out gently when it stops.

I know this is not a classical way to use modul8..
Thanks much for help, this for a quite big and complex artistic project.

poz

Posted: Mon Dec 29, 2008 6:15 am
by technomorph
your not really explaining your problem very clearly.

But anyhow you can use MIDIPIPE to do Midi filtering, changing etc. on the mac.
I know what your going thru and you just got to keep trying different ways of doing things.

Use MIDI triggers to turn the layer on / off may help it from not starting the loop at the beginning.

technomorph

Posted: Mon Dec 29, 2008 10:24 am
by poz
Hi, I Already use midipipe to modify my channels
I can't use it to ignore some signals, because I use many different midi configurations (one per song ..), each are save in modul8 project file.
I can't use many configurations in midipipe, only one.

I can't use on/off to activate/deactivate the layer, because the trigger is hit many times , and it would activate/desactivate the layer each time.
I need to have the layer looping smoothly while trigger is played many times. And I want the loop to stop when the trigger stops (i.e. no more signal for 2..3 seconds ..)

This is important, and I still have no solution .. and still searching one

Another solution would be to "count" the midi signal ... example: launch the video on trigger X, and once the trigger has been hit 32 or 64 times.. cut the video.
How to do that ?

Thanks much,
poz

Posted: Tue Dec 30, 2008 7:50 pm
by zoophar
i'm not shure to understand but
did you try somethong like this:

when the note 60 is ON for the 4th time, do the thing you want and set the variable 'signal' at 0


(in the init)

Code: Select all

signal =0


(in the message event)

Code: Select all

"""NOTE_OFF is seen by programs when velocity is 0
( param['param2']==0 )"""
if type == 'MIDI'and  param['param1'] == 60 and param['message'] == 'NOTE_ON' and param['param2']> 0:
    signal +=1 # or signal = signal+1
    if signal == 4:
        "do the thing"
        print 'note has been pressed 4 times'
        signal = 0

Posted: Tue Dec 30, 2008 7:55 pm
by poz
Hi,

I wonder I have to build a module with this ?
I'll give a try
thanks much for the info

poz

Posted: Tue Dec 30, 2008 8:16 pm
by zoophar
well
it's not really THE solution,
it's a "hamburger" and what you need is a "boeuf bourgignon"

you have to cook a bit, and as says Gusteau:
<< Everyone can cook >>

Posted: Tue Dec 30, 2008 8:27 pm
by poz
That will be fine, I'm from Burgundy ... (really!!) :P

I'll try this and tell you !
thanks again