]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/key-performer.cc
patch::: 0.1.1.jcn1: zachte pats
[lilypond.git] / lily / key-performer.cc
index 5e620ff7c98666607bd2ae152d28d21927d9dba0..5affa0c1f3266415b2839b2a5aa1135958990012 100644 (file)
@@ -8,7 +8,7 @@
 
 #include "key-performer.hh"
 #include "command-request.hh"
-#include "midi-item.hh"
+#include "audio-item.hh"
 
 
 
@@ -36,16 +36,9 @@ Key_performer::do_print() const
 void
 Key_performer::process_requests()
 {
-    if ( key_req_l_ ) {
-       int sharps_i = key_req_l_->sharps_i();
-       int flats_i = key_req_l_->flats_i();
-       // midi cannot handle non-conventional keys
-       if ( !( flats_i && sharps_i ) ) {
-           Midi_key k( sharps_i - flats_i, key_req_l_->minor_b() );
-           play_event( &k );
-       }
-       key_req_l_ = 0;
-    }
+    if ( key_req_l_ )
+       play( new Audio_key( key_req_l_ ) );
+    key_req_l_ = 0;
 }
 
 bool