@ -28,8 +28,8 @@
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
								lilyRhythmMark = case
 
					 
					 
					 
								lilyRhythmMark = case
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
								{state == 0} {""}
 
					 
					 
					 
								{state == 0} {""}
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
								{dur > 3} {""}
 
					 
					 
					 
								{dur > 3} {""}
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
								{lastState != state} {" _" ++ dur.asString ++ " "}
 
					 
					 
					 
								{lastState != state} {" _" ++ dur.asInteger.as String ++ " "}
 
				
			 
			
				
				
			
		
	
		
		
			
				
					
					 
					 
					 
								{lastDur != dur} {" _" ++ dur.asString ++ " "}
 
					 
					 
					 
								{lastDur != dur} {" _" ++ dur.asInteger.as String ++ " "}
 
				
			 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 
					 
					 
								{true} {""};
 
					 
					 
					 
								{true} {""};
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					
 
					 
					 
					 
					
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
								lilyStartBeam = if(beatPos % 4 == 0, {" [ "}, {""});
 
					 
					 
					 
								lilyStartBeam = if(beatPos % 4 == 0, {" [ "}, {""});
 
				
			 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
							 
						
					 
					 
					@ -39,8 +39,8 @@
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
								lilyBar = if(b == 0 && (lastState != state), {' \\bar \"||\" '}, {""});
 
					 
					 
					 
								lilyBar = if(b == 0 && (lastState != state), {' \\bar \"||\" '}, {""});
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					
 
					 
					 
					 
					
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
								sec = (((durSum - dur) + b) / 5);
 
					 
					 
					 
								sec = (((durSum - dur) + b) / 5);
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
								minString = (sec.trunc / 60).trunc.asString;
 
					 
					 
					 
								minString = (sec.trunc / 60).trunc.asInteger.as String;
 
				
			 
			
				
				
			
		
	
		
		
			
				
					
					 
					 
					 
								secString = (sec.trunc % 60).asString;
 
					 
					 
					 
								secString = (sec.trunc % 60).asInteger.as String;
 
				
			 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 
					 
					 
								if(secString.size == 1, {secString = "0" ++ secString}, {});
 
					 
					 
					 
								if(secString.size == 1, {secString = "0" ++ secString}, {});
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
								lilyTime = case
 
					 
					 
					 
								lilyTime = case
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
								{(b == 0 && lastState == 0 && state == 1) || (sec % 12 == 0)} {
 
					 
					 
					 
								{(b == 0 && lastState == 0 && state == 1) || (sec % 12 == 0)} {
 
				
			 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
							 
						
					 
					 
					@ -63,7 +63,7 @@
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
								{(state == 0) && (string <= 1)} {
 
					 
					 
					 
								{(state == 0) && (string <= 1)} {
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
									"\\once \\override NoteHead #\'stencil = #ly:text-interface::print " ++
 
					 
					 
					 
									"\\once \\override NoteHead #\'stencil = #ly:text-interface::print " ++
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
									"\\once \\override NoteHead #\'text = \\markup { \\translate #\'(-0 . -0.8) \\whiteout \\pad-markup #0.5 " ++ '\"' ++
 
					 
					 
					 
									"\\once \\override NoteHead #\'text = \\markup { \\translate #\'(-0 . -0.8) \\whiteout \\pad-markup #0.5 " ++ '\"' ++
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
									if(string == 0, {note.asString}, {(note - 7).asString}) ++ '\" } ' ++ lilyBracket ++ noteNames[string] ++ "16 "}
 
					 
					 
					 
									if(string == 0, {note.asInteger.as String}, {(note - 7).asInteger .asString}) ++ '\" } ' ++ lilyBracket ++ noteNames[string] ++ "16 "}
 
				
			 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 
					 
					 
								{state == 0 && (string >= 2)} {noteNames[string] ++ "16 "}
 
					 
					 
					 
								{state == 0 && (string >= 2)} {noteNames[string] ++ "16 "}
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					
 
					 
					 
					 
					
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
								{(state == 1) && (b != 0)} {"r16 " ++ lilyStartBeam ++ lilyEndBeam}
 
					 
					 
					 
								{(state == 1) && (b != 0)} {"r16 " ++ lilyStartBeam ++ lilyEndBeam}
 
				
			 
			
		
	
	
		
		
			
				
					
						
							
								 
							 
						
						
							
								 
							 
						
						
					 
					 
					@ -92,7 +92,7 @@
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
							n = n + 1;
 
					 
					 
					 
							n = n + 1;
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
						});
 
					 
					 
					 
						});
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					
 
					 
					 
					 
					
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
						lilyRepeat = "\\repeat unfold " ++ ((durSum-60)/5/12).trunc .asString ++ " { \\repeat unfold 59 { s16 \\noBreak } s16 \\break } ";
 
					 
					 
					 
						lilyRepeat = "\\repeat unfold " ++ ((durSum-60)/5/12).asIn tege r.asString ++ " { \\repeat unfold 59 { s16 \\noBreak } s16 \\break } ";
 
				
			 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 
					 
					 
						lilyTime = "\\time 60/16 ";
 
					 
					 
					 
						lilyTime = "\\time 60/16 ";
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					
 
					 
					 
					 
					
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
						inFile = File(~dir +/+ "../lilypond/ostinato_and_interrupt_lilypond_score_template.ly", "r");
 
					 
					 
					 
						inFile = File(~dir +/+ "../lilypond/ostinato_and_interrupt_lilypond_score_template.ly", "r");
 
				
			 
			
		
	
	
		
		
			
				
					
						
							
								 
							 
						
						
							
								 
							 
						
						
					 
					 
					@ -124,7 +124,6 @@
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
						});
 
					 
					 
					 
						});
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					};
 
					 
					 
					 
					};
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					)
 
					 
					 
					 
					)
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					
 
					 
					 
					 
					 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					// uncomment below generate lilypond files without gui (requires resouces to exist)
 
					 
					 
					 
					// uncomment below generate lilypond files without gui (requires resouces to exist)
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					/*(
 
					 
					 
					 
					/*(
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					~dir = thisProcess.nowExecutingPath.dirname;
 
					 
					 
					 
					~dir = thisProcess.nowExecutingPath.dirname;