play midi file to midi port?
"Bellan, Leon Marcel" <[email protected]> Sun, 27 Dec 2020 17:39:26 +0000
| Newsgroups | gmane.comp.audio.ecasound.general |
|---|---|
| Message-ID | <BYAPR08MB54786C132F34C1377F8609A397DA0@BYAPR08MB5478.namprd08.prod.outlook.com> |
--===============1697778962839542949==
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_BYAPR08MB54786C132F34C1377F8609A397DA0BYAPR08MB5478namp_"
--_000_BYAPR08MB54786C132F34C1377F8609A397DA0BYAPR08MB5478namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
I'm trying to use ecasound for an animatronic project, and have motion sens=
or events appropriately turning on/off audio (wav) tracks via the ecasound =
server interface (selectively muting/unmuting channels upon motion sensor e=
vents). The wav data is going to an ALSA output. I'd like to also have ec=
asound play .MID files to a MIDI port I have set up that controls DMX fixtu=
res over ArtNet (midimonster is converting MIDI to ArtNet and displays the =
MIDI events to the terminal for debugging)To get everything synced correctl=
y, it'd be great if the wav and midi data is read by the same program (i.e.=
a multitrack audio program playing wav and midi at the same time). Ecasou=
nd does just what I want when I only use wav files (I can load multiple fil=
es and selectively mute/unmute them via the server interface), and I can ge=
t the midi files to control fixtures correctly using aplaymidi to the port =
I've set up, but I can't seem to get ecasound to send MIDI data from a MIDI=
file to the MIDI port. I'm not sure whether ecasound is capable of doing =
this, but it'd be great if it could. Is there a way to play a MIDI file in=
ecasound and route not to Timidity but to a MIDI port (e.g. 129:0)? I'm u=
sing "ecasound -a:1 -i miditest1.mid -o:alsa -Md:alsaseq,129:0", which se=
ems to send a START and a STOP to the port, but nothing from the MIDI file =
itself. "aplaymidi -p 128:0 miditest1.mid" sends the data correctly (MIDI =
CC data that midimonster reads), but I can't get it to sync well with the w=
av data played by ecasound (i.e. running "ecasound XXXX & aplaymidi YYYY " =
doesn't start playback of both files at the same time due to longer and sli=
ghtly variable startup time for ecasound)
I've thought about trying to use nama, but it is crazy slow on the system I=
'm hoping to use for this project (Pi Zero W) whereas ecasound, aplaymidi, =
etc seem to run at a reasonable speed, and I'm not sure if nama is designed=
to be used for only playback purposes like what I'm doing here.
--_000_BYAPR08MB54786C132F34C1377F8609A397DA0BYAPR08MB5478namp_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"#0563C1" vlink=3D"#954F72" style=3D"word-wrap:=
break-word">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">I’m trying to use ecasound for an animatronic =
project, and have motion sensor events appropriately turning on/off audio (=
wav) tracks via the ecasound server interface (selectively muting/unmuting =
channels upon motion sensor events). The
wav data is going to an ALSA output. I’d like to also have eca=
sound play .MID files to a MIDI port I have set up that controls DMX fixtur=
es over ArtNet (midimonster is converting MIDI to ArtNet and displays the M=
IDI events to the terminal for debugging)To
get everything synced correctly, it’d be great if the wav and midi d=
ata is read by the same program (i.e. a multitrack audio program playing wa=
v and midi at the same time). Ecasound does just what I want when I o=
nly use wav files (I can load multiple files
and selectively mute/unmute them via the server interface), and I can get =
the midi files to control fixtures correctly using aplaymidi to the port I&=
#8217;ve set up, but I can’t seem to get ecasound to send MIDI data f=
rom a MIDI file to the MIDI port. I’m not sure
whether ecasound is capable of doing this, but it’d be great if it c=
ould. Is there a way to play a MIDI file in ecasound and route not to=
Timidity but to a MIDI port (e.g. 129:0)? I’m using “eca=
sound -a:1 -i miditest1.mid -o:alsa -Md:alsaseq,129:0”, w=
hich
seems to send a START and a STOP to the port, but nothing from the MIDI fi=
le itself. “aplaymidi -p 128:0 miditest1.mid” sends the d=
ata correctly (MIDI CC data that midimonster reads), but I can’t get =
it to sync well with the wav data played by ecasound (i.e.
running “ecasound XXXX & aplaymidi YYYY “ doesn’t st=
art playback of both files at the same time due to longer and slightly vari=
able startup time for ecasound)<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">I’ve thought about trying to use nama, but it =
is crazy slow on the system I’m hoping to use for this project (Pi Ze=
ro W) whereas ecasound, aplaymidi, etc seem to run at a reasonable speed, a=
nd I’m not sure if nama is designed to be used
for only playback purposes like what I’m doing here.<o:p></o:p></p>
</div>
</body>
</html>
--_000_BYAPR08MB54786C132F34C1377F8609A397DA0BYAPR08MB5478namp_--
--===============1697778962839542949==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============1697778962839542949==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Ecasound-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ecasound-list
--===============1697778962839542949==--