Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(517)

Unified Diff: lily/music.cc

Issue 346810043: Allow Scheme/identifiers for duration multipliers
Patch Set: No good dead goes unpunished. Documentation and harmonization. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lily/lily-imports.cc ('k') | lily/music-scheme.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/music.cc
diff --git a/lily/music.cc b/lily/music.cc
index ae75ff795273da024d404a76d144f10da52613bd..cbae4916b6542db8195d41599b37d17d89cfeab4 100644
--- a/lily/music.cc
+++ b/lily/music.cc
@@ -184,7 +184,7 @@ Music::to_relative_octave (Pitch last)
}
void
-Music::compress (Moment factor)
+Music::compress (Rational factor)
{
SCM elt = get_property ("element");
@@ -195,7 +195,7 @@ Music::compress (Moment factor)
Duration *d = unsmob<Duration> (get_property ("duration"));
if (d)
set_property ("duration",
- d->compressed (factor.main_part_).smobbed_copy ());
+ d->compressed (factor).smobbed_copy ());
}
/*
« no previous file with comments | « lily/lily-imports.cc ('k') | lily/music-scheme.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b