MIDI triggering issue with unusual controller
  • poz
    member
    Posts: 26
    Joined: Tue Dec 16, 2008 7:01 pm

    MIDI triggering issue with unusual controller

    by poz » Wed Dec 17, 2008 4:59 pm

    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
    Last edited by poz on Mon Dec 29, 2008 10:27 am, edited 1 time in total.
  • technomorph
    activ8 member
    Posts: 72
    Joined: Tue Nov 27, 2007 3:33 am

    by technomorph » Mon Dec 29, 2008 6:15 am

    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
  • poz
    member
    Posts: 26
    Joined: Tue Dec 16, 2008 7:01 pm

    by poz » Mon Dec 29, 2008 10:24 am

    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
  • User avatar
    zoophar
    activ8 member
    Posts: 81
    Joined: Sat Oct 20, 2007 1:33 pm
    Location: geneva / Berlin
    Contact:

    by zoophar » Tue Dec 30, 2008 7:50 pm

    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
  • poz
    member
    Posts: 26
    Joined: Tue Dec 16, 2008 7:01 pm

    by poz » Tue Dec 30, 2008 7:55 pm

    Hi,

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

    poz
  • User avatar
    zoophar
    activ8 member
    Posts: 81
    Joined: Sat Oct 20, 2007 1:33 pm
    Location: geneva / Berlin
    Contact:

    by zoophar » Tue Dec 30, 2008 8:16 pm

    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 >>
  • poz
    member
    Posts: 26
    Joined: Tue Dec 16, 2008 7:01 pm

    by poz » Tue Dec 30, 2008 8:27 pm

    That will be fine, I'm from Burgundy ... (really!!) :P

    I'll try this and tell you !
    thanks again

Who is online

Users browsing this forum: No registered users and 11 guests