[CM] CMN - :old-style layout? :new-style problem?

Bill Sack bsack23@gmail.com
Fri, 27 Apr 2007 17:10:18 -0400


hi,
it seems like the (layout :old-style) switch isn't having the effect
it should have (or used to have?) -

an example like this:
(cmn  (layout :old-style)
      (staff  treble (meter 2 4) (engorge (loop for i from 0 to 50
collect (quarter-rest)))
                                               (engorge (loop for i
from 0 to 10 collect (ds4 q))))
      (staff bass (meter 2 4) (engorge (loop for i from 0 to 61
collect (e3 q)))))

... should display both staves on the first line, then the treble
staff should go away until the beginning of the line where it actually
has notes again, right? it just displays all lines all the time no
matter what. (layout t) and (layout nil) look pretty much the same

interestingly, :new-style throws an error:
Argument Y is not a NUMBER: NIL
   [Condition of type SIMPLE-TYPE-ERROR]

Restarts:
 0: [ABORT] Return to SLIME's top level.
 1: [ABORT] Exit debugger, returning to top level.

Backtrace:
  0: (SB-KERNEL:TWO-ARG-+ 12.3 NIL)
  1: (CMN::JUSTIFY #<SCORE {B61CEC1}>)
  2: (CMN::CMN
      #<CMN::SELF-ACTING {B5A0109}>
      #<CMN::SELF-ACTING {B5A1FE1}>
      #<CMN::SELF-ACTING {B5A2091}>
      #<STAFF>
      #<STAFF>)
  3: (SB-INT:SIMPLE-EVAL-IN-LEXENV
etc...

i get a similar error when loading the 'joe.cmn' file from the cmn
distro. hmm. i have used :new-style with sucess in other contexts,
though.

against sensible advice, i'm trying to manuscript a largish project
with cmn. thank you, Bill and Anders, for your patience with my
queries.

bill sack