Re: The problem with midi command delay in 2.14.2

2012-01-07 Thread Michael Pozhidaev
Hello, Keith!

> I don't know any better way to enter dynamics.  I use
>   \midi { context {\Voice \remove "Dynamic_performer" }}
> so that the dynamics errors don't bother me.
>
> We have it listed as a bug, that first appeared in 2.14, but did not seem
> serious enough (compared with the other MIDI bugs) to stop releasing
> 2.14.

Yes, it's almost sad. Although I don't know is it really convenient way
to write additional separate dynamics marks. maybe it is not so bad idea
to have one more entire file for midi only, where dynamics are written among
all notes.

Thanks for information!

-- 
Michael Pozhidaev. Tomsk, Russia.
Russian info page: http://www.marigostra.ru/

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


The problem with midi command delay in 2.14.2

2012-01-07 Thread Michael Pozhidaev
Hi!

After the migration from 2.12.2 up to 2.14.2 I have faced interesting
problem and cannot decide is it a wrong behaviour or everything is OK
and now there is another approach to write separate midi dynamics. In
the snippet below there are four notes. When I generate the midi file
the \p command is applied only to second note when it should to the
first one as it was in 2.12.2. Please, help me, do I write something
wrong?

In midi output and generated with timidity wave file the volume of first
note and second is significantly different. What can cause this problem?
Here is the lilypond snippet and links to the files I've got
after compilation. 

Thanks!

\version "2.14.2"

One = {
  c'4 d'4 e'4 f'4 
}

OneMidi = {
  s4 \p s4 s4 s4
}

\score {
  \new Staff <<
{\One}
{\OneMidi}
  >>
  \midi { }
}

ftp://devel.altlinux.org/msp/tmp/problem.midi

ftp://devel.altlinux.org/msp/tmp/problem.wav

ftp://devel.altlinux.org/msp/tmp/problem.ly

-- 
Michael Pozhidaev. Tomsk, Russia.
Russian info page: http://www.marigostra.ru/

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


Midi output for multiple voices

2010-07-30 Thread Michael Pozhidaev
Hello, everybody!

I've got the problem with midi files generated from scores with
temporary second voice. The notes from second voice already being played
in first one are silently skipped in midi files. Snippet like in
following example:

<< { \voiceOne 2}
\new Voice {\voiceTwo a'8 b'8 a'8 g'8}>>

The b'8 in second voice is not played in midi since it is in the first
voice. 

Please, help me, is there any workaround for this? I am using
lilypond-2.12.2 and timidity-2.13.2.

Thanks!
-- 
Michael Pozhidaev. Tomsk, Russia. E-mail: m...@altlinux.ru
Russian info page: http://www.marigostra.ru/


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


Re: Midi output for multiple voices

2010-07-30 Thread Michael Pozhidaev
Hello, Joseph!

> Not sure if this will work, but it sounds like you need to set up the
> MIDI generation so that it will have one track per voice rather than
> (the default) by staff.
>
> See the snippet in Section 3.5.1 of the Notation Reference:
> http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Creating-MIDI-files#Creating-MIDI-files

Hm, yes, this problem is now solved, but another has appeared. :))

I am using additional simultaneous music block with midi commands to
adjust some playing parameters, tempo, dynamics, etc. This block is used
only in score with midi output, but absent in score for pdf output to
hide additional commands from paper.

Switching to channels per voice makes additional block with midi
commands useless and now I don't know how to mix proper voice playback
with additional midi commands.

Can I define for \sustainOn, \sustainOff, \tempo, \f, \p,... aliases
which are processed only for midi generation, but are ignored in pdf
processing?

Or maybe there is another way?

Thanks!

-- 
Michael Pozhidaev. Tomsk, Russia. E-mail: m...@altlinux.ru
Russian info page: http://www.marigostra.ru/


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


Midi output for multiple voices

2010-07-29 Thread Michael Pozhidaev
Hello, everybody!

I've got the problem with midi files generated from scores with
temporary second voice. The notes from second voice already being played
in first one are silently skipped in midi files. Snippet like in
following example:

<< { \voiceOne 2}
\new Voice {\voiceTwo a'8 b'8 a'8 g'8}>>

The b'8 in second voice is not played in midi since it is in the first
voice. 

Please, help me, is there any workaround for this? I am using
lilypond-2.12.2 and timidity-2.13.2.

Thanks!
-- 
Michael Pozhidaev. Tomsk, Russia. E-mail: m...@altlinux.ru
Russian info page: http://www.marigostra.ru/



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


TeX files in lilypond tree

2009-03-15 Thread Michael Pozhidaev
Hello!

I noticed there are some tex files in lilypond distribution. Should I do
any additional operations to make proper installation of this files?
What is the purpose of this files? Are these files used in
lilypond-book?

TeX is not listed in the runtime requirements for lilypond program,
so as I understand, these files are not used for lilypond main program work.

Thanks!
-- 
Michael Pozhidaev. E-mail: m...@altlinux.ru.
Tomsk State University. http://www.csd.tsu.ru
ALT Linux Team. http://www.altlinux.org



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


make-music function question

2009-01-11 Thread Michael Pozhidaev
Hello!

Please, help me with my own music function creation.
How can I modify music object or create a new one with 
existing music data and add sustain event to it?

