* Newbie question: Sending untimed MIDI data to ALSA seq
@ 2010-01-09 23:13 Josh Lehan
2010-01-12 9:48 ` Takashi Iwai
2010-01-12 11:39 ` Clemens Ladisch
0 siblings, 2 replies; 5+ messages in thread
From: Josh Lehan @ 2010-01-09 23:13 UTC (permalink / raw)
To: alsa-devel
Hello.
Newbie question: I'm wondering about sending untimed MIDI data to the
ALSA sequencer subsystem.
The application would be for a "beep"-like program, from the command
line, that instead of making beeps, would play MIDI instruments to make
better-sounding beeps.
I have TiMidity hooked up into ALSA, as a softsynth, and it works just
fine for playing MIDI data sent to it by ALSA.
The "aplaymidi" command works for .MID files, and the "vkeybd" program
works for simulating a keyboard and sending in untimed MIDI data. The
"aseqview" program also works great for watching the notes being played,
as they go by. So, my MIDI software stack appears to be in order. I
don't have a hardware synthesizer hooked up at the moment (my Kawai K1
is showing its age, and a few keys are broken).
I also looked at "amidi", which features a -S option to send in untimed
MIDI bytes, but unfortunately, that addresses an entirely different
namespace. Evidently, it only speaks to "RawMIDI" devices, of which
TiMidity is not.
So, I can't generate untimed MIDI data on my own. I was thinking of
writing a small "midibeep" program that would do this, similar to what
vkeybd does, but without requiring any user interaction.
Does such a program already exist?
Thanks!
Josh
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Newbie question: Sending untimed MIDI data to ALSA seq
2010-01-09 23:13 Newbie question: Sending untimed MIDI data to ALSA seq Josh Lehan
@ 2010-01-12 9:48 ` Takashi Iwai
2010-01-13 19:17 ` Josh Lehan
2010-01-12 11:39 ` Clemens Ladisch
1 sibling, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2010-01-12 9:48 UTC (permalink / raw)
To: Josh Lehan; +Cc: alsa-devel
At Sat, 09 Jan 2010 15:13:23 -0800,
Josh Lehan wrote:
>
> Hello.
>
> Newbie question: I'm wondering about sending untimed MIDI data to the
> ALSA sequencer subsystem.
>
> The application would be for a "beep"-like program, from the command
> line, that instead of making beeps, would play MIDI instruments to make
> better-sounding beeps.
>
> I have TiMidity hooked up into ALSA, as a softsynth, and it works just
> fine for playing MIDI data sent to it by ALSA.
>
> The "aplaymidi" command works for .MID files, and the "vkeybd" program
> works for simulating a keyboard and sending in untimed MIDI data. The
> "aseqview" program also works great for watching the notes being played,
> as they go by. So, my MIDI software stack appears to be in order. I
> don't have a hardware synthesizer hooked up at the moment (my Kawai K1
> is showing its age, and a few keys are broken).
>
> I also looked at "amidi", which features a -S option to send in untimed
> MIDI bytes, but unfortunately, that addresses an entirely different
> namespace. Evidently, it only speaks to "RawMIDI" devices, of which
> TiMidity is not.
>
> So, I can't generate untimed MIDI data on my own. I was thinking of
> writing a small "midibeep" program that would do this, similar to what
> vkeybd does, but without requiring any user interaction.
>
> Does such a program already exist?
I don't know of such thing, too.
It'd be nice to have in alsa-utils.
Takashi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Newbie question: Sending untimed MIDI data to ALSA seq
2010-01-12 9:48 ` Takashi Iwai
@ 2010-01-13 19:17 ` Josh Lehan
0 siblings, 0 replies; 5+ messages in thread
From: Josh Lehan @ 2010-01-13 19:17 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel, Josh Lehan
Takashi Iwai wrote:
> At Sat, 09 Jan 2010 15:13:23 -0800,
> Josh Lehan wrote:
>> Hello.
>>
>> Newbie question: I'm wondering about sending untimed MIDI data to the
>> ALSA sequencer subsystem.
>>
>> The application would be for a "beep"-like program, from the command
>> line, that instead of making beeps, would play MIDI instruments to make
>> better-sounding beeps.
>>
>> Does such a program already exist?
>
> I don't know of such thing, too.
> It'd be nice to have in alsa-utils.
Thanks for the suggestion!
A few days ago, I started writing a program to do just this. It is
coming along nicely. When it's finished, I'll post a link to it here,
for your review.
Josh
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Newbie question: Sending untimed MIDI data to ALSA seq
2010-01-09 23:13 Newbie question: Sending untimed MIDI data to ALSA seq Josh Lehan
2010-01-12 9:48 ` Takashi Iwai
@ 2010-01-12 11:39 ` Clemens Ladisch
2010-01-13 19:22 ` Josh Lehan
1 sibling, 1 reply; 5+ messages in thread
From: Clemens Ladisch @ 2010-01-12 11:39 UTC (permalink / raw)
To: Josh Lehan; +Cc: alsa-devel
Josh Lehan wrote:
> I also looked at "amidi", which features a -S option to send in untimed
> MIDI bytes, but unfortunately, that addresses an entirely different
> namespace. Evidently, it only speaks to "RawMIDI" devices, of which
> TiMidity is not.
Try the snd-virmidi driver. It is intended to make sequencer ports
available as OSS midi devices, but you also get RawMIDI ports for free.
HTH
Clemens
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Newbie question: Sending untimed MIDI data to ALSA seq
2010-01-12 11:39 ` Clemens Ladisch
@ 2010-01-13 19:22 ` Josh Lehan
0 siblings, 0 replies; 5+ messages in thread
From: Josh Lehan @ 2010-01-13 19:22 UTC (permalink / raw)
To: Clemens Ladisch; +Cc: alsa-devel, Josh Lehan
Clemens Ladisch wrote:
> Josh Lehan wrote:
>> I also looked at "amidi", which features a -S option to send in untimed
>> MIDI bytes, but unfortunately, that addresses an entirely different
>> namespace. Evidently, it only speaks to "RawMIDI" devices, of which
>> TiMidity is not.
>
> Try the snd-virmidi driver. It is intended to make sequencer ports
> available as OSS midi devices, but you also get RawMIDI ports for free.
Thanks for the suggestion. I looked into that kernel driver, but it's
not a full solution to the problem. I have an idea for writing a little
ALSA program (in userspace) that will accept arbitrary bytes as input,
and feed it into the ALSA stack, so I'll work on that. If I am
successful in getting that done, then it will be a really clean solution
to this problem.
Josh
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-01-13 19:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-09 23:13 Newbie question: Sending untimed MIDI data to ALSA seq Josh Lehan
2010-01-12 9:48 ` Takashi Iwai
2010-01-13 19:17 ` Josh Lehan
2010-01-12 11:39 ` Clemens Ladisch
2010-01-13 19:22 ` Josh Lehan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.