Tralen wrote:The patch is selected correctly, but the trill doesn't play. Can anyone help me?
OK, I'll admit, the trill rule (as evident by my OP) alludes me a bit, but I'll explain what I've seen in other rules files supplied by Notion.
I think the problem (and again, I don't understand how this rule functions as well as others) with your rule is that you're including the trill definition (<trill pitches="1" time="0.1" delay="0.08" />) with your "if" statement.
The default GPO rule which utilizes the trill definition functions as follows:
<rule>
<if not-flag="strs" /> (strings have triggered trills in GPO; other rules have identified which instrument IDs are strings and therefore don't need a playable trill)
<trill pitches="1" time="0.1" delay="0.08" />
</rule>
That's it. As noted above, the 'trill pitches = "1"' syntax doesn't seem to relate to the actual interval of the trill; Notion seems to generate that information on its own.
I think the tricky part with your rule is that you're trying to set the playable trill definition and change two controllers at the same time. I suggest breaking the rule down into chunks and see what happens.
Add this rule first to verify that Notion is properly reading the trill definition:
<rule name="playable trill">
<if flag="main"/>
<trill pitches="1" time="0.1" delay="0.08" />
</rule>
If that works, try adding the following as a separate rule:
<rule name="half-trill">
<if technique="trhf" />
<if flag="main"/>
<cc type="note-on-prefix" controller="20" value="91" />
<cc type="note-on-prefix" controller="21" value="01" />
</rule>
Try adding the unset flag once you get this rule working (I'm a bit of a noob when it comes to this kind of coding, so I don't know if un-setting the flag right away is detrimental to your rule). If the second rule with the CC code works as intended. Once you get these rules working, do something similar for whole step trills. For example:
<rule name="whole-trill">
<if technique="trwh" />
<if flag="main"/> (change this value as needed)
<cc type="note-on-prefix" controller="20" value="91" /> (change this value as needed)
<cc type="note-on-prefix" controller="21" value="01" /> (change this value as needed)
</rule>
Note that I didn't repeat the trill definition, with the trwh rule. Again, it appears that the trill defition (<trill pitches="1" time="0.1" delay="0.08" />), only needs to be stated once for a given instrument/group of instruments.
I hope this helps. Please let us know if this is successful or if you still have issues.