From owner-freebsd-multimedia@FreeBSD.ORG Sat Feb 19 17:47:42 2011 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1CFBC1065672 for ; Sat, 19 Feb 2011 17:47:42 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.c2i.net [212.247.154.162]) by mx1.freebsd.org (Postfix) with ESMTP id 851AB8FC1B for ; Sat, 19 Feb 2011 17:47:41 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=LfWZgthhXpRoR/5kSLoV97TeOFxNHdDd5OkOatCv3DI= c=1 sm=1 a=-CRmgG0JhlAA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=OdR5sfXFAAAA:8 a=p6vgIpTt_5xSk_obWPEA:9 a=FxL9F01iepkg85DjQkkA:7 a=9ION_YK454qLFB2qxWytECqmKP8A:4 a=jiObf9B0YAUA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 89493620; Sat, 19 Feb 2011 18:47:40 +0100 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org Date: Sat, 19 Feb 2011 18:47:28 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <20110219153731.3473.qmail@origmail.integrity.hu> <201102191756.28268.hselasky@c2i.net> <20110219182233.3cfdbbbc@Picasso.Zahemszky.HU> In-Reply-To: <20110219182233.3cfdbbbc@Picasso.Zahemszky.HU> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq,NwSZ4V" =?iso-8859-1?q?=7CLR=2E+tj=7Dg5=0A=09=25V?=,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( =?iso-8859-1?q?=0A=09=3AAuzV9=3A=2EhESm-x4h240C=609=3Dw?= MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Message-Id: <201102191847.28112.hselasky@c2i.net> Cc: Zahemszky =?iso-8859-2?q?G=E1bor?= Subject: Re: Midi and FreeBSD X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Feb 2011 17:47:42 -0000 On Saturday 19 February 2011 18:22:33 Zahemszky G=E1bor wrote: > Hi! >=20 > > > If I buy a "MIDI-USB" communication cable to connect it to my >=20 > (*) >=20 Hi, > > > PC, will it possible to use it?=20 Most USB MIDI cables use the same protocol. Should be compatible with USB M= IDI=20 spec. v 1.0. Good sign: Works on Mac and no drivers requires. > > > Do I need to buy a special cable > > > (made-by-XYZ), are there any specific drivers, or programs, with > > > what I can play with it. I've seen eg OpenBSD's midish CLI program, > > > but it isn't ported to FreeBSD (yet). > > >=20 > > > (I use FreeBSD8 on both i386 and Amd64.) > >=20 > > Hi, > >=20 > > Yes, there exists plenty of USB MIDI software for FreeBSD, but not > > all is in ports. The USB MIDI solution in FreeBSD is part of > > snd_uaudio. Do you see any devices like /dev/umidiX.Y ? >=20 > As I've written in my first mail (*), I haven't got the USB-MIDI cable > yet (as I don't know, do I have to buy some specific, or any of them > will be good.) >=20 > So if I understand you correctly, after buying that cable, I > only have to "kldload snd_uaudio", connect the drum-machine to the > PC with that cable, and I'll see (OK, I have to) /dev/umidiX.Y > devices?=20 Depending on how many ports your device has, you'll see /dev/umidi0.{0..15} > It'll be great. (I think one of the umidi device - eg. > umidi0.0 - will be the MIDI-OUT/PASSTHROUGH and the other - umidi0.1 > will be MIDI-IN?)=20 umidi0.0 is read+write. RAW MIDI. > Or if not, are there any documentation about it as I > hadn't find it in man snd_uaudio. By the way, nowhere in "man -k midi". > Does this snd_uaudio driver will give us the original > Linux-like /dev/sequencer OSS-device?=20 No, this device does not exist for USB MIDI adapters. You'll need to use a= =20 program called jack_umidi, which convert the /dev/umidiX.Y instance into a= =20 TCP-based jack instance, which is a more popular choice. > Or how can I use these /dev/umidi > devices? Loopback: dd if=3D/dev/umidi0.0 of=3D/dev/umidi0.0 bs=3D1 Read+write like any other file. >=20 > And where are those "plenty of MIDI software"? (I hope, I can > download and install them by hand, but of course, I'd like better them > from ports.) Currently what I use is: /usr/ports/audio/{rosegarden,zynaddsubfx,fluidsynth,jack-keyboard,jack} zynaddsubfx and fluidsynth should be compiled from GIT/SVN. I have some=20 patches for these software packages to improve usability. fluidsynth is mos= t=20 suitable for drums. Then there is libumidi20, midipp (depends on QT4.x from ports) and the=20 recently added jack_umidi: svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b/trunk/libumidi20 svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b/trunk/midipp svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b/trunk/jack_umidi And I also have some scripts to set the correct permissions on the MIDI- adapters as you plug them. =2D-HPS