]> git.donarmstrong.com Git - lilypond.git/commitdiff
patch::: 0.1.7.jcn1: het lelie gedeelte
authorJan Nieuwenhuizen <janneke@gnu.org>
Fri, 15 Aug 1997 14:14:55 +0000 (16:14 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Fri, 15 Aug 1997 14:14:55 +0000 (16:14 +0200)
pl 0.1.7.jcn1
- complete redo mid/back-end of mi2mu
- bf: do not create/play empty Audio-{text,instrument} events

12 files changed:
NEWS
VERSION
bin/make-patch
flower/include/string-convert.hh
lib/duration.cc
lib/include/duration.hh
lib/include/source.hh
lily/audio-item.cc
lily/lyric-performer.cc
lily/midi-item.cc
lily/midi-walker.cc
lily/staff-performer.cc

diff --git a/NEWS b/NEWS
index cdf96ae04fbf074b5cb42a08685ee54fcfe0c5a9..ee3412f44c50663bb54c02131f853c18b0822841 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+pl 0.1.7.jcn1
+       - complete redo mid/back-end of mi2mu
+       - bf: do not create/play empty Audio-{text,instrument} events
+
 pl 7
        - Audio_element as base for Audio_item and Audio_staff. fixes
 midi-lyric segfault
@@ -42,6 +46,7 @@ pl 0.1.3.jcn1
 
 *********
 aug 11
+
 pl 4
        - correction of GNU Music Manifesto
        - moved lowlevel stuff of Source_file to Mapped_file_storage. 
@@ -57,6 +62,9 @@ Interface via File_storage. (Now using Simple_file_storage)
        - mudela: parse tempo requests, \midi{ \tempo 4= 60;}
 
 ******
+pl 0.1.3.jcn1
+       - mi2mu: simplification +bf lily_stream: indentation and wordwrap
+       - mi2mu: bf: blunt: non-alpha(num) chars from identifiers
 aug 8
 pl 3
        - don't crash if no Clef_engraver.
diff --git a/VERSION b/VERSION
index a0f69a468efc64bd965e8303cec8630482cd728d..d680f6bd6dc70167ebbdc0f5ca3c829839bd060d 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -3,4 +3,4 @@ TOPLEVEL_MINOR_VERSION = 1
 TOPLEVEL_PATCH_LEVEL = 7
 
 # use to send patches, always empty for released version:
-TOPLEVEL_MY_PATCH_LEVEL = 
+TOPLEVEL_MY_PATCH_LEVEL = .jcn1
index 4c98e9f35afa1249d6d49d53ec7edec5643aea84..e11d7b8533f9f81f7d48ae88330ebff175f66edf 100755 (executable)
@@ -18,7 +18,7 @@ then
    echo untarring ..
   if [ ! -f $newarc ]
   then
-       echo cant find $newarc
+       echo "can't find $newarc"
        exit
   fi
   tar zfx $newarc
@@ -29,7 +29,7 @@ then
 
   if [ ! -f $oldarc ]
   then
-       echo cant find $oldarc
+       echo "can't find $oldarc"
        exit
   fi
    tar zfx $oldarc
index 9eb9869653483d803af0df65d6e718fb2983abbb..f83899a2e1c24c66fd29a3a03105e4133720fc86 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef STRING_CONVERT_HH
 #define STRING_CONVERT_HH
 
+#include "string.hh"
+
 /*
   ///a class which only has functions.
 //#define functor class // cute. docxx fucks up
index fab55e756c9a10e786667dc476068517c7b444fa..f81b3c2be92ed9d0e74ee6248259b2ac7a7aa7b9 100644 (file)
@@ -27,6 +27,13 @@ Duration::Duration()
        ticks_i_ = 0;
 }
 
+Duration::Duration( int type_i, int dots_i = 0 )
+{
+       type_i_ = type_i;
+       dots_i_ = dots_i;
+       ticks_i_ = 0;
+}
+
 bool
 Duration::duration_type_b(int t)
 {
index c46fc5a7c0d7320ad4ef9834ec46e421e970e6fa..0c5b313e4b62c0810be30a65335b528180534315 100644 (file)
@@ -41,6 +41,7 @@ struct Duration {
       Ctor of Duration. type_i should be a power of 2. 
        */
     Duration();
+    Duration( int type_i, int dots_i = 0 );
     /// is the "plet factor" of this note != 1 ?
     bool plet_b();
     String str()const;
index 9d443ed0dbd50766946e589606320e8843858e8d..1d199671ffa1383977a14c42ae3dfc9b8ba3a427 100644 (file)
@@ -5,7 +5,10 @@
 
 #ifndef SOURCE_HH
 #define SOURCE_HH
+
+#include "proto.hh"
 #include "plist.hh"
+
 class Sources 
 {
 public:
index a041a7d2f3112a34b8dafc62f769e662e00a1073..4e057350136f89612ded9fe3007849b663e1ed07 100644 (file)
@@ -18,7 +18,7 @@ Audio_instrument::Audio_instrument( String instrument_str )
 Midi_item*
 Audio_instrument::midi_item_p()
 {
-    return new Midi_instrument( 0, str_ );
+    return str_.length_i() ? new Midi_instrument( 0, str_ ) : 0;
 }
                                       
 Audio_item::Audio_item( Request* req_l )
@@ -83,7 +83,7 @@ Audio_text::Audio_text( Audio_text::Type type, String text_str )
 Midi_item*
 Audio_text::midi_item_p()
 {
-    return new Midi_text( this );
+    return text_str_.length_i() ? new Midi_text( this ) : 0;
 }
 
 
index 08fa4c14e903efef077fa0ca7e8c0fab2a02a259..248f8a83bb692bcb01f6a72c2cda30420fa5efee 100644 (file)
@@ -36,7 +36,7 @@ Lyric_performer::do_print() const
 void
 Lyric_performer::process_requests()
 {
-    if ( lreq_arr_.size() )
+    if ( lreq_arr_.size() && lreq_arr_[ 0 ]->tdef_p_->text_str_.length_i() )
        play( new Audio_text( Audio_text::LYRIC, lreq_arr_[ 0 ]->tdef_p_->text_str_ ) );
     lreq_arr_.clear();
 }
index 88ac41f6b412f2b6cc52c27cbf58b7b983c019a3..53248be2631e13b350f8175c82bbdc08911cdd00 100644 (file)
@@ -517,6 +517,7 @@ Midi_track::add( int delta_time_i, String event_str )
        cout << String_convert::bin2hex_str( event_str ) << endl;
     }
     assert(delta_time_i >= 0);
+    assert(event_str.length_i());
     Midi_chunk::add( i2varint_str( delta_time_i ) + event_str );
 }
 
