#endif
bool
-isinf_b (Real r)
+is_inf (Real r)
{
return (fabs (r) > 1e20);
}
complex_multiply (Offset z1, Offset z2)
{
Offset z;
- if (!isinf_b (z2[Y_AXIS]))
+ if (!is_inf (z2[Y_AXIS]))
{
z[X_AXIS] = z1[X_AXIS] * z2[X_AXIS] - z1[Y_AXIS] * z2[Y_AXIS];
z[Y_AXIS] = z1[X_AXIS] * z2[Y_AXIS] + z1[Y_AXIS] * z2[X_AXIS];
class Audio_tempo : public Audio_item
{
public:
- Audio_tempo (int per_minute_4_i);
+ Audio_tempo (int per_minute_4);
int per_minute_4_;
};
struct Audio_staff : public Audio_element
{
void add_audio_item (Audio_item *l);
- void output (Midi_stream &midi_stream_r, int track_i);
+ void output (Midi_stream &midi_stream_r, int track);
Audio_staff ();
Simultaneous_music *get_chord (Pitch tonic,
vector<Pitch> *adds, vector<Pitch> *subs,
Pitch *inversion, Pitch *bass, Duration d);
- void set_chord_tremolo (int type_i);
+ void set_chord_tremolo (int type);
void set_last_duration (Duration const *);
void set_last_pitch (Pitch const *);
public:
DECLARE_CLASSNAME(Midi_header);
- Midi_header (int format_i, int tracks_i, int clocks_per_4_i);
+ Midi_header (int format, int tracks, int clocks_per_4);
};
class Midi_track : public Midi_chunk
/* remove consecutive duplicate points */
for (vsize i = 0; i < points.size (); i++)
{
- int next_i = (i + 1) % points.size ();
- Real d = (points[i] - points[next_i]).length ();
+ int next = (i + 1) % points.size ();
+ Real d = (points[i] - points[next]).length ();
if (d < epsilon)
programming_error ("Polygon should not have duplicate points");
}
Real stem_end = dir ? hp[dir] + dir * length : 0;
/* TODO: change name to extend-stems to staff/center/'() */
- bool no_extend_b = to_boolean (me->get_property ("no-stem-extend"));
- if (!no_extend_b && dir * stem_end < 0)
+ bool no_extend = to_boolean (me->get_property ("no-stem-extend"));
+ if (!no_extend && dir * stem_end < 0)
stem_end = 0.0;
return scm_from_double (stem_end);
Obviously not for grace beams.
Also, not for knees. Seems to be a good thing. */
- bool no_extend_b = to_boolean (me->get_property ("no-stem-extend"));
+ bool no_extend = to_boolean (me->get_property ("no-stem-extend"));
bool is_knee = to_boolean (beam->get_property ("knee"));
- if (!no_extend_b && !is_knee)
+ if (!no_extend && !is_knee)
{
/* Highest beam of (UP) beam must never be lower than middle
staffline */
Vaticana_ligature_engraver::is_stacked_head (int prefix_set,
int context_info)
{
- bool is_stacked_b;
+ bool is_stacked;
// upper head of pes is stacked upon lower head of pes ...
- is_stacked_b = context_info & PES_UPPER;
+ is_stacked = context_info & PES_UPPER;
// ... unless this note starts a flexa
if (context_info & FLEXA_LEFT)
- is_stacked_b = false;
+ is_stacked = false;
// ... or another pes
if (context_info & PES_LOWER)
- is_stacked_b = false;
+ is_stacked = false;
// ... or the previous note is a semivocalis or inclinatum
if (context_info & AFTER_DEMINUTUM)
- is_stacked_b = false;
+ is_stacked = false;
// auctum head is never stacked upon preceding note
if (prefix_set & AUCTUM)
- is_stacked_b = false;
+ is_stacked = false;
// virga is never stacked upon preceding note
if (prefix_set & VIRGA)
- is_stacked_b = false;
+ is_stacked = false;
// oriscus is never stacked upon preceding note
if (prefix_set & ORISCUS)
- is_stacked_b = false;
+ is_stacked = false;
if ((prefix_set & DEMINUTUM)
&& ! (prefix_set & INCLINATUM)
&& (context_info & FLEXA_RIGHT))
- is_stacked_b = true; // semivocalis head of deminutus form
+ is_stacked = true; // semivocalis head of deminutus form
- return is_stacked_b;
+ return is_stacked;
}
/*