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

13 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
mi2mu/Makefile

diff --git a/NEWS b/NEWS
index db76e9d5272afef9c5376176cdded9d54355beb4..24972f432686ffbd6a3ac8cfaf52d5a4d1e74cf5 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,10 @@ spring-spacer. Fixes spacing problems.
 
 ********
 aug 14
+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
@@ -57,6 +61,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. 
@@ -72,6 +77,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 e67ec04990696a10801f96fa3fdc18a60798cee4..3248c2e3ff003a5d641061ec2e2482a941823999 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -3,4 +3,4 @@ TOPLEVEL_MINOR_VERSION = 1
 TOPLEVEL_PATCH_LEVEL = 8
 
 # 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 13c9f41ca77f35037dc3d00c90aa095be1453336..63785ac28d6e94becef8ebb5c3ffa40c60f5b4ae 100644 (file)
@@ -8,6 +8,7 @@
 #define STRING_CONVERT_HH
 
 #include "fproto.hh"
+#include "string.hh"
 
 
 /** The functor String_convert handles all conversions to/from String
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 96fb10193ea6cfa02f756bd17c65d5edbed794d5..1d199671ffa1383977a14c42ae3dfc9b8ba3a427 100644 (file)
@@ -5,8 +5,10 @@
 
 #ifndef SOURCE_HH
 #define SOURCE_HH
-#include "plist.hh"
+
 #include "proto.hh"
+#include "plist.hh"
+
 class Sources 
 {
 public:
index 125541202e2c917253b21384af99ceae87727a90..e5fbda129ba9c64a8db79bba78b25af7b187f842 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 b44093939320926ae04323dd74abccffd68407da..cccc64216d261dd7adc131347dba90ce8566595a 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 999a45d0c660040b29fef938b006423290cb7deb..b2341e17349c5cc561942751e29344c8f8fb9cbe 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 1827eb39e20496723714bd9f6c7795a29f44e74f..9c2d9ff75dd1f5d522aa555f11f93f2dab4459f9 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 3bfb05286bf7c27a4ac757ed0068a3ca382892c3..34098b04dab16c5602719b41434ecbf3848a295d 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()));
+    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
index 704221df8ab047ad5115404326c18f6269f51fb6..7100902c8fa69f12397afbdafe4dac39fa774659 100644 (file)
@@ -81,5 +81,5 @@ localinstall: installexe
 
 localuninstall: uninstallexe
 
-
 $(outdir)/mi2mu-version.o: $(outdir)/version.hh
+