Re: Moving a volta bracket vertically

2008-04-28 Thread Risto Vääräniemi
Dear Sven,

2008/4/27 Sven Axelsson :
  Could someone please tell
  me what the current way of moving the volta brackets down, possibly
  overlapping the music, would be?

I've been wondering that, too, but I've found no magic bullet so far.
Sometimes I have used extra-offset to lower the VoltaBracket to the
desired level. That, however, takes place after the spacing
calculations have already been made. On tightly set pages this is not
good.

Another way is to use Y-extent and minimum-Y-extent. In this case you
have to calculate (test) the right values for the Y extent and the
height of the bracket. The upside is that this way the spacing
calculations should be correct. See the example.

Question:
Could VoltaBracket be changed in such a way that it would sense the
skyline and lower itself closer to the staff if the stuff would not
collide with the bracket or the volta number?

-Risto



\version 2.11.43

\paper
{
ragged-right = ##t
}

\relative c'
{
\override Score.VoltaBracket #'edge-height = #'(3.0 . 3.0)
\override Score.VoltaBracket #'Y-extent = #'(0 . 0.0)
\override Score.VoltaBracket #'minimum-Y-extent = #'(-0.35 . 0.0)

\repeat volta 2 {
c1
}\alternative {{
c2 c^\f
}{
c2 c \bar |.}}
}

attachment: lowering_volta_bracket.png___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Moving a volta bracket vertically

2008-04-28 Thread Mats Bengtsson
The common alignment of the different endings is now handled by the 
VoltaBracketSpanner

object, so to move the brackets vertically, you can use
\override Score.VoltaBracketSpanner #'padding = #3  % Default = 1.0

However, if you want to lower it, then you could do as Risto propose, 
namely to
modify the Y-extent value, but perhaps it makes more sense to do the 
setting on

VoltaBracketSpanner instead of VoltaBracket:

\override Score.VoltaBracketSpanner #'Y-extent = #'(0 . 0)

  /Mats

Risto Vääräniemi wrote:

Dear Sven,

2008/4/27 Sven Axelsson :
  

 Could someone please tell
 me what the current way of moving the volta brackets down, possibly
 overlapping the music, would be?



I've been wondering that, too, but I've found no magic bullet so far.
Sometimes I have used extra-offset to lower the VoltaBracket to the
desired level. That, however, takes place after the spacing
calculations have already been made. On tightly set pages this is not
good.

Another way is to use Y-extent and minimum-Y-extent. In this case you
have to calculate (test) the right values for the Y extent and the
height of the bracket. The upside is that this way the spacing
calculations should be correct. See the example.

Question:
Could VoltaBracket be changed in such a way that it would sense the
skyline and lower itself closer to the staff if the stuff would not
collide with the bracket or the volta number?

-Risto



\version 2.11.43

\paper
{
ragged-right = ##t
}

\relative c'
{
\override Score.VoltaBracket #'edge-height = #'(3.0 . 3.0)
\override Score.VoltaBracket #'Y-extent = #'(0 . 0.0)
\override Score.VoltaBracket #'minimum-Y-extent = #'(-0.35 . 0.0)

\repeat volta 2 {
c1
}\alternative {{
c2 c^\f
}{
c2 c \bar |.}}
}

  






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


--
=
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: How to stack scripts and textscripts?

2008-04-28 Thread Mats Bengtsson

