}
-
-void
-parse_pitch( const char *a, int &j, int &oct, bool & overide_acc,
- int & large, int & small)
-{
- // octave
- oct =default_octave;
-
+void
+parse_octave (const char *a, int &j, int &oct)
+{
while (1)
- {
+ {
if (a[j] == '\'')
oct ++;
else if (a[j] == '`')
else
break;
j++;
-
- }
+ }
+}
+
+void
+parse_pitch( const char *a, int &j, int &oct, bool & overide_acc,
+ int & large, int & small)
+{
+ // octave
+ oct =default_octave;
+ parse_octave(a,j,oct);
- mtor << "oct " << oct;
+ mtor << "oct " << oct;
// accidental
overide_acc = false;
set_default_pitch(String d)
{
int i=0;
- bool b;
- int l,s;
- parse_pitch(d, i, default_octave, b, l,s);
+ default_octave=0;
+ parse_octave(d, i, default_octave);
}
Request*