o c‚æcòã@sbddlmZddlZddlZdd„Zdd„ZGdd„dejƒZGd d „d eƒZ Gd d „d eƒZ dS) é)ÚFractionNc Cs¬t ¡}ddddddddd d d œ  |jd ¡}dddddddd œ |jd ¡}||kr/dkr;nn |||_||_|S|dkrJ||_t|jƒ|_|St   t dƒ|j¡dS)Nrééééééééé ) rrrr éé é@é€éiéÿÿÿÿ)rrr ééé?ézYEncountered rational duration with denominator %s, unable to convert to lilypond duration) ÚmusicexpZDurationÚgetÚ denominatorÚ numeratorZ duration_logÚdotsrZfactorÚlyÚwarningÚ_)Z rational_lenÚdZd_logr©rúe/home/lily/lilypond-2.24.1/release/binaries/lilypond/lilypond-2.24.1/python/musicxml2ly_conversion.pyÚrational_to_lily_durations.ÿ ÿ ÿ ÿ  ö  úþr!cCs$|rt|ƒtdƒdddSdS)NÚAr r)Úord)Ústeprrr Úmusicxml_step_to_lily5sr%c@s$eZdZdd„Zdd„Zdd„ZdS)ÚMarkercCsd|_d|_dS©Nr)Z directionZevent©Úselfrrr Ú__init__=s zMarker.__init__cCst tdƒ|¡dS)Nz"Encountered unprocessed marker %s )rrr)r)Zprinterrrr Úprint_lyAszMarker.print_lycCsdS)NÚrr(rrr Ú ly_expressionEszMarker.ly_expressionN)Ú__name__Ú __module__Ú __qualname__r*r+r-rrrr r&<s r&c@seZdZdd„ZdS)Ú RepeatMarkercCst |¡d|_dSr')r&r*Útimesr(rrr r*Js  zRepeatMarker.__init__N)r.r/r0r*rrrr r1Is r1c@s eZdZdS)Ú EndingMarkerN)r.r/r0rrrr r3Osr3) Z fractionsrZlilylibrrr!r%ZMusicr&r1r3rrrr Ús