Why not typeset all of them with a single \markup:
c^\markup{\column {\natural \musicglyph #scripts.turn \flat }}

  /Mats

Peter Chubb wrote:

Hi,
I'm trying to set a turn symbol with a natural sign over it
and a flat sign under it.  I tried:
c''^\markup{\natural}^\turn^\markup{\flat}
but the natural and flat signs always turn up next to each other,
and the turn is above both.  Any ideas?  Playing with script-priority
moves both accidentals, not just one, even with \once.

--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au   ERTOS within National ICT Australia


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


--
=
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: How to stack scripts and textscripts?

2008-04-28 Thread Trevor Daniels


Hi Peter

This is a case where \tweak is needed.  All these markups occur at the same 
musical moment, so \override affects them all.  Also the property to change 
is 'outside-staff-priority.  This does what you want:


{
 c''
 -\tweak #'outside-staff-priority #200
 ^\markup{\natural}
 -\tweak #'outside-staff-priority #100
 ^\turn
 -\tweak #'outside-staff-priority #0
 ^\markup{\flat}
}

Trevor
- Original Message - 
From: Peter Chubb [EMAIL PROTECTED]

To: lilypond-user@gnu.org
Sent: Monday, April 28, 2008 6:03 AM
Subject: How to stack scripts and textscripts?




Hi,
I'm trying to set a turn symbol with a natural sign over it
and a flat sign under it.  I tried:
c''^\markup{\natural}^\turn^\markup{\flat}
but the natural and flat signs always turn up next to each other,
and the turn is above both.  Any ideas?  Playing with script-priority
moves both accidentals, not just one, even with \once.

--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT 
gelato.unsw.edu.au
http://www.ertos.nicta.com.au   ERTOS within National ICT 
Australia



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





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


Re: Problem with midi2ly

2008-04-28 Thread Mats Bengtsson
This looks very strange. I just tried midi2ly on Windows XP using 
version 2.11.44 the other

day, and couldn't see any such problems.
I seems to recall some problems when running LilyPond in a working 
directory that's on
another disk than the LilyPond installation. Could you please try  if it 
works when you

are on C: instead of D:.

Do you have any other installation of Python on your computer (it 
shouldn't matter, normally,

but you never know)?

However, you may also want to read my general comments on midi2ly at
http://lists.gnu.org/archive/html/lilypond-user/2007-12/msg00234.html
before spending too much effort on the issue. On the other hand, if you
want to exercise your programming skills, trying to make midi2ly more
useful and robust could be an excellent exercise.

   /Mats

Rafa del Campo wrote:

Hello

I have a problem when I type midi2ly albeniz.mid:

D:\midi2ly albeniz.mid
Traceback (most recent call last):
  File C:\Archivos de programa\LilyPond\usr\bin\midi2ly.py, line 51, in 
module

import midi
ImportError: No module named midi

But I have in the same directory midi.dll.


Where can I find especific documentation about midi2ly???


Thanks



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


--
=
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: strange problem of variable definition and more error messages

2008-04-28 Thread Mats Bengtsson



hhpmusic wrote:


Hi,
I just finished typesetting one of my very early piece. I want to ease 
the writing when every time using Chinese font ile simfang.ttf, so I 
put an override font-name line in mydefs.ly. I have defined lots of 
things used very often in this file. But the log file says this 
override is wrong. When I used it from time to time in my input file, 
it's correct Please tell me how to do that?


Unfortunately, you cannot define a macro for the markup command in this 
way.
Since the property setting should apply to the following markup, the 
macro has to

be implemented as a new markup command, using the programming interface:
#(define-markup-command (simfang layout props arg) (markup?)
(interpret-markup layout (prepend-alist-chain 'font-name 仿宋_GB2312 
props) arg))



BTW, the log file gives a lot of warnings of cannot find start of 
(de)crescendo, but all of my \cresc and \dim has corresponding \! 
signs. There is also a programming error for midi output, which 
confused me very much! Why?


I haven't had the time to investigate why this happens. I just noted 
that you get the same
warnings also if you include the dynamics in a normal Voice context, so 
it's not the Dynamics
context that's the culprit. Unfortunately, warnings like cannot find 
start of (de)crescendo usually

mean that the corresponding dynamics are lost in the output.

/Mats


SINCERELY
Haipeng




免费鸡翅比萨天天抽 http://popme.163.com/link/004062_0424_7216.html


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


--
=
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: two problems

2008-04-28 Thread Mats Bengtsson
Itried to unpack the 2.11.44 tarball in Windows using 7-zip, 
http://www.7-zip.org/ and
it worked well (apart from the duplicated files, which I will send a 
separate bug report on).
Perhaps there was some error in the file transfer that caused your 
problems.


For the language of the printouts, check if you have the environment 
variable LANG
(or some other environment variable that seems to be related to language 
settings)

set in your Windows installation.

/Mats

hhpmusic wrote:


Hi,
I encountered two problems when using Lilypond on Windows. First, the 
2.11.44 documentation tarball seems have problms. I don't know how to 
build bz2 file using Windows, my way is to unpack the files to a doc 
folder using Winrar. But the tarball (from the time I began to learn 
Lily) always has some files duplicated in name, which causes the 
program asks for rename or ignore from time to time. The tarball this 
time I got has even serious problem which cause Winrar stops to 
unpack, saying reading error. Please tell me how to build this tarball 
correctly?
Second, Lilypad always display Chinese characters in a corrupted code. 
Can I find a way to let it just display English rather than the 
language my computer's platform is using?


REGARDS
Haipeng




??QQ?? http://popme.163.com/link/004062_0416_4599.html


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


--
=
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: How to stack scripts and textscripts?

2008-04-28 Thread Mats Bengtsson



Peter Chubb wrote:

Mats == Mats Bengtsson [EMAIL PROTECTED] writes:



Mats Why not typeset all of them with a single \markup:
Mats c^\markup{\column {\natural \musicglyph #scripts.turn \flat }}

Because then there's no \turn articulation in the EventChord
structure, so my Midi interpreter doesn't do anything.
  
OK! Then you have an excellent reason to use the more complicated \tweak 
solution.




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


Re: In octaves

2008-04-28 Thread Jonathan Kulp
Bravo Jay!!  It works flawlessly!!  The commas and single quotes work 
perfectly in the \relative blocks and the cautionary accidentals also 
work properly now.  Thanks so much for your persistence on this as I 
don't have the programming wherewithal to do it myself.  This is an 
*awesome* tool.  Thanks!!! :-)


Jon

Jay Anderson wrote:

Let me know how it works!


A couple more changes:

#(define (octave-up m t)
  (let* ((octave (1- t))
(new-note (ly:music-deep-copy m))
(new-pitch (ly:make-pitch
  octave
  (ly:pitch-notename (ly:music-property m 'pitch))
  (ly:pitch-alteration (ly:music-property m 'pitch)
(set! (ly:music-property new-note 'pitch) new-pitch)
new-note))

#(define (octavize-chord elements t)
 (cond ((null? elements) elements)
   ((eq? (ly:music-property (car elements) 'name) 'NoteEvent)
 (cons (car elements)
   (cons (octave-up (car elements) t)
 (octavize-chord (cdr elements) t
   (else (cons (car elements) (octavize-chord (cdr elements ) t)

#(define (octavize music t)
 (let* ((es (ly:music-property music 'elements))
(e (ly:music-property music 'element))
(name (ly:music-property music 'name)))
   (cond ((eq? name 'EventChord)
  (ly:music-set-property! music 'elements (octavize-chord es t)))
 ((pair? es)
  (for-each (lambda(x) (octavize x t)) es))
 ((ly:music? e)
  (octavize e
 music)

octaves = #(define-music-function (parser location arg mus) (integer? ly:music?)
 (octavize mus arg))

Now you can do silly things like: \relative c'{ \octaves #2 {c d e f'
g,,} } and it will make the new note two octaves up. I'm not sure why
you'd want that, but it seemed easy enough to do (and takes slightly
less code).

-Jay



--
Jonathan Kulp
http://www.jonathankulp.com


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


Rest and bar measures problems with midi2ly

2008-04-28 Thread Rafa del Campo
Hello,

I have a problem with midi2ly. When I save a midi file in Sibelius, and then I 
invoke midi2ly, the translation is ok. But when I record a midi file with my 
piano and another program I have problem with rests and the bar measures. What 
can I do?? What files do I have to modify to improve midi2ly


Thanks 





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


Adding notes above drumstaff

2008-04-28 Thread Aaron Morse
Hi everyone -

I'm stuck with an issue here. I'm trying to get proper kicks over time 
notation in lilypond -- essentially small, normal noteheads above a drum staff 
(where g would be in treble clef). I'm afraid I'm not sure how to go about 
this. . .and my attempts to alter the cymr notehead to be a regular notehead 
haven't worked. Is there a simple way to do this that I'm missing?

Thanks,
Aaron


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Adding notes above drumstaff

2008-04-28 Thread Kieren MacMillan

Hi Aaron,


I'm stuck with an issue here.


Do you have a scan/screenshot/picture of what you're looking for?
I can't really picture it... and so I won't be able to help much.

Cheers,
Kieren.


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


Re: Adding notes above drumstaff

2008-04-28 Thread Aaron Morse
Hi -

Unfortunately, I don't have anything on the computer as I can't get this to 
work and my scanner is broken. . .

See if I can explain better. . .

I want to be able to place something like:

\relative c'' {

g'4 g8 g8 g4. g8

}

Into a drum-staff, to show a rhythm above the staff. At first I thought of 
changing the notehead of one of the cymbals to a regular notehead, but I can't 
seem to figure out how to do that. g4 of course won't display in a 
drum-voice/staff.

Thanks,
Aaron

 ---
There is no good or evil, there is only the flute -- and those too weak to play 
it.



- Original Message 
From: Kieren MacMillan [EMAIL PROTECTED]
To: Aaron Morse [EMAIL PROTECTED]
Cc: lilypond-user@gnu.org
Sent: Monday, April 28, 2008 1:23:13 PM
Subject: Re: Adding notes above drumstaff

Hi Aaron,

 I'm stuck with an issue here.

Do you have a scan/screenshot/picture of what you're looking for?
I can't really picture it... and so I won't be able to help much.

Cheers,
Kieren.



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Adding notes above drumstaff

2008-04-28 Thread Philippe Hezaine

Aaron Morse a écrit :


I want to be able to place something like:

\relative c'' {

g'4 g8 g8 g4. g8

}

Into a drum-staff, to show a rhythm above the staff. At first I 
thought of changing the notehead of one of the cymbals to a regular 
notehead, but I can't seem to figure out how to do that. g4 of course 
won't display in a drum-voice/staff.


Thanks,
Aaron


Hi Aaron,

 I'm stuck with an issue here.

Do you have a scan/screenshot/picture of what you're looking for?
I can't really picture it... and so I won't be able to help much.
Cheers,
Kieren.
I attach a little template I use sometimes with an example inside. 
(\version 2.10.33)
May be you can define one pitch from the list which is an extract of 
drumpitch-init.ly

Here i've changed the guiro   ( = gui  )
You haven't to keep all the list. Only the pitch you choose.
Or you make a separate file and put an \include in your work.
Hope this helps

Phil.

\version 2.10.33
 % \include /usr/share/lilypond/2.10.33/ly/drumpitch-init.ly
% \include /home/.../0-mydrums-style.ly
% \include /home/.../0-mypercussions-style.ly

\header {
  title =  
  }

#(define mydrums-style '(

  (acousticbassdrum () #f -3)
  (bassdrum () #f -3)
  (sidestick cross #f 1)
  (acousticsnare () #f 1)
  (snare () #f 1)
  (handclap triangle #f 1)
  (electricsnare () #f 1)
  (lowfloortom () #f -4)
  (closedhihat cross stopped 3)
  (hihat cross #f 3)
  (highfloortom () #f -2)
  (pedalhihat cross #f -5)
  (lowtom () #f -1)
  (openhihat cross open 3)
  (halfopenhihat xcircle #f 3)
  (lowmidtom () #f 0)
  (himidtom () #f 2)
  (crashcymbala xcircle #f 5)
  (crashcymbal xcircle #f 5)
  (hightom () #f 4)
  (ridecymbala cross #f 5)
  (ridecymbal cross #f 5)
  (chinesecymbal mensural #f 5)
  (ridebell () #f 5)
  (tambourine () #f 6)
  (splashcymbal diamond #f 5)
  (cowbell triangle #f 5)
  (crashcymbalb cross #f 5)
  (vibraslap diamond #f 4)
  (ridecymbalb cross #f 5)
))

#(define mypercussions-style '(

  (tambourine () #f 6)

  (lobongo () #f -1)
  (openlobongo () open -1)
  (mutelobongo () stopped -1)
  (hibongo () #f 1)
  (openhibongo () open 1)
  (mutehibongo () stopped 1)

  (loconga () #f -2)
  (openloconga () open -1)
  (muteloconga () stopped -1)
  (hiconga () #f 2)
  (openhiconga () open 2)
  (mutehiconga () stopped 2)

  (hitimbale () #f 1)
  (lotimbale () #f -1)
  (hiagogo () #f 1)
  (loagogo () #f -1)
  (cabasa cross #f 6)
  (maracas cross #f 0)
  (shortwhistle cross staccato -2)
  (longwhistle cross  tenuto -2)
  (shortguiro cross staccato -4)
  (longguiro cross tenuto -4)
  (guiro cross #f 12)
  (cowbell triangle #f 5)
  (claves diamond #f 0)
  (hiwoodblock () #f -3)
  (lowoodblock () #f -4)
  (mutecuica diamond open 1)
  (opencuica diamond stopped 1)
  (triangle cross #f 0)
  (opentriangle cross open 0)
  (mutetriangle cross stopped 0)
))

pulseone = \drummode { 
  \time 4/4 
  \tempo 4 = 120 
bd 1
}

pulsetwo = \drummode { 
  \time 4/4 
  \tempo 4 = 120 
boh 1
}

pulsethree = \drummode { 
  \time 4/4 
  \tempo 4 = 120 
gui 1 % it's the changed pitch
}

%
 
 \score {

  \new DrumStaff \with {
drumStyleTable =  #(alist-hash-table mydrums-style)
\override DrumStaff #'TimeSignature #'style = #'()
  } 
\set Staff.instrumentName = Drums
\override Score.MetronomeMark #'extra-offset = #'(-10 . 2.5)
\pulseone
  
  \new DrumStaff \with { 
drumStyleTable = #(alist-hash-table mypercussions-style)
  }
  
\set Staff.instrumentName =  \markup{ \column {Bongos
\line {Congas} } \hspace #1.0 }
\new DrumVoice { \pulsetwo }
\override DrumStaff.VerticalAxisGroup #'minimum-Y-extent = #'(-8  . 8 )
  
   \new DrumStaff \with { 
drumStyleTable = #(alist-hash-table mypercussions-style)
  }
  
\set Staff.instrumentName =  \markup{ \column {Percussions
\line {diverses} } \hspace #1.0 }
\new DrumVoice { \pulsethree }
\override DrumStaff.VerticalAxisGroup #'minimum-Y-extent = #'(-5  . 5 )
  



  \layout {}

  \midi {
\context {
  \Score
  tempoWholesPerMinute = #(ly:make-moment 120 4)
  }
}


}
 

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


Re: Rest and bar measures problems with midi2ly

2008-04-28 Thread Valentin Villenave
2008/4/28 Rafa del Campo [EMAIL PROTECTED]:

  I have a problem with midi2ly. When I save a midi file in Sibelius, and then 
 I
  invoke midi2ly, the translation is ok. But when I record a midi file with my
  piano and another program I have problem with rests and the bar measures. 
 What
  can I do?? What files do I have to modify to improve midi2ly

Greetings,

this problems must come from the program you're using to record your
music (tempo settings, for example?).
If you can post a short example from the LilyPond code you get, we may
be able to help you.

If you know Python programming language, you can also have at the file
midi2ly.py, in your LilyPond installation folder.

Cheers,
Valentin


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


Re: Rest and bar measures problems with midi2ly

2008-04-28 Thread Rafa del Campo
Valentin Villenave v.villenave at gmail.com writes:

 Greetings,
 
 this problems must come from the program you're using to record your
 music (tempo settings, for example?).
 If you can post a short example from the LilyPond code you get, we may
 be able to help you.
 
 If you know Python programming language, you can also have at the file
 midi2ly.py, in your LilyPond installation folder.
 
 Cheers,
 Valentin

Hi

A example of LilyPond code I get:

--
% Lily was here -- automatically converted by C:\Archivos de 
programa\LilyPond\usr\bin\midi2ly.py from output.mid
\version 2.7.18


trackAchannelA =  {
  
  \tempo 4 = 60 
  
  \time 4/4 
  

  \key g \major
  
}

trackAchannelB = \relative c {
  s4*143/24 c'32*5 s32*11 c'4*31/24 s8. g'4*32/24 s4*16/24 |
  % 4
  g,4*7/24 s4*17/24 e4*7/24 s4*16/24 c16 
}

trackA = 
  \context Voice = channelA \trackAchannelA
  \context Voice = channelB \trackAchannelB



trackBchannelA =  {
  
  \tempo 4 = 60 
  
  \time 4/4 
  

  \key g \major
  
}

trackBchannelB = \relative c {
  s4*97/24 c4*5/24 s4*257/24 g'4*5/24 s8. c,4*88/24 
}

trackB = 

  \clef bass
  
  \context Voice = channelA \trackBchannelA
  \context Voice = channelB \trackBchannelB



\score {
  
\context Staff=trackA \trackA
\context Staff=trackB \trackB
  
}


 
When I open with Sibelius the file I have recorded in my program the rests and 
figure measures is ok. 


Only I have to modify midi2ly.py?? 



Thanks




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


Re: Rest and bar measures problems with midi2ly

2008-04-28 Thread Valentin Villenave
2008/4/28 Rafa del Campo [EMAIL PROTECTED]:

   \tempo 4 = 60
   \time 4/4

   s4*143/24 c'32*5 s32*11 c'4*31/24 s8. g'4*32/24 s4*16/24 |

Looks like a problem of tempo/quantization to me. I don't know midi2ly
at all (I haven't ever used it actually), but I believe there are
people on this list who can (and will) help you...

What software did you use to record this as a MIDI file?

Cheers,
Valentin


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


Re: Looking inside markup

2008-04-28 Thread Peter Chubb
 Peter == Peter Chubb [EMAIL PROTECTED] writes:

Peter On my quest for better MIDI, I'm trying to deal with
Peter alterations on a turn.  How do I look `inside' a markup
Peter sequence?

Peter What I've tried is: 
Peter (let* ((t (ly:music-property e 'text)))
Peter   (cond 
Peter  ((equal? t (markup #:line (#:flat))) 
Peter   (set! alteration -1/2)) 
Peter  ((equal? t (markup #:line (#:sharp))) 
Peter   (set! alteration 1/2

Peter but this never matches.

Turns out that the scheme function (markup ...) always adds an 
extra #:line  so what I should try to match against is (markup #:flat)
Then it works.
--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au   ERTOS within National ICT Australia


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