Re: [LAD] FFADO midi ports

From: Egor Sanin <egor.sanin@email-addr-hidden>
Date: Fri Dec 16 2011 - 22:04:36 EET

Hi Thijs,

After reading your blog post, I wanted to let you know that you can
probably do this whole thing in a simpler way using mididings:
http://das.nasophon.de/mididings/

If Hydrogen can only send note messages, this is not a problem, just
route the note through mididings and convert it to something else
there.

It looks to me like your effects unit expects program change message,
so assuming when you switch to your song, you want to select Program
1, you can send (for example) note 56 out of Hydrogen to mididings and
convert that note message to a program change.

You can probably get away with something as simple as :

from mididings import *

run( KeyFilter(notes=[56]) >> Program(1) )

This is just a python script, so put it in fxselector.py and then

python2 fxselectro.py

This will set up the necessary midi ports, you'll be able to see them
in the jack graph.

For more than one program, just decide on all your notes and then
place the individual units in a list, which will essentially allow
parallel execution in mididings:

run( [ KeyFilter(notes=[56]) >> Program(1),
          KeyFilter(notes=[57]) >> Program(10)
        ] )

It's a very powerful tool. You can assemble any message you want if a
simple program change won't do.

On 12/16/11, thijs van severen <thijsvanseveren@email-addr-hidden> wrote:
> 2011/12/14 Clemens Ladisch <clemens@email-addr-hidden>
>
>> harryhaaren@email-addr-hidden wrote:
>> > On , thijs van severen <thijsvanseveren@email-addr-hidden> wrote:
>> >> any ideas ?
>> >
>> > Yup! Tell jack to not use ALSA raw midi, use SEQ instead.
>>
>> Raw MIDI ports do not allow sharing, so you have to tell all programs
>> you want to use at the same time to use the ALSA sequencer.
>> Instead of amidi, use aseqdump.
>>
>>
>> Regards,
>> Clemens
>>
>
>
> thanks for all the tips guys !
> it works great now :-)
>
> see
> http://audio-and-linux.blogspot.com/2011/12/pro-dsp1000p-automation-with-hydrogen.html
>
> grtz
> Thijs
>
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Sat Dec 17 00:15:01 2011

This archive was generated by hypermail 2.1.8 : Sat Dec 17 2011 - 00:15:01 EET