denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] Drum notation (and its Clef)


From: Richard Shann
Subject: Re: [Denemo-devel] Drum notation (and its Clef)
Date: Sun, 20 Sep 2009 17:59:02 +0100

On Sun, 2009-09-20 at 15:48 +0200, Nils wrote:
> On Sun, 20 Sep 2009 14:30:32 +0100
> Richard Shann <address@hidden> wrote:
> 
> > On Sat, 2009-09-19 at 20:32 +0200, Nils wrote:
> > > 
> > > The short version: We need a clef that looks like \clef percussion but
> > > behaves like a normal bass clef.
> > 
> > ? That Denemo thinks is a bass clef? that would be easy...
> 
> 
> Yes. Thats it. A bass clef that looks like a percussion clef, but if you 
> place notes on they play back like in a bass-clef (or if you need to work 
> with scripts there and choose notes by note-names)
> 
> I know I can script this but It should be built-in the same way as the other 
> keys are.
I think you are trying to swim against the stream - instead we should
un-build in the other clefs, by providing a script that allows you to
choose any clef you want, and then runs d-InitialClef "treble" (or
whatever is needed) for treble clef, and so on for the current built-in
clefs.
This way, people can add any other clefs that LilyPond can or will ever
support or ones they add in LilyPond's scheme.
The other way, every time someone wants a new feature they have to find
a C programmer to add it, and unless he's very good you will find
unexpected crashes occurring in distant un-related parts of the program
as memory gets corrupted through incorrect handling of the pointers
(cut, paste, MIDI handling, saving to xml, loading ...). I suspect that
hell will have started to freeze over shortly before it all gets done:-)

> > 
> > > The problem is that Lilyponds perc.-clef behaves like an Alto-Clef, I
> > > guess the reason is arbitrariness.
> > 
> > behaves in what way like an alto clef? Again do you mean that Denemo is
> > thinking it has an alto clef?
> 
> If you work with lilyponds version of the percussion clef notes are placed 
> like in an alto clef, e.g. "c" is on the middle line.
> 

I am not seeing this. I notice that if I write this:


MvmntIVoiceI =  {
          a'4 b' c'' d'' \bar "|."
}



        MvmntIVoiceITimeSig = \time 4/4 
MvmntIVoiceIKeySig = { }
 MvmntIVoiceIClef = { }
 
MvmntIVoiceIProlog = { \MvmntIVoiceITimeSig \MvmntIVoiceIKeySig
\MvmntIVoiceIClef}
MvmntIVoiceIMusic =  {\MvmntIVoiceIProlog \MvmntIVoiceI}
MvmntIVoiceIContext =  {\MvmntIVoiceIMusic}
MvmntIStaffI = << { \new DrumStaff                 \MvmntIVoiceIContext
                }
                >>



\score {
<< <<
\MvmntIStaffI
>>
>>
\layout{
        }
\header{
        }

}


I get all the notes on the middle line of the staff. I suggest you post
the LilyPond you would like to generate.

Richard








reply via email to

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