Exemplo n.º 1
0
 public override string GetValue(NoteNoteObjectRec Note)
 {
     if (-1 == Note.GetNoteMultisampleFalsePitch())
     {
         return("dflt");
     }
     else
     {
         return(SymbolicPitch.NumericPitchToString(Note.GetNoteMultisampleFalsePitch(), 0));
     }
 }
Exemplo n.º 2
0
 public override void SetValue(NoteNoteObjectRec Note, string value)
 {
     if (String.Equals(value, GetDefaultValue()))
     {
         Note.PutNoteMultisampleFalsePitch(-1);
     }
     else
     {
         short     pitch     = Note.GetNoteMultisampleFalsePitch();
         NoteFlags sharpFlat = Note.SharpFlat;
         SymbolicPitch.StringToNumericPitch(value, ref pitch, ref sharpFlat);
         Note.PutNoteMultisampleFalsePitch(pitch);
         Note.PutNoteFlatOrSharpStatus(sharpFlat);
     }
 }