index 4b4eed261ddacd136013915f1467a480e7222247..968aab74cfbe03c33ba3bbebd9799a85826ec42b 100644 (file)
@@ -98,6 +98,8 @@ Midi_walker::process()
     do_stop_notes( ptr()->audio_column_l_->at_mom() );
 
     Midi_item* p = ptr()->midi_item_p();
+    if ( !p )
+       return;
     p->channel_i_ = track_l_->number_i_;
     
     if ( p->name() != Midi_note::static_name() )
index 3605653c38322625cd9ef718cc023baefe8e65df..edffec11c0a612fd82f37afd830ed5ee695f2464 100644 (file)
@@ -32,17 +32,19 @@ Staff_performer::do_creation_processing()
 {
     audio_staff_p_ = new Audio_staff;
 
-    // staff name
-    play(new Audio_text( Audio_text::TRACK_NAME, instrument_str()));
-
-    // instrument description
-    play(new Audio_text( Audio_text::INSTRUMENT_NAME, instrument_str()));
+    if (instrument_str().length_i()) {
+       // staff name
+       play (new Audio_text ( Audio_text::TRACK_NAME, instrument_str ()));
+       // instrument description
+       play (new Audio_text (Audio_text::INSTRUMENT_NAME, instrument_str ()));
+    }
 
     // tempo
     play(new Audio_tempo(get_tempo_i()));
 
-    // instrument
-    play(new Audio_instrument(instrument_str()));
+    if (instrument_str ().length_i ())
+       // instrument
+       play (new Audio_instrument (instrument_str ()));
 }
 
 void