If I understand correct, I must use make-music function and  then use
(make-span-event 'SustainEvent START) call to generate sustain event .

Can anybody make short example, what such procedure must contain?
It is my furst music function and I have not any experience with it.
-- 
Michael Pozhidaev. E-mail: m...@altlinux.ru.
Tomsk State University. http://www.csd.tsu.ru
ALT Linux Team. http://www.altlinux.ru



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


Unexpected EVENT_IDENTIFIER in music function

2009-01-10 Thread Michael Pozhidaev
Hello!

If I put the \sustainOff event in music function after variable I
receive the following error message:

:2:13: error: syntax error, unexpected EVENT_IDENTIFIER
\lilyvartmpb 
 \sustainOff \lilyvartmpc \sustainOn

Please, help me. How to write the following function correctly?

tst =
#(define-music-function (parser location note)
(ly:music?)
(ly:music-compress note (ly:make-moment 1 2))
#{
$note \sustainOff $note \sustainOn
#})

Thanks!
-- 
Michael Pozhidaev. E-mail: m...@altlinux.ru.
Tomsk State University. http://www.csd.tsu.ru
ALT Linux Team. http://www.altlinux.ru



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


Divide a note inside of music-define-function

2009-01-08 Thread Michael Pozhidaev
Hello!

Please, help me with music function creation. My function has one
argument to represent one note, how can I get the same note, but with only a 
half of its
original duration?

Of course, the following is completely wrong, but something like:
myfunc =
#(define-music-function (parser location note) (ly:music?)
#{
$note *0.5
#})

Thanks!
-- 
Michael Pozhidaev. E-mail: m...@altlinux.ru.
Tomsk State University. http://www.csd.tsu.ru
ALT Linux Team. http://www.altlinux.ru



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


Strange behavior with piano sustain in midi output

2008-11-25 Thread Michael Pozhidaev
Hello!

Yesterday I have noticed some strange behavior with 
using sustain pedal marks in midi output during the writing piano piece score.
I have removed some code and left just the minimal 
snippet, where this problem appear.

I am not sure, but it seems to me in old lilypond 2.11.0 everything was OK.
In the listing below there are two marks.
In the line under the %%mark1 sustain commands do everything correct,
but in the line under %%mark2 output sounds as there is no sustain.

I have performed some experiments and noticed that this problem disappear 
if  remove \key command. But in large score this removing 
does not make same effect.

Please, say, what is it? Is it a bug? Can I fix this? Currently I am using 
lilypond 2.11.61.
The midi fragment I got with this listing is placed at
ftp://ftp.altlinux.org/pub/people/msp/tmp/fragment.midi
Thanks!

\version "2.11.61"

partOneLeft = {
  \key c \minor
  \time 6/8
  \clef bass

  \tempo 4 = 140

  \partial 4  r4
  es4( g8 4 g8
  4 g2)
  4. f'4( c'8
  f4 as2)
  4. g'4( d'8
  g4 b2)
  c4( es8 g4 c'8
  c2.)
  as4( c'8 4 c'8
  4 c'2)
  f4.( 4.)
  f4.( 4.)
  g4.( 4.)
  g4.( 4.)
  c4( es8 g4 c'8
  c2)
}

partOneLeftMidi = {
  s4
  s4 \ \sustainOn s8 s4 s8
  s4 s2

%%mark1:
  s4. \sustainOff \sustainOn s4 s8
  s4 s2 

%%mark2:
  s4. \sustainOff \sustainOn s4 s8
  s4 s2
  s4 \sustainOff \sustainOn s8 s4 s8
  s2.
  s4 \sustainOff \sustainOn s8 s4 s8
  s4 s2 
  s4. \sustainOff \sustainOn s4.
  s4. s4.
  s4. \sustainOff \sustainOn s4.
  s4. s4.
  s4 s8 s4 s8
  s2 \sustainOff 
}

\score {
  \new PianoStaff <<
\set PianoStaff.instrumentName = "piano"
\new Staff = "lower" << 
  {
\partOneLeft 
  }
  {
\partOneLeftMidi 
  }
>>
  >>
  \midi { }
}
-- 
Michael Pozhidaev. E-mail: [EMAIL PROTECTED]
Tomsk State University. http://www.csd.tsu.ru
ALT Linux Team. http://www.altlinux.ru



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


Additional dynamics for MIDI

2008-06-12 Thread Michael Pozhidaev
Hello, everybody!

Probably, it is a well-known question, but I didn't find an answer in the 
manual at the first look.
Can I specify some additional dynamics for the midi output, but invisible in 
the page layout?

Actually, it would be very useful to have some 
universal dynamics for the layout and midi, some additional dynamics for the 
layout only and 
some additional dynamics for the midi only.

Of course, I can make separate .ly file for the midi output and specify 
required 
dynamics commands in it, but is there a way to do it with one single file?

Thanks!
-- 
With best wishes, Michael. Tomsk, Russia.



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


Place to write piano dynamics

2008-06-08 Thread Michael Pozhidaev
Hello, everybody!

It is my first posting to this list. I am blind programmer from Russia
and music takes a very important part in my life. Lilypond is just brilliant 
software 
for me. Now I can make my own music publications by myself. Great thanks 
to everybody, who made it possible!

There is one thing I cannot understand . In many examples 
notes are not written in "\new Staff" block directly,
but placed in something like 
 upper = \relative c'' {
   \clef treble
   \key c \major
   \time 4/4
   a4 b c d  
 }

What is the advantage of such approach? I am asking,
because in "Piano centered dynamics" example melody and dynamics are written 
separately.
In long composition it can be difficult to
think about a correct place for dynamics.

Are there problems to write melody and dynamics together? And why using special 
blocks 
for melody in most cases is more convenient?

Thanks!
-- 
With best wishes, Michael Pozhidaev.
Tomsk state university, computer science department.
ALTLinux Team.



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