Re: [LAD] FFADO midi ports

2011-12-18 Thread thijs van severen
Hi Egor

thanks for the tip!
Jeremy already pointed my in that direction, but it seemed a bit overkill
(i like it simple, it suits my personality  ;-)
however, it indeed looks really powerful so i'll definitely look into it
and play with it a bit

grtz
Thijs


2011/12/16 Egor Sanin 

> 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  wrote:
> > 2011/12/14 Clemens Ladisch 
> >
> >> harryhaa...@gmail.com wrote:
> >> > On , thijs van severen  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
> >
>



-- 

follow me on my Audio & Linux blog  !
___
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev


Re: [LAD] FFADO midi ports

2011-12-16 Thread Egor Sanin
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  wrote:
> 2011/12/14 Clemens Ladisch 
>
>> harryhaa...@gmail.com wrote:
>> > On , thijs van severen  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@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev


Re: [LAD] FFADO midi ports

2011-12-16 Thread thijs van severen
2011/12/14 Clemens Ladisch 

> harryhaa...@gmail.com wrote:
> > On , thijs van severen  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@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev


Re: [LAD] FFADO midi ports

2011-12-13 Thread Clemens Ladisch
harryhaa...@gmail.com wrote:
> On , thijs van severen  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
___
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev


Re: [LAD] FFADO midi ports

2011-12-13 Thread harryhaaren

On , thijs van severen  wrote:

any ideas ?


Yup! Tell jack to not use ALSA raw midi, use SEQ instead.
QJackCtl->Setup dialog, bottom left is "MIDI Driver", play with that..?

-Harry
___
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev


Re: [LAD] FFADO midi ports

2011-12-13 Thread thijs van severen
2011/12/11 Clemens Ladisch 

> thijs van severen wrote:
> > amidi -l should list all midi out ports that are available to amidi,
> right?
>
> It lists all ports implemented by an ALSA kernel driver.  It is possible
> to implement raw MIDI ports in software, but those are not listed.
>
> 123456789012345678901234567890123456789012345678901234567890123456789012
> ALSA's raw MIDI interface and sequencer interface are different.
> Usually, you want to use the latter.  Try "aplaymidi -l".
>
> > Another question: will a usb midi interface list the midi ports under
> alsa?
>
> Yes.
>

OK that seems to work fine, and the USB midi interface shows up when i run
amidi -l   :-)
i created a virtual midi device that dumps incoming data in a terminal
window (using amidi -p virtual d), and connected the midi input port of the
USB interface to that virtual interface (in qjackctl)
then i connected my FX unit to the usb interface and configured the FX unit
so it sends midi messages
whenever i turn the 'preset select' knob on the FX unit the midi data shows
up in the terminal window

if i then send this midi data back tot the FX unit (using  amidi -p
hw:2,0,0 -S 'C1 09') the unit jumps to the correct preset  :-)
however, this does not work when jack is running.  if jack is running i get
this message :

ALSA lib rawmidi_hw.c:233:(snd_rawmidi_hw_open) open /dev/snd/midiC2D0
failed: Device or resource busy
cannot open port "hw:2,0,0": Device or resource busy

