// in an 8th-note triplet with a quarter-note beat, 1/3 of a beat should be
// more important than 1/2.
if (infos_[i].rhythmic_importance_ >= 0)
- infos_[i].rhythmic_importance_ = (dt / options.base_moment_).den ();
+ infos_[i].rhythmic_importance_ = (int) (dt / options.base_moment_).den ();
i++;
}
}
else
{
- left_ = sr[LEFT];
- right_ = sr[RIGHT];
+ left_ = (short) sr[LEFT];
+ right_ = (short) sr[RIGHT];
}
}
Substitution_entry ()
satisfies the left inequality and is within a factor of 2 of
satistying the right one. Therefore either k = k' or k = k'+1 */
- int p = r.num ();
- int q = r.den ();
+ int p = (int) r.num ();
+ int q = (int) r.den ();
int k = intlog2 (q) - intlog2 (p);
if (shift_left(p, k) < q)
k++;
IMPLEMENT_TRANSLATOR_LISTENER (Figured_bass_engraver, rest);
void
-Figured_bass_engraver::listen_rest (Stream_event *ev)
+Figured_bass_engraver::listen_rest (Stream_event *)
{
have_rest_ = true;
}
}
Box
-Font_metric::get_indexed_char_dimensions (size_t k) const
+Font_metric::get_indexed_char_dimensions (size_t) const
{
return Box (Interval (0, 0), Interval (0, 0));
}
parse_symbol_list (char const *symbols)
{
while (isspace (*symbols))
- *symbols++;
+ symbols++;
string s = symbols;
replace_all (&s, '\n', ' ');
replace_all (&s, '\t', ' ');
Bezier back_dash, curve_dash;
Real seg_length = (back_segment.control_[3] -
back_segment.control_[0]).length ();
- int pattern_count = seg_length / dash_period;
+ int pattern_count = (int) (seg_length / dash_period);
Real pattern_length = 1.0 / (pattern_count + dash_fraction);
Real start_t, end_t;
for (int p = 0; p <= pattern_count; p++)
SCM program = scm_call_1 (proc, ly_symbol2scm (audio_->str_.c_str ()));
found = (program != SCM_BOOL_F);
if (found)
- program_byte = scm_to_int (program);
+ program_byte = (Byte) scm_to_int (program);
else
warning (_f ("no such MIDI instrument: `%s'", audio_->str_.c_str ()));
extern bool music_strings_to_paths;
Stencil
-Pango_font::text_stencil (Output_def *state,
+Pango_font::text_stencil (Output_def * /* state */,
string str, bool music_string) const
{
/*
if (n)
return n;
if (a)
- return a;
+ return a > (Rational)0;
return 0;
}