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