]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/note-performer.cc
release: 1.1.1
[lilypond.git] / lily / note-performer.cc
index 5f8923c284e48a70f38547b1aa1d1f0942c6b0c3..d63b433a4fe7b0fdf8cccbd2c328104f5caf042c 100644 (file)
@@ -24,27 +24,26 @@ Note_performer::do_print () const
 {
 #ifndef NPRINT
   if (note_req_l_) 
-      note_req_l_->print ();
+    note_req_l_->print ();
 #endif
 }
 
 void 
 Note_performer::do_process_requests () 
 {
-  // this is _really_ braindead, but it generates some output
-  if (!note_req_l_ || !dynamic_cast <Melodic_req *> (note_req_l_)  || !dynamic_cast <Rhythmic_req *> (note_req_l_))
-    return;
-
-  int transposing_i = 0;
-  //urg
-  Scalar prop = get_property ("transposing");
-  if (!prop.empty_b () && prop.isnum_b ()) 
-    transposing_i = prop;
+  if (note_req_l_)
+    {
+      int transposing_i = 0;
+      //urg
+      Scalar prop = get_property ("transposing");
+      if (!prop.empty_b () && prop.isnum_b ()) 
+       transposing_i = prop;
 
 
-  play (new Audio_note (note_req_l_, transposing_i));
+      play (new Audio_note (note_req_l_, transposing_i));
 
-  note_req_l_ = 0;
+      note_req_l_ = 0;
+    }
 }
 
 bool