listhelper-moderate
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lilypond-user post from address@hidden requires approval


From: lilypond-user-owner
Subject: lilypond-user post from address@hidden requires approval
Date: Sun, 08 Jul 2007 23:56:26 -0400

As list administrator, your authorization is requested for the
following mailing list posting:

    List:    address@hidden
    From:    address@hidden
    Subject: context-sensitive context creation
    Reason:  Post by non-member to a members-only list

At your convenience, visit:

    http://lists.gnu.org/mailman/admindb/lilypond-user
        
to approve or deny the request.
--- Begin Message --- Subject: context-sensitive context creation Date: Sun, 8 Jul 2007 23:01:43 -0500 User-agent: Mutt/1.5.13 (2006-08-11)
Hey all; I'm trying to figure out how I can structure an input file
that should be displayed in both a normal Staff and a TabStaff without
writing the actual music twice.  I've found examples and stuff in the
list archives that work fine as long as the number of voices stays
basically constant, but for this, some parts of it should be
polyphonic and some parts not.

What I'd like to do, is declare a scheme function or something that
allows me to make new contexts that are either Voice or TabVoice
depending whether it can find a TabStaff context.

The ly:context-find function looked potentially promising.  But I
couldn't figure out how to use it from the documentation.  (Or for
that matter whether it can do this.)

In case the above isn't making sense, I want to do something along the
lines of:

\version "2.8.7"
makeCorrectVoice = #(define-music-function ... something-or-another)

piece = {
  \time 4/4
  \relative { c4 g c g }
  % now it becomes polyphonic
  <<
    \makeCorrectVoice { \relative { c4 g c g } }
    \makeCorrectVoice { \relative c' { c8 c g. g16 g4 g } }
  >>
  % now back to a single voice
  \relative c { c4 c c c }
}

% put it together
\new StaffGroup {
  \new Staff {
    \clef "G_8"
    \tempo 4=500
    \piece
  }
  \new TabStaff { \piece }
}

Any ideas?

[ I'd appreciate being CC'd on any replies, since I am not a list
member. ]

Thanks,
-- 
Jordan DeLong
address@hidden

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message --- Subject: confirm d7861f32b7fba5080a2cbee941aad2dbd9ede7f2
If you reply to this message, keeping the Subject: header intact,
Mailman will discard the held message.  Do this if the message is
spam.  If you reply to this message and include an Approved: header
with the list password in it, the message will be approved for posting
to the list.  The Approved: header can also appear in the first line
of the body of the reply.

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]