Re: midi2ly

2014-08-09 Thread ole
Am 09.08.2014 um 07:35 schrieb James :

> On 08/08/14 20:37, ole wrote:
>> Hi, 
>> 
>> I just want to import something from a midifile and get the following 
>> errorwarning:
>> 
>> Last login: Sun Aug  3 17:46:40 on console
>> ja?~$ midi2ly rhythms.mid 
>> Traceback (most recent call last):
>> File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 54, 
>> in 
>>   import midi
>> ImportError: 
>> dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
>>  2): no suitable image found.  Did find:
>>  
>> /Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
>>  mach-o, but wrong architecture
>> 
>> 
>> Is that a known issue?
> 
> http://code.google.com/p/lilypond/issues/detail?id=2208
> 
> 
> There is a workaround in there I think.
> 
> James


Thank you, unfortunatly this workaround does not help for Mac OS 10.8.5. (as it 
is also mentioned in the linked thread..

ole
> 


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Midi program channels

2014-08-09 Thread Heikki Tauriainen
Hi,

On Thu, 2014-08-07 at 14:46 -0500, Guy Stalnaker wrote:
> Has anyone given thought to the possibility of having the MIDI
> instrument names correspond to a given soundfont's program
> instruments?
> 
> ...
>
> What would happen if one were to edit midi.scm and remove the
> instrument names as specified and replace them with Inst001, Inst002,
> etc--very generic--which at least makes the kind of mapping I'm
> talking about a bit less odd when MIDIInstrument is shown in the
> lilypond file as "Acoustic Piano" but what sounds is something else
> entirely when the soundfont is not a GM soundfont.

Modifying the instrument names directly in midi.scm's
instrument-names-alist would break compatibility with existing LilyPond
files: changes in MIDI instruments in those files would no longer have
the intended effect because the pre-defined instrument names would have
changed.

However, it could be possible to define an auxiliary mapping from MIDI
program numbers to instrument names, and a helper function to fetch the
instrument name corresponding to a program number by adding the
following lines of code to midi.scm (just before the comment line
starting with "90 == 90/127 == 0.71 is supposed to..."):



(define midi-program-number-to-midi-instrument (make-vector 128))

(letrec ((update-mapping
 (lambda (instrument-list)
   (if (null? instrument-list)
   #t
   (let ((instrument-name (caar instrument-list))
 (midi-program-number (cdar instrument-list)))
 (if (< midi-program-number 128)
 (vector-set! midi-program-number-to-midi-instrument
  midi-program-number
  instrument-name))
 (update-mapping (cdr instrument-list)))
  (update-mapping instrument-names-alist))

(define-public (midi-instrument-from-program-number midi-program-number)
  "Return the name of the instrument corresponding to a program number."

  (if (and (integer? midi-program-number)
   (>= midi-program-number 1)
   (<= midi-program-number 128))
  (vector-ref midi-program-number-to-midi-instrument
  (- midi-program-number 1))
  #f))



The above code will define a "midi-instrument-from-program-number"
function which maps MIDI program numbers (between 1-128; the drum kit
numbers defined in instrument-names-alist are not supported) to their
corresponding General MIDI instrument names.  It could be used in
LilyPond code as follows:



\score {
  \new Staff {
% select "trumpet" as the MIDI instrument using the program number
\set Staff.midiInstrument = #(midi-instrument-from-program-number
57)
a'1
  }
  \midi { }
}



This workaround solution still has the minor inconvenience that LilyPond
will still keep emitting bogus (General MIDI) instrument names to
generated MIDI files on instrument changes in the input.  Fixing this
would probably require changes to the C++ internals.

(I've wondered myself whether the Staff.midiInstrument context property
could be extended to accept both numeric program numbers and string
instrument names, to make using custom sets of MIDI instruments more
convenient, that is, without the need to map program numbers to General
MIDI instrument names.)

Regards,
Heikki

-- 
Heikki Tauriainen



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: midi2ly

2014-08-09 Thread Jacques Menu
Hello Ole,

Can you try:

/usr/bin/arch -x86_64

instead?

JM

Am 09.08.2014 um 10:27 schrieb ole :

> Am 09.08.2014 um 07:35 schrieb James :
> 
>> On 08/08/14 20:37, ole wrote:
>>> Hi, 
>>> 
>>> I just want to import something from a midifile and get the following 
>>> errorwarning:
>>> 
>>> Last login: Sun Aug  3 17:46:40 on console
>>> ja?~$ midi2ly rhythms.mid 
>>> Traceback (most recent call last):
>>> File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 54, 
>>> in 
>>>  import midi
>>> ImportError: 
>>> dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
>>>  2): no suitable image found.  Did find:
>>> 
>>> /Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
>>>  mach-o, but wrong architecture
>>> 
>>> 
>>> Is that a known issue?
>> 
>> http://code.google.com/p/lilypond/issues/detail?id=2208
>> 
>> 
>> There is a workaround in there I think.
>> 
>> James
> 
> 
> Thank you, unfortunatly this workaround does not help for Mac OS 10.8.5. (as 
> it is also mentioned in the linked thread..
> 
> ole
>> 
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Retrograde and inversion clefs

2014-08-09 Thread Peter Bjuhr


On 2014-08-09 00:11, guoguocuozuoduo wrote:

Hi all,

I am working on a piece that uses reversed and inverted clefs which 
indicate retrograde and inversion.
The reversed clef is placed at the end of a line to indicate 
retrograde; the inverted clef is placed before the main clef to 
indicate inversion.


How can I achieve this in Lilypond?

Any help would be much appreciated.

Attached is a picture to demonstrate what I would like to achieve.




Hi,

there are reversed clefs in the SMuFL library (see 
http://www.smufl.org/version/latest/range/clefs/).


(I'm sorry for this incomplete answer. I'll be able to help out more 
tomorrow!)


Best
Peter

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Retrograde and inversion clefs

2014-08-09 Thread Pierre Perol-Schneider
Hi Brian,

2014-08-09 0:11 GMT+02:00 guoguocuozuoduo :

>
> I am working on a piece that uses reversed and inverted clefs which
> indicate retrograde and inversion.
> The reversed clef is placed at the end of a line to indicate retrograde;
> the inverted clef is placed before the main clef to indicate inversion.
>

See enclosed,
HTH,
Pierre


Brian.pdf
Description: Adobe PDF document
\version "2.18.2"

#(define-markup-command (flip layout props arg) (markup?) 
   (interpret-markup layout props
 (markup #:concat (#:null #:scale (cons -1 1) #:line (arg)

myBassEnd = \markup\flip {
  \score {
\new Staff {
  \clef bass
  \key g\major
  \time 2/4
  \hideNotes
  r8
}
\layout { 
  \context {
\Staff
\override KeySignature.sharp-positions = #'((-5 . 5))
  }   
}
  }
}

myMode = #`((0 . ,NATURAL) (1 . ,NATURAL) (2 . ,NATURAL)
(3 . ,NATURAL) (4 . ,SHARP) (5 . ,NATURAL) (6 . ,NATURAL))

myBassStart = \markup\lower #1 {
  \score {
\new Staff {
  \clef baritone
  \key c\myMode
  s
}
\layout { 
  \context {
\Staff
\omit StaffSymbol
\override TimeSignature.stencil = #(lambda (grob) 
  (grob-interpret-markup grob #{ \markup\raise #1 \musicglyph #"clefs.F" #}))
  }
}
  }
}

myTenorEnd = \markup\flip {
  \score {
\new Staff {
  \clef tenor
  \key g\major
  \time 2/4
  \hideNotes
  r8
}
\layout { 
  \context {
\Staff
\override KeySignature.sharp-positions = #'((-5 . 5))
  }   
}
  }
}

myTenorStart = \markup\lower #1 {
  \score {
\new Staff {
  \clef C
  \key c\myMode
}
\layout { 
  \context {
\Staff
\omit StaffSymbol
\override KeySignature.sharp-positions = #'((-5 . 5))
\override TimeSignature.stencil = #(lambda (grob) 
  (grob-interpret-markup grob #{ \markup\raise #1 \musicglyph #"clefs.C" #}))
  }
}
  }
}

\score {
  <<
\new Staff \relative g {
  \clef bass
  \key g\major
  \override Staff.KeySignature.sharp-positions = #'((-5 . 5))
  \time 2/4
  r4
  \repeat volta 2 {
g4 fis e d b c d g,
  }
  r4*1/2 
  \once\override Rest.stencil = #(lambda (grob) 
 (grob-interpret-markup grob myBassEnd))
  \tweak extra-offset #'(-3 . 0) r \bar ""
  \break 
  \once\override Staff.TimeSignature.break-visibility = #end-of-line-invisible
  \once\override Score.Clef.extra-offset = #'(-.8 . 0)
  \once\override Staff.Clef.stencil = #(lambda (grob) 
 (grob-interpret-markup grob myBassStart))
  \time 2/4
  r4
  \repeat volta 2 {
g'4 fis e d b c d g,
  }
}
\new Staff \relative g {
  \clef tenor
  \key g\major
  \override Staff.KeySignature.sharp-positions = #'((-5 . 5))
  \time 2/4
  r4
  \repeat volta 2 {
d4 e fis g b a g d'
  }
  r4*1/2 
  \once\override Rest.stencil = #(lambda (grob) 
 (grob-interpret-markup grob myTenorEnd))
  \tweak extra-offset #'(-3 . 0) r \bar ""
  \break
  \once\override Staff.TimeSignature.break-visibility = #end-of-line-invisible
  \once\override Staff.Clef.stencil = #(lambda (grob) 
(grob-interpret-markup grob myTenorStart))
  \time 2/4
  r4
  \repeat volta 2 {
d,4 e fis g b a g d'
  }
}
  >>
  \layout {
\context {
  \Score
  \omit SystemStartBar
  \omit BarNumber
}
  }
}

%% for snippet only :
#(set-default-paper-size "a6" 'landscape)
\pointAndClickOff
\paper {
  tagline = ##f
  indent = 0
  ragged-right = ##t
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Fwd: midi2ly

2014-08-09 Thread Jacques Menu
Hello Ole,

Dont’t forget to copy the LP user list.

Can you send you .mid file?

JM

Anfang der weitergeleiteten Nachricht:

> Von: ole 
> Betreff: Aw: midi2ly
> Datum: 9. August 2014 11:59:19 MESZ
> An: Jacques Menu 
> 
> Hi Jacques,
> 
> Thanks for your answer.
> 
> You mean like this (first line of the midi2ly file): 
> 
> #!/usr/bin/env /usr/bin/arch -x86_64
> 
> (I'am not very familiar with that things)
> 
> Then, after calling midi2ly file.mid in the terminal, nothing happens at all..
> 
> best
> 
> ole
> 
> 
> 
> Am 09.08.2014 um 11:12 schrieb Jacques Menu :
> 
>> Hello Ole,
>> 
>> Can you try:
>> 
>>  /usr/bin/arch -x86_64
>> 
>> instead?
>> 
>> JM
>> 
>> Am 09.08.2014 um 10:27 schrieb ole :
>> 
>>> Am 09.08.2014 um 07:35 schrieb James :
>>> 
 On 08/08/14 20:37, ole wrote:
> Hi, 
> 
> I just want to import something from a midifile and get the following 
> errorwarning:
> 
> Last login: Sun Aug  3 17:46:40 on console
> ja?~$ midi2ly rhythms.mid 
> Traceback (most recent call last):
> File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 
> 54, in 
> import midi
> ImportError: 
> dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
>  2): no suitable image found.  Did find:
>   
> /Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
>  mach-o, but wrong architecture
> 
> 
> Is that a known issue?
 
 http://code.google.com/p/lilypond/issues/detail?id=2208
 
 
 There is a workaround in there I think.
 
 James
>>> 
>>> 
>>> Thank you, unfortunatly this workaround does not help for Mac OS 10.8.5. 
>>> (as it is also mentioned in the linked thread..
>>> 
>>> ole
 
>>> 
>>> 
>>> ___
>>> lilypond-user mailing list
>>> lilypond-user@gnu.org
>>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>> 
> 
> 
> 

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


lilypond-book and includes

2014-08-09 Thread TaoCG
Dear List,

I'm having trouble using includes with lilypond-book.
When I use \include in the snippet with an absolute path it works but when I
try to include the path with the comand-line option I get an empty staff.

e.g.

\include "/home/user/lily/test.ly"

works, whereas

\include "test.ly"

with

--include=/home/user/lily/

doesn't.

And I don't get an error message, it's just an empty staff.
If I change the \include to a non-existant file I do get an error message.

I use lilypond-book from within lyx if this matters.

So, using absolute paths would be a workaround but I'd much prefer finding a
solution for this to work with --include



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/lilypond-book-and-includes-tp165429.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: midi2ly

2014-08-09 Thread ole
Hi Jacques,

Thanks for your help!

Attached is the .mid file (these are fairly complicated rhythms and I want to 
test if midi2ly can handle them, so maybe even if it will work it will spit out 
some nonsense..)

best

ole





Am 09.08.2014 um 13:20 schrieb Jacques Menu :

> Hello Ole,
> 
> Dont’t forget to copy the LP user list.
> 
> Can you send you .mid file?
> 
> JM
> 
> Anfang der weitergeleiteten Nachricht:
> 
>> Von: ole 
>> Betreff: Aw: midi2ly
>> Datum: 9. August 2014 11:59:19 MESZ
>> An: Jacques Menu 
>> 
>> Hi Jacques,
>> 
>> Thanks for your answer.
>> 
>> You mean like this (first line of the midi2ly file): 
>> 
>> #!/usr/bin/env /usr/bin/arch -x86_64
>> 
>> (I'am not very familiar with that things)
>> 
>> Then, after calling midi2ly file.mid in the terminal, nothing happens at 
>> all..
>> 
>> best
>> 
>> ole
>> 
>> 
>> 
>> Am 09.08.2014 um 11:12 schrieb Jacques Menu :
>> 
>>> Hello Ole,
>>> 
>>> Can you try:
>>> 
>>> /usr/bin/arch -x86_64
>>> 
>>> instead?
>>> 
>>> JM
>>> 
>>> Am 09.08.2014 um 10:27 schrieb ole :
>>> 
 Am 09.08.2014 um 07:35 schrieb James :
 
> On 08/08/14 20:37, ole wrote:
>> Hi, 
>> 
>> I just want to import something from a midifile and get the following 
>> errorwarning:
>> 
>> Last login: Sun Aug  3 17:46:40 on console
>> ja?~$ midi2ly rhythms.mid 
>> Traceback (most recent call last):
>> File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 
>> 54, in 
>> import midi
>> ImportError: 
>> dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
>>  2): no suitable image found.  Did find:
>>  
>> /Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
>>  mach-o, but wrong architecture
>> 
>> 
>> Is that a known issue?
> 
> http://code.google.com/p/lilypond/issues/detail?id=2208
> 
> 
> There is a workaround in there I think.
> 
> James
 
 
 Thank you, unfortunatly this workaround does not help for Mac OS 10.8.5. 
 (as it is also mentioned in the linked thread..
 
 ole
> 
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user
>>> 
>> 
>> 
>> 
> 



rhythms.mid
Description: MIDI audio
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book and includes

2014-08-09 Thread James

On 09/08/14 13:50, TaoCG wrote:

Dear List,

I'm having trouble using includes with lilypond-book.
When I use \include in the snippet with an absolute path it works but when I
try to include the path with the comand-line option I get an empty staff.

e.g.

\include "/home/user/lily/test.ly"

works, whereas

\include "test.ly"

with

--include=/home/user/lily/

doesn't.

And I don't get an error message, it's just an empty staff.
If I change the \include to a non-existant file I do get an error message.

I use lilypond-book from within lyx if this matters.

So, using absolute paths would be a workaround but I'd much prefer finding a
solution for this to work with --include




http://code.google.com/p/lilypond/issues/detail?id=4046

?

Note that this issue is currently going through the normal patch 
process, so if this is your issue and there is no suitable workaround in 
the threads mentioned then it will probably be in the code in the next 
week if not in an official unstable release.


James

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: midi2ly

2014-08-09 Thread Jacques Menu
Hello Ole,

I get that too on Mac OS X 10.9.4:

m...@dynamic.wline.6rd.res.cust.swisscom.ch:/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python
 > ls -sal
total 96
 0 drwxr-xr-x@ 3 menu  admin102 Mar 17 17:23 .
 0 drwxr-xr-x@ 3 menu  admin102 Mar 17 17:23 ..
96 -rw-r--r--@ 1 menu  admin  48600 Mar 17 17:23 midi.so

m...@dynamic.wline.6rd.res.cust.swisscom.ch:/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python
 > file midi.so 
midi.so: Mach-O bundle i386


So LP 18.2 provides only a 32bit (i386) version of midi.so, and our recent 
versions of OS X are 64 bits:

m...@dynamic.wline.6rd.res.cust.swisscom.ch:~/Documents/LaTeX/PartitionsLilypond
 > uname -a
Darwin dynamic.wline.6rd.res.cust.swisscom.ch 13.3.0 Darwin Kernel Version 
13.3.0: Tue Jun  3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 
x86_64


I’m afraid I can’t help more there…

JM


Am 09.08.2014 um 14:45 schrieb ole :

> Hi Jacques,
> 
> Thanks for your help!
> 
> Attached is the .mid file (these are fairly complicated rhythms and I want to 
> test if midi2ly can handle them, so maybe even if it will work it will spit 
> out some nonsense..)
> 
> best
> 
> ole
> 
> [siehe angehängte Datei: rhythms.mid]
> 
> 
> 
> Am 09.08.2014 um 13:20 schrieb Jacques Menu :
> 
>> Hello Ole,
>> 
>> Dont’t forget to copy the LP user list.
>> 
>> Can you send you .mid file?
>> 
>> JM
>> 
>> Anfang der weitergeleiteten Nachricht:
>> 
>>> Von: ole 
>>> Betreff: Aw: midi2ly
>>> Datum: 9. August 2014 11:59:19 MESZ
>>> An: Jacques Menu 
>>> 
>>> Hi Jacques,
>>> 
>>> Thanks for your answer.
>>> 
>>> You mean like this (first line of the midi2ly file): 
>>> 
>>> #!/usr/bin/env /usr/bin/arch -x86_64
>>> 
>>> (I'am not very familiar with that things)
>>> 
>>> Then, after calling midi2ly file.mid in the terminal, nothing happens at 
>>> all..
>>> 
>>> best
>>> 
>>> ole
>>> 
>>> 
>>> 
>>> Am 09.08.2014 um 11:12 schrieb Jacques Menu :
>>> 
 Hello Ole,
 
 Can you try:
 
/usr/bin/arch -x86_64
 
 instead?
 
 JM
 
 Am 09.08.2014 um 10:27 schrieb ole :
 
> Am 09.08.2014 um 07:35 schrieb James :
> 
>> On 08/08/14 20:37, ole wrote:
>>> Hi, 
>>> 
>>> I just want to import something from a midifile and get the following 
>>> errorwarning:
>>> 
>>> Last login: Sun Aug  3 17:46:40 on console
>>> ja?~$ midi2ly rhythms.mid 
>>> Traceback (most recent call last):
>>> File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", line 
>>> 54, in 
>>> import midi
>>> ImportError: 
>>> dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
>>>  2): no suitable image found.  Did find:
>>> 
>>> /Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
>>>  mach-o, but wrong architecture
>>> 
>>> 
>>> Is that a known issue?
>> 
>> http://code.google.com/p/lilypond/issues/detail?id=2208
>> 
>> 
>> There is a workaround in there I think.
>> 
>> James
> 
> 
> Thank you, unfortunatly this workaround does not help for Mac OS 10.8.5. 
> (as it is also mentioned in the linked thread..
> 
> ole
>> 
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
 
>>> 
>>> 
>>> 
>> 
> 
> 

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Reduce vertical space between \score's?

2014-08-09 Thread Janek Warchoł
2014-08-08 19:44 GMT+02:00 PMA :
> P.S.  I should ask alternatively: Is there a way that
> "proportionalNotationDuration...make-moment..."
> can be reset _per system_ (assuming now a multi-
> system \score)?

As Abraham wrote, you should use \newSpacingSection:

\score {
  <<
\new RhythmicStaff {
  \set Score.proportionalNotationDuration = #(ly:make-moment 1/20)
  c2 16 16 16 16 \tuplet 5/4 { 16 16 16 16 16 }
  \newSpacingSection
  \set Score.proportionalNotationDuration = #(ly:make-moment 1/30)
  c2 16 16 16 16 \tuplet 5/4 { 16 16 16 16 16 }
}
  >>
}

hth,
Janek

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book and includes

2014-08-09 Thread TaoCG
Thanks, I tried the mentioned workaround but apparently this isn't the
problem.
Its not that the included file is not found. As I said, if I specify a
non-existant file with \include while using --include I get an error that
file is not found, but when I put the correct filename I get an empty staff
instead of the desired output.

The file I want to include contains some custom drum-definitions.
I post it, maybe someone can try to reproduce the problem.

### file to include: bata-def.ly ###
#(define (place-rests rest)
 (let* ((sp 0))
 (if
  (eq? (ly:grob-property-data rest 'duration-log) 1)
  (set! sp -2))
 sp))

drumPitchNames =
#'((enuopen . enuopen)
   (enumuff . enumuff)
   (chacha . chacha)
   (en . enuopen)
   (em . enumuff)
   (ch . chacha))

#(define bata-style
 '(
  (enuopen () #f -2)
  (enumuff cross #f -2)
  (chacha () #f 2)))

\layout {
\context {
\DrumStaff
\name BataStaff
drumStyleTable = #(alist->hash-table bata-style)
\override StaffSymbol.line-positions = #'(-2 2)
\override Rest.staff-position = #place-rests
\override TimeSignature.style = #'numbered
\override Stem.direction = #1
}
\context {
\StaffGroup
\accepts BataStaff
}
}


### actual snippet ###
\include "bata-def.ly"

okonkolo = \drummode {
eo2 ch
}

\score {
\new StaffGroup
<<
\time 4/4
\new BataStaff \okonkolo
>>
}



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/lilypond-book-and-includes-tp165429p165435.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book and includes

2014-08-09 Thread TaoCG
There was an error in the snippet I posted.
This is correct:

### snippet ###
okonkolo = \drummode {
en2 ch
}

\score {
\new StaffGroup
<<
\time 4/4
\new BataStaff \okonkolo
>>
}



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/lilypond-book-and-includes-tp165429p165436.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Fwd: Re: Lilypond Python on Windows

2014-08-09 Thread Han-Wen Nienhuys
this somehow got stuck in my inbox

-- Doorgestuurd bericht --
Van: "J Dorocak" 
Datum: 8 jul. 2014 18:39
Onderwerp: Re: Lilypond Python on Windows
Aan: 
Cc:

 Dear Han-Wen,



I recently installed Lilypond & Frescobaldi on Windows XP. Now my web2py
installation is broken because *.py is associated with ‘C:\Program
Files\LilyPond\usr\bin\python.exe’ as opposed to
 'C:\\Python27\\python.exe'.



Here is my question.



Is this association required to run Lilypond & Frescobaldi?



Thanks for the help.



Love and peace,



Joe





Joe Dorocak, aka joecodesw...@gmail.com

j_doro...@comcast.net
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book and includes

2014-08-09 Thread TaoCG
Ok, I solved it. It's still strange though.
The problem lay in the included file at this part:

drumPitchNames =
#'((enuopen . enuopen)
   (enumuff . enumuff)
   (chacha . chacha)
   (en . enuopen)
   (em . enumuff)
   (ch . chacha)) 

When I rename the 'em'-shortcut to 'ef' it works.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/lilypond-book-and-includes-tp165429p165438.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-book and includes

2014-08-09 Thread David Kastrup
TaoCG  writes:

> Dear List,
>
> I'm having trouble using includes with lilypond-book.
> When I use \include in the snippet with an absolute path it works but when I
> try to include the path with the comand-line option I get an empty staff.
>
> e.g.
>
> \include "/home/user/lily/test.ly"
>
> works, whereas
>
> \include "test.ly"
>
> with
>
> --include=/home/user/lily/
>
> doesn't.
>
> And I don't get an error message, it's just an empty staff.
> If I change the \include to a non-existant file I do get an error message.

Check whether there is some "test.ly" within LilyPond's tree for you.
Maybe you left one there yourself at some point of time, and that is
getting earlier in the search path than your /home/user/lily/test.ly.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user