Re: how to connect a midi client to non midi hardware sound card

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2023/9/19 00:02, Takashi Iwai wrote:
On Thu, 07 Sep 2023 18:52:40 +0200,
Randy Li wrote:
Hello All

I am trying to refresh the ttymidi project, I have sent the merge
request to support the midi baudrate.

The problem is the sound card in my PC is too new that it doesn't have
a midi input(I think the old hardware does).

amidi -l would report:

"cannot determine device number: Inappropriate ioctl for device"

I think it is SNDRV_CTL_IOCTL_RAWMIDI_NEXT_DEVICE won't work here.

Could I still use snd_seq_open() to create a midi client to the
system's sound card.

Or I should try something different to make midi input work?
The situation isn't really clear to me, just a wild guess: you're
running a sequencer client and want to expose it as a (virtual) MIDI
device that is accessed via rawmidi API?  If so, you can use
snd-virmidi driver and bind a sequencer client:port to a virtual
rawmidi device.

The ttymidi is making a serial port become a sequencer input and output.

I just found the midi usb keyboard page from archlinux, I think it solves my problem.

The fluidsynth would export a software synthesizer to the system, then I could connect my uart keyboard to it.


Takashi



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux