Page 1 of 1

Rules for string selection

Posted: Thu Dec 19, 2019 1:17 pm
by gonzaloperezdelaossa
Hi,
I'm working on a custom ruleset for Scarbee MM-Bass. Made some progress, but I'm a bit stuck with string selection. Here's one of my rules (for natural harmonics):

Code: Select all
<rule remark="Harmonic E3: 3rd string, 7th fret" enabled="true">
  <if flag="harm"/>
  <if pitch="E4"/>
  <if string="3"/>
  <fixed-pitch pitch="E3"/>
  <key-switch midi-pitch="33" velocity="127" type="note-on-prefix"/>
  <key-switch midi-pitch="33" velocity="0" type="note-on-suffix"/>
</rule>

The flag I've set before, it checks if the note head is a diamond. MM-Bass expect an octave less than Notion's pitch, so I'm setting fixed-pitch to E3. And the key switch selects the A string in MM-Bass.

The problem is the string condition, doesn't seem to trigger. I've also tried with:

Code: Select all
<if technique="gts3"/>

But also no joy. On the staff, I've tried both entering the string with the symbol from the palette (number in a circle) as well as using the fretboard entry to choose the right string, and nothing has worked so far. Any ideas what I'm doing wrong?

Re: Rules for string selection

Posted: Sat Dec 21, 2019 3:44 am
by gonzaloperezdelaossa
Solved. Actually there was no problem with the condition for string selection, I was just sending the wrong pitches (octave problems). Should have had a bit more patience before asking...

Just for the record, things like this work just fine:

Code: Select all
<rule remark="String 1" enabled="true">
  <if not-flag="harm"/>
  <if string="1"/>
  <key-switch midi-pitch="31" velocity="127" type="note-on-prefix"/>
  <key-switch midi-pitch="31" velocity="0" type="note-off-prefix"/>
</rule>

<rule remark="Harmonic G4: 1st string, 5th fret" enabled="true">
  <if flag="harm"/>
  <if pitch="G4"/>
  <fixed-pitch pitch="C4"/>
  <key-switch midi-pitch="31" velocity="127" type="note-on-prefix"/>
  <key-switch midi-pitch="31" velocity="0" type="note-on-suffix"/>
</rule>