Working custom rules in Notion

Discussion in 'Software' started by nikon, Jun 10, 2014.

  1. nikon

    nikon Platinum Record

    Joined:
    Oct 6, 2012
    Messages:
    954
    Likes Received:
    169
    Hello,

    I'm wondering does any of Notion 4 users create and use custom rules for Kontakt or G-Player per example and the some of libraries, LASS, or EWQLSO...

    Whole two days I'm trying to figure out how to configure custom key switches.

    This is per example rule for G-player, it has own plugin ID, but nothing really happens :)

    Code:
    <?xml version="1.0" ?>
    <rule-set version="1">
    
    <dynamic-map id="gplay">
    <dynamic dynamic="ppppp" value="0" />
    <dynamic dynamic="pppp" value="19" />
    <dynamic dynamic="ppp"  value="28" />
    <dynamic dynamic="pp"   value="39" />
    <dynamic dynamic="p"    value="54" />
    <dynamic dynamic="mp"   value="63" />
    <dynamic dynamic="mf"   value="79" />
    <dynamic dynamic="f"    value="84" />
    <dynamic dynamic="ff"   value="95" />
    <dynamic dynamic="fff"  value="103" />
    <dynamic dynamic="ffff" value="116" />
    <dynamic dynamic="fffff" value="127" />
    </dynamic-map>
    
    
    <plugin id="1097549677"> 
    
    <setup>
    <velocity-map id="gplay" />
    <hairpin-map id="gplay" />
    <hairpin-cc value="11" />
    <hairpin-anchor value="75" />
    </setup>						
    
    <rule name="main sound"> 
    <set-flag name="main" />
    </rule>
    
    <rule name="staccato">	
    <if articulation="staccato"/>
    <if flag="main"/>
    <unset-flag name="main"/>
    <key-switch type="note-on-prefix" midi-pitch="24" velocity="64"	/>
    <key-switch type="note-on-prefix" midi-pitch="1" velocity="64"	/>	
    </rule>	
    
    <rule name="main keyswitch">
    <if flag="main"/>
    <key-switch type="note-on-prefix" midi-pitch="120" velocity="64" />
    <key-switch type="note-on-prefix" midi-pitch="5" velocity="64" />
    <key-switch type="note-on-prefix" midi-pitch="1" velocity="64" />
    </rule>	
    
    </plugin>
    
    </rule-set>
    
    

    On notion staff I create half notes in first bar and quarter notes with staccato mark in second bar, nothing changes at all.

    Anyone have experience with this ?

    There is some tutorials, but nothing special.
     
  2.  
  3. nikon

    nikon Platinum Record

    Joined:
    Oct 6, 2012
    Messages:
    954
    Likes Received:
    169
    Ok, finally I figure out, after reading all posts on Notation user forum and checking various perf files

    So here is a edited version of rules file "custom_rules.perf"

    Code:
    <?xml version="1.0" ?>
    <rule-set version="1">
    
    <dynamic-map id="gpla">
    <dynamic dynamic="ppppp" value="0" />
    <dynamic dynamic="pppp" value="19" />
    <dynamic dynamic="ppp"  value="28" />
    <dynamic dynamic="pp"   value="39" />
    <dynamic dynamic="p"    value="54" />
    <dynamic dynamic="mp"   value="63" />
    <dynamic dynamic="mf"   value="79" />
    <dynamic dynamic="f"    value="84" />
    <dynamic dynamic="ff"   value="95" />
    <dynamic dynamic="fff"  value="103" />
    <dynamic dynamic="ffff" value="116" />
    <dynamic dynamic="fffff" value="127" />
    </dynamic-map>
    
    
    <plugin id="1097549677"> 
    
    <setup>
    <velocity-map id="gpla" />
    <hairpin-map id="gpla" />
    <hairpin-cc value="11" />
    <hairpin-anchor value="75" />
    </setup>						
    
    <rule name="main sound"> 
    <set-flag name="main" />
    <set-technique name="norm" />
    </rule>
    
    <rule>  		
    <if articulation="staccato" />
    <unset-flag name="main" />
    <key-switch type="note-on-prefix" midi-pitch="25" velocity="1" />			
    </rule>
    
    <rule>  		
    <if technique="pizz" />
    <unset-flag name="main" />
    <key-switch type="note-on-prefix" midi-pitch="26" velocity="1" />
    </rule>
    
    <rule name="main keyswitch">
    <if flag="main" />
    <key-switch type="note-on-prefix" midi-pitch="24" velocity="1" />
    </rule>	
    
    </plugin>
    
    </rule-set>
    

    Here is a staff in Notation

    staff.jpg

    And here is a key switch stacked instrument in G-player, C0 - D0

    * C0 - sustain => midi-pitch="24"
    * C#0 - staccato => midi-pitch="25"
    * D0 - pizzicato => midi-pitch="26"

    gplay.jpg

    There is a catch when add pizzicato technique on staff, after pizzicato it must be add "Normalise" technique to reset to normal sustain rule
     
Loading...
Loading...