looks like jack claims the device.
this is blocking for me since i need to have jack running for my audio
routing  :-(

any ideas ?

grtz
Thijs


>
>
> Regards,
> Clemens
> ___
> Linux-audio-dev mailing list
> Linux-audio-dev@lists.linuxaudio.org
> http://lists.linuxaudio.org/listinfo/linux-audio-dev
>



-- 

follow me on my Audio & Linux blog  !
___
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev


Re: [LAD] FFADO midi ports

2011-12-11 Thread Clemens Ladisch
thijs van severen wrote:
> amidi -l should list all midi out ports that are available to amidi, right?

It lists all ports implemented by an ALSA kernel driver.  It is possible
to implement raw MIDI ports in software, but those are not listed.

123456789012345678901234567890123456789012345678901234567890123456789012
ALSA's raw MIDI interface and sequencer interface are different.
Usually, you want to use the latter.  Try "aplaymidi -l".

> Another question: will a usb midi interface list the midi ports under alsa?

Yes.


Regards,
Clemens
___
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev


[LAD] FFADO midi ports

2011-12-11 Thread olivier
On 11/12/2011, thijs van severen  wrote:
> I must be missing something here.
> amidi -l should list all midi out ports that are available to amidi, right?
> No matter what i try with a2j and all of its variants (including j2a and
> using the -e option) amidi -l never gives me any usable ports.
> Same results as root.
>
> Or should i be using the -L option to list the availabble ports?  if yes,
> how does that work? I cant figure it out. :-(

Maybe you should try the following command : aconnect -iol

>
> Another question: will a usb midi interface list the midi ports under alsa?
>

It will, yes

oliv'
___
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev


Re: [LAD] FFADO midi ports

2011-12-11 Thread thijs van severen
I must be missing something here.
amidi -l should list all midi out ports that are available to amidi, right?
No matter what i try with a2j and all of its variants (including j2a and
using the -e option) amidi -l never gives me any usable ports.
Same results as root.

Or should i be using the -L option to list the availabble ports?  if yes,
how does that work? I cant figure it out. :-(

Another question: will a usb midi interface list the midi ports under alsa?

All help is appreciated!

Grtz
Thijs

On 9 Dec 2011 07:57, "thijs van severen"  wrote:

Thanks guys!

I actually tried j2a but now i realise that i forgot the -e option to
expose the hw ports. Doh!

I'll give it another try tonight.
Thanks!

Grtz
Thijs


>
> On 9 Dec 2011 00:12, "Harry van Haaren"  wrote:
>
> Hello Thijs,
>
> I t...

> On Thu, Dec 8, 2011 at 9:57 PM, thijs van severen <
thijsvanseve...@gmail.com> wrote:

> >
> > Hi all
> >
> > i'm trying to use 'amidi' to send a simple midi message to the midi out
> port of my fi...
>
>
> >>
> >> ___
> >> Linux-audio-dev mailing list
> >> Linux-audi...
>
___
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev


Re: [LAD] FFADO midi ports

2011-12-08 Thread thijs van severen
Thanks guys!

I actually tried j2a but now i realise that i forgot the -e option to
expose the hw ports. Doh!

I'll give it another try tonight.
Thanks!

Grtz
Thijs

On 9 Dec 2011 00:12, "Harry van Haaren"  wrote:

Hello Thijs,

I think you might be under the impression that FFADO MIDI and ALSA MIDI are
roughly the same, they're not...
FFADO is a backend that you can run JACK on top of. If you run JACK with
the FFADO as the "driver", then JACK will be able to send MIDI commands to
your Saffire. ALSA MIDI is a totally different "MIDI".
The upside: There's a program "a2jmidi" which will put all your ALSA MIDI
ports into the JACK MIDI graph, then you can connect any ALSA MIDI out to
JACK MIDI in, and vice versa.
"a2jmidid" is the name of the package on debian based systems.

Running is usually most benificial like so:
a2jmidid -e &
so that it keeps scanning the ALSA MIDI graph for changes, and will update
the JACK MIDI ports available.

Good luck! -Harry



On Thu, Dec 8, 2011 at 9:57 PM, thijs van severen 
wrote:

> >
> > Hi all
> >
> > i'm trying to use 'amidi' to send a simple midi message to the midi out
> port of my fi...
> ___
> Linux-audio-dev mailing list
> Linux-audio-dev@lists.linuxaudio.org
> http://lists.linuxaudio.org/listinfo/linux-audio-dev
>
>
___
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev


Re: [LAD] FFADO midi ports

2011-12-08 Thread Harry van Haaren
Hello Thijs,

I think you might be under the impression that FFADO MIDI and ALSA MIDI are
roughly the same, they're not...
FFADO is a backend that you can run JACK on top of. If you run JACK with
the FFADO as the "driver", then JACK will be able to send MIDI commands to
your Saffire. ALSA MIDI is a totally different "MIDI".
The upside: There's a program "a2jmidi" which will put all your ALSA MIDI
ports into the JACK MIDI graph, then you can connect any ALSA MIDI out to
JACK MIDI in, and vice versa.
"a2jmidid" is the name of the package on debian based systems.

Running is usually most benificial like so:
a2jmidid -e &
so that it keeps scanning the ALSA MIDI graph for changes, and will update
the JACK MIDI ports available.

Good luck! -Harry



On Thu, Dec 8, 2011 at 9:57 PM, thijs van severen  wrote:

> Hi all
>
> i'm trying to use 'amidi' to send a simple midi message to the midi out
> port of my firewire (FFADO backend) audio device. a Saffire LE.
> to do this i simply need to specify the port i want to send the data to,
> however i can only select one of the ALSA midi devices listed under
> /dev/snd/ and the firewire midi ports are all Jack midi ports and thus not
> listed here.
> but where are these listed ?
> or should i be doing things differently ?
>
> grtz
> Thijs
>
> --
>
> follow me on my Audio & Linux blog !
>
>
> ___
> Linux-audio-dev mailing list
> Linux-audio-dev@lists.linuxaudio.org
> http://lists.linuxaudio.org/listinfo/linux-audio-dev
>
>
___
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev


[LAD] FFADO midi ports

2011-12-08 Thread thijs van severen
Hi all

i'm trying to use 'amidi' to send a simple midi message to the midi out
port of my firewire (FFADO backend) audio device. a Saffire LE.
to do this i simply need to specify the port i want to send the data to,
however i can only select one of the ALSA midi devices listed under
/dev/snd/ and the firewire midi ports are all Jack midi ports and thus not
listed here.
but where are these listed ?
or should i be doing things differently ?

grtz
Thijs

-- 

follow me on my Audio & Linux blog  !
___
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev