]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.5.34
authorfred <fred>
Wed, 27 Mar 2002 02:05:48 +0000 (02:05 +0000)
committerfred <fred>
Wed, 27 Mar 2002 02:05:48 +0000 (02:05 +0000)
lily/align-interface.cc
lily/dynamic-performer.cc
lily/instrument-name-engraver.cc
lily/midi-item.cc
lily/piano-pedal-performer.cc
lily/property-iterator.cc
lily/separating-group-spanner.cc
ly/engraver-init.ly
ly/performer-init.ly
scm/translator-property-description.scm
scripts/convert-ly.py

index 15f8ec254b9f1aa5c1038ce641c5bd3a7fdc7ed3..0ab7a87b1b57491dc02ab35ddf04a8c73f41e5b5 100644 (file)
@@ -110,7 +110,7 @@ Align_interface::align_to_fixed_distance (Grob *me , Axis a)
 
 /*
   Hairy function to put elements where they should be. Can be tweaked
-  from the outside by setting minimum-space and extra-space in its
+  from the outside by setting minimum-space-pair and extra-space in its
   children
 
   We assume that the children the refpoints of the children are still
@@ -159,7 +159,7 @@ Align_interface::align_elements_to_extents (Grob * me, Axis a)
          Grob *e =dynamic_cast<Grob*> (all_grobs[i]);
 
          // todo: fucks up if item both in Halign & Valign. 
-         SCM min_dims = e->remove_grob_property ("minimum-space");
+         SCM min_dims = e->remove_grob_property ("minimum-space-pair");
          if (gh_pair_p (min_dims) &&
              gh_number_p (ly_car (min_dims))
              && gh_number_p (ly_cdr (min_dims)))
index a08c500dce4db9f35e52a867e5a07a7942afabbd..86a1b5e0a293324a1e472b7b5021685a10d4231f 100644 (file)
@@ -135,4 +135,4 @@ Dynamic_performer::try_music (Music* r)
 }
 
 ENTER_DESCRIPTION(Dynamic_performer,
-                 "","","","","");
+                 "","","","dynamicAbsoluteVolumeFunction midiMaximumVolume midiMinimumVolume midiInstrument instrumentEqualizer","");
index 18fc78f86f7a77d9f6a7fc24a15733bde506656e..884c39025bedf8092cff83d70997055e18f195e5 100644 (file)
@@ -1,5 +1,5 @@
 /*   
-  new-staff-margin-engraver.cc --  implement Instrument_name_engraver
+  instrument-name-engraver.cc --  implement Instrument_name_engraver
   
   source file of the GNU LilyPond music typesetter
   
@@ -101,6 +101,10 @@ Instrument_name_engraver::acknowledge_grob (Grob_info i)
     but is only a vehicle for the placement routine it contains, and
     therefore the location of its refpoint won't be very useful.
     
+
+    We could also just use staffsFound, but lets keep this working
+    without staffs as well.
+
   */
   if (dynamic_cast<Spanner*> (i.grob_l_)
       && ((Axis_group_interface::has_interface (i.grob_l_)
index f894ce7f0029bc817e30f9e8895266d7e813520e..0203c2a9ce31657ff9ad6dae70f707c51b578617 100644 (file)
@@ -330,7 +330,7 @@ Midi_piano_pedal::str () const
     str += to_str ((char)0x42);
   else if (audio_l_->type_str_ == "Sustain")
     str += to_str ((char)0x40);
-  else if (audio_l_->type_str_ == "UnaChorda")
+  else if (audio_l_->type_str_ == "UnaCorda")
     str += to_str ((char)0x43);
 
   int pedal = ((1 - audio_l_->dir_) / 2) * 0x7f;
index 798877414ba1fc4ae6f519a61738a7e526955f6d..fd32e92684349e8f3dad98b04b8ce2c5fdecab28 100644 (file)
@@ -55,7 +55,7 @@ Piano_pedal_performer::initialize ()
   info_alist_ = new Pedal_info[4];
   Pedal_info *p = info_alist_;
 
-  char * names [] = { "Sostenuto", "Sustain", "UnaChorda", 0  };
+  char * names [] = { "Sostenuto", "Sustain", "UnaCorda", 0  };
   char **np = names ;
   do
     {
index 726a79bf1da9553cd2af25af05dbb95b37693329..ad4452a3eee76d903d6d59456b746bd3f4fcf411 100644 (file)
@@ -24,7 +24,7 @@ Property_iterator::process (Moment m)
       SCM val = music_l ()->get_mus_property ("value");
       bool ok= true;
       if (val != SCM_EOL)
-       ok = type_check_assignment (val, sym, ly_symbol2scm ("translation-type?"));
+       ok = type_check_assignment (sym, val, ly_symbol2scm ("translation-type?"));
       if (ok)
        report_to_l ()->internal_set_property (sym, val);
     }
@@ -46,15 +46,15 @@ Property_unset_iterator::process (Moment m)
 void
 Push_property_iterator::process (Moment m)
 {
-  SCM syms = music_l ()->get_mus_property ("symbols");
+  SCM sym = music_l ()->get_mus_property ("symbol");
   SCM eprop = music_l ()->get_mus_property ("grob-property");
   SCM val = music_l ()->get_mus_property ("grob-value");
 
   if (to_boolean (music_l ()->get_mus_property ("pop-first")))
     Translator_def::apply_pushpop_property (report_to_l (),
-                                           syms, eprop, SCM_UNDEFINED);
+                                           sym, eprop, SCM_UNDEFINED);
 
-  Translator_def::apply_pushpop_property (report_to_l (), syms, eprop, val);
+  Translator_def::apply_pushpop_property (report_to_l (), sym, eprop, val);
   
   Simple_music_iterator::process (m);
 }
@@ -62,9 +62,9 @@ Push_property_iterator::process (Moment m)
 void
 Pop_property_iterator::process (Moment m)
 {
-  SCM syms = music_l ()->get_mus_property ("symbols");
+  SCM sym = music_l ()->get_mus_property ("symbol");
   SCM eprop = music_l ()->get_mus_property ("grob-property");
-  Translator_def::apply_pushpop_property (report_to_l (), syms, eprop, SCM_UNDEFINED);
+  Translator_def::apply_pushpop_property (report_to_l (), sym, eprop, SCM_UNDEFINED);
   
   Simple_music_iterator::process (m);
 }
index 6b5e98dbc63c93b1960ea1501e29699f33970e82..c8a74111c5ac5dac283934ec24be0e707bb975f3 100644 (file)
@@ -76,7 +76,7 @@ SCM
 Separating_group_spanner::set_spacing_rods_and_seqs (SCM smob)
 {
   set_spacing_rods (smob);
-  find_musical_sequences (unsmob_grob (smob));
+
   return SCM_UNSPECIFIED;
 }
 
@@ -104,7 +104,6 @@ Separating_group_spanner::set_spacing_rods (SCM smob)
       if (rb)
        find_rods (rb, ly_cdr (s));
     }
-  find_musical_sequences (me);
 
 #if 0
   /*
@@ -136,103 +135,6 @@ Separating_group_spanner::add_spacing_unit (Grob* me ,Item*i)
 }
 
 
-void
-Separating_group_spanner::find_musical_sequences (Grob *me)
-{
-  Item *last = 0;
-  Item *llast = 0;
-  for (SCM s = me->get_grob_property ("elements");
-       gh_pair_p (s); s = ly_cdr (s))
-    {
-      Item *it = dynamic_cast<Item*> (unsmob_grob (ly_car (s)));
-      if (last)
-       {       
-         Item *lcol = last->column_l ();
-         Item *col = it->column_l ();
-
-         int lrank = Paper_column::rank_i (lcol);
-         int rank = Paper_column ::rank_i (col);
-
-         bool mus = Paper_column::musical_b (col);
-         bool lmus = Paper_column::musical_b (lcol);
-
-         if ((lrank - rank == 2) && lmus && mus)
-           {
-             SCM seq = col->get_grob_property ("spacing-sequence");
-             col->set_grob_property ("spacing-sequence",
-                                     gh_cons (gh_cons (it->self_scm (), last->self_scm ()), seq));
-           }
-
-         if (llast && !Paper_column::breakable_b (last))
-           {
-             Item *llcol = llast->column_l ();
-             int llrank = Paper_column::rank_i (llcol);
-             bool llmus= Paper_column::musical_b (llcol);
-             if (llrank - lrank == 1
-                 && lrank - rank == 1
-                 && llmus && !lmus && mus)
-               {
-                 /*
-                   these columns are adjacent, so set spacing-sequence in
-                   IT.
-                   
-                    Q     Q+1    Q+2   (rank)
-                   Note  Clef   Note
-
-                   IT    LAST   LLAST  
-                   
-                  */
-                 SCM seq = col->get_grob_property ("spacing-sequence");
-                 col->set_grob_property ("spacing-sequence",
-                                         gh_cons (gh_cons (it->self_scm (), last->self_scm ()), seq));
-
-                 /*
-                   lcol can not be a loose column, so we make sure
-                   that is and will not be marked as such.
-                 */
-                 lcol->set_grob_property ("between-cols" ,  SCM_BOOL_F);
-               }
-             else if (!lmus)
-               {
-                 SCM between = lcol->get_grob_property ("between-cols");
-
-                 if (between == SCM_BOOL_F)
-                   continue;
-                 
-                 if (!gh_pair_p (between))
-                   {
-                     between = gh_cons (it->self_scm (), llast->self_scm ());
-                     lcol ->set_grob_property ("between-cols", between);
-                   }
-
-                 Item * left
-                   = dynamic_cast<Item*> (unsmob_grob (ly_car (between)));
-                 if(Paper_column::rank_i (left->column_l ()) < rank)
-                   gh_set_car_x (between, col->self_scm());
-                 
-                 Item * right
-                   = dynamic_cast<Item*> (unsmob_grob (ly_cdr (between)));
-                 if (Paper_column::rank_i (right->column_l ()) > llrank )
-                   gh_set_cdr_x (between, llcol->self_scm ());
-               }
-           }
-       }
-
-      llast = last;
-      last = it;
-    }
-}
-
-#if 0
-void
-Separating_group_spanner::set_loose_rods ()
-{
-  // loose columns should  also generate minimum distances.
-  // TODO
-}
-#endif
-
-
 void
 Separating_group_spanner::set_interface (Grob*)
 {
index f3f78f9997ade90b9e4d220a077848a09f352ab1..1981cdd065a140e7f0fc3fbb445ad8aba8b117e7 100644 (file)
@@ -1,4 +1,4 @@
-\version "1.3.146"
+\version "1.5.33"
 
 %
 % setup for Request->Element conversion. Guru-only
@@ -66,7 +66,7 @@ InnerChoirStaffContext = \translator {
        \name InnerChoirStaff
        alignmentReference = #0
        \consists "System_start_delimiter_engraver"
-       SystemStartDelimiter = #'SystemStartBracket
+       systemStartDelimiter = #'SystemStartBracket
 
        \accepts "Staff"
        \accepts "RhythmicStaff"
@@ -178,7 +178,7 @@ GrandStaffContext=\translator{
        \consists "Span_bar_engraver"
        \consists "Span_arpeggio_engraver"
        \consists "System_start_delimiter_engraver"
-       SystemStartDelimiter = #'SystemStartBrace
+       systemStartDelimiter = #'SystemStartBrace
        Generic_property_list = #generic-grand-staff-properties
        \accepts "Staff"
 }
@@ -190,8 +190,8 @@ PianoStaffContext = \translator{
        \consists "Vertical_align_engraver"
        \consists "Instrument_name_engraver"
        
-       instrument = ##f
-       instr = ##f
+       instrument = #'()
+       instr = #'()
        
        verticalAlignmentChildCallback = #Align_interface::fixed_distance_alignment_callback
        VerticalAlignment \override #'forced-distance = #12
@@ -206,7 +206,7 @@ InnerStaffGroupContext= \translator {
        \consists "Span_bar_engraver"
        \consists "Span_arpeggio_engraver"
        \consists "Output_property_engraver"    
-       SystemStartDelimiter = #'SystemStartBracket
+       systemStartDelimiter = #'SystemStartBracket
 
        \consists "System_start_delimiter_engraver"
        \accepts "Staff"
@@ -355,9 +355,9 @@ ScoreContext = \translator {
        soloADue = ##t
        splitInterval = #'(0 . 1)
        changeMoment = #`(,(make-moment 0 0) . ,(make-moment 1 512))
-       SystemStartDelimiter =#'SystemStartBar
-       barAuto = ##t
-       voltaVisibility = ##t
+       systemStartDelimiter =#'SystemStartBar
+
+
        %  name, glyph id, clef position 
        % where is c0 in this clef?
 
@@ -366,7 +366,7 @@ ScoreContext = \translator {
        centralCPosition = #-6
        
         automaticPhrasing = ##t
-       alignmentReference = #-1   % \down
+
        defaultBarType = #"|"
 
        explicitClefVisibility = #all-visible
index cd7700b55af440cd3e19848724254b3346fe7368..748e29229c7659e3f3e3c04712e25de8e52cc2b1 100644 (file)
@@ -10,7 +10,7 @@ StaffContext = \translator {
        \consists "Key_performer"
        \consists "Tempo_performer"
        \consists "Time_signature_performer"
-       dynamicStyle = #"dynamic"
+
 }
 \translator { \StaffContext }
 \translator { \StaffContext
index 4e5c23189a84c1613495ed19caf33eb94c2be28a..8cfeb298ca60a868a8a92f483fc60d64545e7913 100644 (file)
@@ -44,6 +44,10 @@ and therefore only work in contexts which contain an
 @code{Axis_group_engraver}.
 ")
 
+(translator-property-description
+ 'acknowledgeHashTable vector?
+ "Internal variable: store interface to engraver smob table for current context. Don't mess with this."
+ )
 
 (translator-property-description 'aDueText string? "text for begin of a due")
 (translator-property-description 'associatedVoice string? "Name of the Voice that has the melody for this LyricsVoice.")
@@ -193,8 +197,14 @@ Do nothing.
 @end table
 ")
 (translator-property-description 'decrescendoSpanner symbol? "Type of spanner to be used for decrescendi.  One of: @samp{hairpin}, @samp{line}, @samp{dashed-line}, @samp{dotted-line}.  If unset, hairpin type is used.")
+
+(translator-property-description 'dynamicAbsoluteVolumeFunction procedure? "
+[DOCUMENT-ME]
+")
 (translator-property-description 'explicitClefVisibility procedure? "visibility-lambda function for clef changes.")
 
+
+
 (translator-property-description 'explicitKeySignatureVisibility
 procedure? "visibility-lambda function for explicit Key changes;
 \override of #'visibility-lambda will set the visibility for normal
@@ -224,7 +234,9 @@ in a context. This is done using the @code{Font_size_engraver}.")
     is used to determine the instrument for MIDI output.")
 
 (translator-property-description 'instrumentEqualizer procedure? "[DOCUMENT-ME]")
-                                
+(translator-property-description 'instrumentSupport list? "
+list of grobs to attach instrument name to. 
+")                              
 (translator-property-description 'keyAccidentalOrder list? "
 Alist that defines in what order  alterations should be printed.
 The format is (NAME . ALTER), where NAME is from 0 .. 6 and ALTER from  -1, 1.
@@ -251,6 +263,10 @@ top of those automatically detected. ")
 (translator-property-description 'melismaEngraverBusy boolean? "See @ref{(lilypond)melismaBusy}. This is set automatically.")
 (translator-property-description 'midiInstrument string? "Name of the
 MIDI instrument to use ")
+(translator-property-description 'midiMinimumVolume number? "[DOCUMENT-ME]")
+(translator-property-description 'midiMaximumVolume number? "[DOCUMENT-ME]")
+
+
 (translator-property-description 'noAutoBeaming boolean? "If set to true then beams are not generated automatically.
 ")
 (translator-property-description 'noDirection boolean? "Don't set directions by a2-engraver when part-combining.")
@@ -258,8 +274,8 @@ MIDI instrument to use ")
 (translator-property-description 'pedalSustainStrings list? "List of   string to print for sustain-pedal. Format is
  (UP UPDOWN DOWN), where each of the three is the string to print when
 this is done with the pedal.")
-(translator-property-description 'pedalUnaCordaStrings string? "see pedalSustainStrings.")
-(translator-property-description 'pedalSostenutoStrings string? "see pedalSustainStrings.")
+(translator-property-description 'pedalUnaCordaStrings list? "see pedalSustainStrings.")
+(translator-property-description 'pedalSostenutoStrings list? "see pedalSustainStrings.")
 
 (translator-property-description 'phrasingPunctuation string? "")
 (translator-property-description 'rehearsalMark number-or-string? "")
@@ -323,6 +339,7 @@ is erased.
 (translator-property-description 'stz markup? "Abbreviated form for a stanza, see also Stanza property.")
 (translator-property-description 'subdivideBeams boolean? "If set, multiple beams will be subdivided at beat
 positions - by only drawing one beam over the beat.")
+(translator-property-description 'systemStartDelimiter symbol? "Which grob to make for the start of the system/staff?")
 (translator-property-description 'textNonEmpty boolean? " If set
 to true then text placed above or below the staff is not assumed to
 have zero width.  @code{\fatText} and @code{\emptyText} are predefined
index 4a2236a7aa5bd53f792149c43945bee495122a2b..26e33611cdc8c57aeca6d22c76a0bfd38f1dedf4 100644 (file)
@@ -826,6 +826,12 @@ if 1:
        conversions.append (((1,3,148), conv, '"(align" -> "(axis", "(rows" -> "(columns"'))
 
 
+if 1:
+       def conv (str):
+               str = re.sub ('SystemStartDelimiter', 'systemStartDelimiter', str)
+               return str
+       conversions.append (((1,5,33), conv, 'SystemStartDelimiter -> systemStartDelimiter'))
+
 
 ################################
 #      END OF CONVERSIONS