Re: [Jack-Devel] dumping MIDI events to a logfile

PrevNext  Index
DateThu, 14 Jan 2016 15:55:38 +0100
From Benjamin Henrion <[hidden] at gmail dot com>
ToJACK <[hidden] at lists dot jackaudio dot org>
In-Reply-ToBenjamin Henrion Re: [Jack-Devel] dumping MIDI events to a logfile
On Thu, Jan 14, 2016 at 3:06 PM, Benjamin Henrion <[hidden]> wrote:
> On Mon, Jan 11, 2016 at 5:15 PM, Benjamin Henrion <[hidden]> wrote:
>> On Mon, Jan 11, 2016 at 5:05 PM, Hanspeter Portner <[hidden]> wrote:
>>> On 11.01.2016 16:11, Benjamin Henrion wrote:
>>>> On Mon, Jan 11, 2016 at 3:56 PM, Paul Davis <[hidden]> wrote:
>>>>> You have to connect jack_midi_dump to the relevant MIDI port(s). You can
>>>>> start JACK using qjackctl or cadence, and then use their connection dialogs.
>>>>> You could use jack_connect. There are other ways too.
>>>>>
>>>>> You could also use gmidimon :)
>>>>
>>>> I also tried to hook an FTDI in 5V on the MIDI out connector in
>>>> 31250bps, I could only see the FE or FC (depending if I would add a
>>>> resistor) MIDI messages, and the keyboard would behave differently as
>>>> plugged in with the USB:
>>>>
>>>> https://pastee.org/27xc8
>>>>
>>>> I thought sniffing midi was easier...
>>>
>>> If you just want to sniff the raw MIDI transferred via USB, why not simply use amidi [1]?
>>> There's no need to fiddle with/route via JACK here, imho.
>>>
>>> Get the alsa MIDI hardware name for 'UMONE'
>>>         export HW=$(amidi -l | grep UMONE | head -n 1 | gawk '{print $2}')
>>>
>>> Dump to console:
>>>         amidi -p ${HW} -d
>>>
>>> Dump to file:
>>>         amidi -p ${HW} -r my_dump.rawmidi
>>
>> Thanks, it worked!
>>
>> Sorry never played with MIDI before. I am still interested to dump the
>> MIDI from the serial wire, as the original intent was to build an
>> ESP8266 serial2wifi module (straight from the MIDI out connector, no
>> Roland USB converter), and to encapsulate the MIDI messages over some
>> TCP transport.
>
> If you are interested, my friend pieter made this morning a small app
> that takes MIDI events, sends them on the LAN, and receive them on
> another box (WIP):
>
> https://github.com/ZyreApps/DeMidi
>
> It is connected on the receiving side to qsynth+qjackctl.
>
> I am trying to install that on a small openwrt box:
>
> http://www.zoobab.com/glinet
>
> But I can't get amidi to list the HW devices (I had to install
> kmod-sound-dummy because the device does not have any soundcard):
>
> root@OpenWrt:/proc/asound# amidi -l
> Dir Device    Name
> root@OpenWrt:/proc/asound#
>
> root@OpenWrt:/proc/asound# ls -al
> dr-xr-xr-x    5 root     root             0 Jan  5 12:20 .
> dr-xr-xr-x   42 root     root             0 Jan  1  1970 ..
> lrwxrwxrwx    1 root     root             5 Jan  5 12:21 Dummy -> card0
> dr-xr-xr-x    4 root     root             0 Jan  5 12:21 card0
> -r--r--r--    1 root     root             0 Jan  5 12:21 cards
> -r--r--r--    1 root     root             0 Jan  5 12:21 devices
> -r--r--r--    1 root     root             0 Jan  5 12:21 hwdep
> -r--r--r--    1 root     root             0 Jan  5 12:21 modules
> dr-xr-xr-x    2 root     root             0 Jan  5 12:21 oss
> -r--r--r--    1 root     root             0 Jan  5 12:21 pcm
> dr-xr-xr-x    2 root     root             0 Jan  5 12:21 seq
> -r--r--r--    1 root     root             0 Jan  5 12:21 timers
> -r--r--r--    1 root     root             0 Jan  5 12:21 version
>
> root@OpenWrt:/proc# lsusb
> Bus 001 Device 003: ID 0582:012a Roland Corp. UM-ONE
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>
> The kmod is the one here (search for sound in the list):
>
> http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/base/
>
> Any idea on how I could get hw:1,0,0 as I have on my pc linux distro?

Loading snd_usb_audio fixed the issue.

-- 
Benjamin Henrion <bhenrion at ffii.org>
FFII Brussels - +32-484-566109 - +32-2-3500762
"In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators."
PrevNext  Index

1452783346.18362_0.ltw:2,a <CANjd3nfS+c4qK=N3-k1q5aYnLgfM7AAVKa3_-=p3Gpu+gMoC9g at mail dot gmail dot com>