9 int default_duration
= 4;
12 parse_duration(const char *a
, int &j
, int &intdur
, int &dots
)
27 intdur
= (durstr
.len()) ?
28 durstr
.value():default_duration
;
31 mtor
<< "dur " << intdur
<< "dots " << dots
<<eol
;
36 parse_pitch( const char *a
, int &j
, int &oct
, bool & overide_acc
,
37 int & large
, int & small
)
54 mtor
<< "oct " << oct
;
66 mtor
<< "ov " << overide_acc
;
81 lookup_notename(large
,small
,nm
);
82 mtor
<< "int "<< large
<<" "<<small
<<" ";
87 get_note_element(String pitch
, String durstr
)
89 Voice_element
*v
= new Voice_element
;
93 parse_duration(durstr
, i
, dur
, dots
);
96 Note_req
* rq
= new Note_req( v
);
100 parse_pitch(pitch
, i
, oct
, forceacc
, pit
, acc
);
103 rq
->accidental
= acc
;
104 rq
->forceacc
= forceacc
;
114 get_rest_element(String type
, String durstr
)
116 Voice_element
*v
= new Voice_element
;
120 parse_duration(durstr
, i
, dur
, dots
);
123 Rest_req
* rq
= new Rest_req(v
);