-
Hi, What I want to achieve: In the resulting midi file I want to influence the used instrument by having the notes played on this staff on a specific channel (Set by On the internet I didn't found something. And also searching the Verovio github repository for Kind regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Here is a demo testing with MEI Friend (https://mei-friend.mdw.ac.at) which is producing the desired results. ![]() Summary: <staffDef>
<instrDef midi.channel="0" midi.instrnum="68" midi.instrname="Oboe" />
</staffDef> Only one of Full example: <?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://music-encoding.org/schema/5.1/mei-all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="https://music-encoding.org/schema/5.1/mei-all.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<mei xmlns="http://www.music-encoding.org/ns/mei" meiversion="5.1">
<meiHead>
<fileDesc>
<titleStmt>
<title />
</titleStmt>
<pubStmt />
</fileDesc>
<encodingDesc>
<appInfo>
<application isodate="2025-04-04T14:31:13" version="5.2.0-dev-4660ee3">
<name>Verovio</name>
<p>Transcoded from Humdrum</p>
</application>
</appInfo>
</encodingDesc>
</meiHead>
<music>
<body>
<mdiv xml:id="x1hbbrhf">
<score xml:id="b3uh8ho">
<scoreDef xml:id="s1uaa683" tempo.dist="3vu">
<staffGrp xml:id="u1b3qjyo" bar.thru="true" symbol="brace">
<staffDef xml:id="staffdef-L1F2" n="1" lines="5">
<label xml:id="label-L3F2">Oboe</label>
<clef xml:id="b1si4kn0" shape="G" line="2" />
<instrDef xml:id="x15whb2e" midi.channel="0" midi.instrnum="68" midi.instrname="Oboe" />
</staffDef>
<staffDef xml:id="staffdef-L1F1" n="2" lines="5">
<label xml:id="label-L3F1">Organ</label>
<clef xml:id="d1b31x1v" shape="G" line="2" />
<instrDef xml:id="v3j8dkg" midi.channel="1" midi.instrnum="19" midi.instrname="Church_Organ" />
</staffDef>
</staffGrp>
</scoreDef>
<section xml:id="section-L1F1">
<measure xml:id="measure-L1">
<staff xml:id="staff-L1F2" n="1">
<layer xml:id="layer-L1F2N1" n="1">
<note xml:id="note-L6F2" dur="2" oct="4" pname="g" accid.ges="n" />
<note xml:id="note-L7F2" dur="2" oct="4" pname="f" accid.ges="n" />
</layer>
</staff>
<staff xml:id="staff-L1F1" n="2">
<layer xml:id="layer-L1F1N1" n="1">
<note xml:id="note-L6F1" dur="1" oct="4" pname="c" accid.ges="n" />
</layer>
</staff>
</measure>
<measure xml:id="measure-L8">
<staff xml:id="staff-L8F2N1" n="1">
<layer xml:id="layer-L8F2N1" n="1">
<note xml:id="note-L9F2" dur="2" oct="4" pname="e" accid.ges="n" />
<note xml:id="note-L10F2" dur="2" oct="4" pname="d" accid.ges="n" />
</layer>
</staff>
<staff xml:id="staff-L8F1N1" n="2">
<layer xml:id="layer-L8F1N1" n="1">
<note xml:id="note-L9F1" dur="1" oct="3" pname="g" accid.ges="n" />
</layer>
</staff>
</measure>
</section>
</score>
</mdiv>
</body>
</music>
</mei> Here are the list of https://github.com/rism-digital/verovio/blob/develop/libmei/dist/attconverter.cpp#L2422-L2602 |
Beta Was this translation helpful? Give feedback.
-
@craigsapp Thank you so much 👍 |
Beta Was this translation helpful? Give feedback.
Here is a demo testing with MEI Friend (https://mei-friend.mdw.ac.at) which is producing the desired results.
Summary:
Only one of
@midi.instrnum
or@midi.instrname
should be needed.Full example: