Re: understanding midi files

2014-01-27 Thread Johan Vromans
k...@aspodata.se writes:

>> > IOError: [Errno 2] No such file or directory: 'aeiou.mid'
>
> $ ls -l aeiou.mid 
> -rw--- 1 karl users 9760 Jan 27 10:44 aeiou.mid

To eliminate some odds, try passing the file using a complete path, e.g.

  $ lilymidi --pretty `pwd`/aeiou.mid

-- Johan

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


RE: Rolled Chord

2014-01-27 Thread Mark Stephen Mrotek
Ed,

 

Thank you for your reply.

Taking your suggestion, I found it at

http://www.lilypond.org/doc/v2.17/Documentation/notation/writing-rhythms#tie
s

 

Mark

 

From: Ed Gordijn [mailto:ed.klari...@gmail.com] 
Sent: Monday, January 27, 2014 8:11 PM
To: Mark Stephen Mrotek
Subject: RE: Rolled Chord

 


Hi Mark,

> > What term should be used to search the manual for instructions for
> creating the rolled chord in the attachment?
>
> tieWaitForNote
>
> Hope this helps!
> Kieren

It's in the manual go tot the section where ties are explained and look in
the section: Using ties with arpeggios

Or search for: tieWaitForNote

Greetings, Ed

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


Re: Auto-panner

2014-01-27 Thread Vaughan McAlley
On 28 January 2014 07:07, Jan-Peter Voigt  wrote:

> On 27.01.2014 20:51, David Kastrup wrote:
> >> What about a closure?
> > Won't be able to distinguish being called another time from the same
> > output (\layout, \midi, \musicxml (this one's hypothetical yet),
> > \addQuote...) or the next one.
> of course not ... I see Vaughans idea as a first draft ... and now he's
> able to use it in a global variable.
>
>
Thanks Jan-Peter& David. Yes, what I submitted above was very much a draft,
as I had got as far as I could by myself. I suspected I would learn more
than just how to put it in \global, for example:

> Why define-scheme-function when returning music?

> Perhaps this function had another meaning in the first place?

Yes, that. Plus me being a complete Guile-noob :-)

I’m getting a much better idea of how Lilypond code interacts with Scheme
now. So even though music is a Scheme value, define-music-function is
optimized for returning music and would work better in corner cases?

> But for a more robust implementation, there need to be score-level
context-properties - perhaps an engraver. We'll see later ;)

90% of the music I work with is one staff to a part, eg renaissance choir
music or chamber music, so personally I don’t need much robustness. For
listening to renaissance music I set all voices to clarinet (artificial,
not sampled) with the panning spread. It lets me hear all the parts and
identify which part a problem might be in.

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


RE: Rolled Chord

2014-01-27 Thread Mark Stephen Mrotek
Kieren,

Thank you for your reply.
My limited experience with the computer language for commands suggests two
things.
1. The command requires a " = t."  It should be tieWaitForNote = t.
2. Commands can contain other symbols, "\," " ' (apostrophe), " and " #. "
Should any of these be included.

Mark

-Original Message-
From: Kieren MacMillan [mailto:kieren_macmil...@sympatico.ca] 
Sent: Monday, January 27, 2014 4:23 PM
To: Mark Stephen Mrotek
Cc: Lilypond-User Mailing List
Subject: Re: Rolled Chord

Hi Mark,

> What term should be used to search the manual for instructions for
creating the rolled chord in the attachment?

tieWaitForNote

Hope this helps!
Kieren.=


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


Re: How do I get Emacs mode?

2014-01-27 Thread Hwaen Ch'uqi
> Yes, I have now found all seven files elsewhere, and checked that the
> six I had already found are identical to the copies I found in the other
> directory.  So all now seems to be well.
>
> Some time when I have some time to spare, I must update all this stuff
> on my other computer too!
>
> Oh, and having converted a load of .ly files using convert-ly, and
> having now got emacs working OK, I just tried recompiling a file.  It
> wouldn't compile, producing about 20 errors, so now I'm going to have to
> spend hours (probably) finding out why.  But that'll have to be for
> another day (or week, perhaps). :-(
>
> David

 Just a question or two, based on my own experience. Did you first
remove (or purge) LilyPond 2.14.2 before installing 2.18.0? Otherwise,
your system may still be using the older installation. Also, where did
you install the latest version? If I remember correctly, the automatic
installation of 2.14.2 places the bin files in /usr/bin. To keep this
consistent, I installed LilyPond 2.18.0 in /usr/, using the --prefix
argument. Third, have you established that the .el files are exact
copies by using a program like diff? To be utterly safe, I always
remove the old .el files (which even purging will not remove) and
replace them with the .el files found in the new installation. Lastly,
if you use the info files to read the manuals, be sure to move them
from their original location to the /usr/share/info directory;
otherwise, you will not have access to them by the normal means.
Hwaen Ch'uqi

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


Re: Rolled Chord

2014-01-27 Thread Kieren MacMillan
Hi Mark,

> What term should be used to search the manual for instructions for creating 
> the rolled chord in the attachment?

tieWaitForNote

Hope this helps!
Kieren.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How do I get Emacs mode?

2014-01-27 Thread David Sumbler
On Mon, 2014-01-27 at 18:02 -0500, Hwaen Ch'uqi wrote:
>   Hmmm. You should have found seven .el files in the original lisp
> directory, one of them being lilypond-words.el. Be sure to move them
> all into one of the directories in your loadpath. For example, I am
> using ubuntu-13.04, and I have moved all of those files to
> /usr/share/emacs23/site-lisp. All should work well then.
> Hwaen Ch'uqi

Yes, I have now found all seven files elsewhere, and checked that the
six I had already found are identical to the copies I found in the other
directory.  So all now seems to be well.

Some time when I have some time to spare, I must update all this stuff
on my other computer too!

Oh, and having converted a load of .ly files using convert-ly, and
having now got emacs working OK, I just tried recompiling a file.  It
wouldn't compile, producing about 20 errors, so now I'm going to have to
spend hours (probably) finding out why.  But that'll have to be for
another day (or week, perhaps). :-(

David


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


Re: understanding midi files

2014-01-27 Thread karl
David Kastrup:
> k...@aspodata.se writes:
...
> > $ lilymidi --pretty aeiou.mid 
> > Traceback (most recent call last):
> >   File "/usr/local/bin/lilymidi", line 250, in 
> > go ()
> >   File "/usr/local/bin/lilymidi", line 231, in go
> > midi_data = read_midi (midi_file)
> >   File "/usr/local/bin/lilymidi", line 68, in read_midi
> > return midi.parse (open (file).read ())
> > IOError: [Errno 2] No such file or directory: 'aeiou.mid'
> > $
> >
> > It's installed from git, make install, perhaps something wrong with
> > the install script.
> 
> That one looks just like a bad file name.  Sure the file is not named
> aeiou.midi instead of aeiou.mid ?

$ ls -l aeiou.mid 
-rw--- 1 karl users 9760 Jan 27 10:44 aeiou.mid

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57



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


Re: understanding midi files

2014-01-27 Thread karl
Phil Holmes:
> - Original Message - 
> From: 
> > Looking at midi files created with NoteWorthy Composer, e.g.:
> >
> > http://www.cipoo.net/downloads/midi/LottiAminAgnus.mid
> >
> > it should be possible to create a good readable .ly files.
> > Dumping this midi file with midi.pl, it easy to identify
> > what goes where.
> 
> If this is specifically what you want to do (Noteworthy->Lilypond) you might 
> look at
> 
> http://www.holmessoft.co.uk/homepage/Software/NWC2LY/index.htm

Too bad I only have the midi and not the NoteWorthy file.

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57



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


Re: How do I get Emacs mode?

2014-01-27 Thread Hwaen Ch'uqi
Hmmm. You should have found seven .el files in the original lisp
directory, one of them being lilypond-words.el. Be sure to move them
all into one of the directories in your loadpath. For example, I am
using ubuntu-13.04, and I have moved all of those files to
/usr/share/emacs23/site-lisp. All should work well then.
Hwaen Ch'uqi

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


Re: How do I get Emacs mode?

2014-01-27 Thread Federico Bruni
2014/1/27 David Sumbler 

> Incidentally, in response to David Kastrup's suggestion "How about
> upgrading Ubuntu?", the reason I am sticking with Ubuntu 12.04 at the
> moment is because it is an LTS (long term support) version.  I shall
> probably change to 14.04 LTS a few months after it is released (so that
> the worst bugs can be sorted out first).
>
>
I suggest not to rely on the distribution package, especially of a LTS
version.
You can install the generic package. It's very easy, have you tried? Try
and let us know if you have problems.
If you install it with sudo the binary will be in /usr/local/bin which is
in your PATH for sure. If you don't use sudo it will be installed in your
home directory and you'll find it only if ~/bin is in your path, which
might not be your default.

For example, I have:

$ echo $PATH
/home/fede/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

$ which -a lilypond
/home/fede/bin/lilypond
/usr/local/bin/lilypond
/usr/bin/lilypond

$ lilypond -v | grep "GNU LilyPond"
GNU LilyPond 2.19.1
$ /usr/local/bin/lilypond -v | grep "GNU LilyPond"
GNU LilyPond 2.18.0
$ /usr/bin/lilypond -v | grep "GNU LilyPond"
GNU LilyPond 2.16.2

Which means that I chose to put the latest development version (2.19.1) in
the first path, the latest stable (2.18.0) in the second and the old stable
(2.16.2) in the last.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How do I get Emacs mode?

2014-01-27 Thread David Sumbler
Thanks for the link to your explanation of what to do to get Emacs
Lilypond mode working.

This was easy to follow, and I now have syntax highlighting etc. working
for Lilypond files.

Just one thing, though: when I load a .ly file into Emacs
I get a message:

Warning: `lilypond-words.el' not found in `load-path'. See
`lilypond-init.el'

I've had a look at lilypond-init.el, which is no help.  I also found a 
scripts/build/lilypond-words.py file in the Lilypond 2.18.0 source that
I downloaded, but when I tried to run that in python I got:

Traceback (most recent call last):
  File "Downloads/lilypond-2.18.0/scripts/build/lilypond-words.py", line
21, in 
s = open ('lily/lily-lexer.cc', 'r').read ()
IOError: [Errno 2] No such file or directory: 'lily/lily-lexer.cc'

How do I obtain or generate the lilypond-words.el file?

Incidentally, in response to David Kastrup's suggestion "How about
upgrading Ubuntu?", the reason I am sticking with Ubuntu 12.04 at the
moment is because it is an LTS (long term support) version.  I shall
probably change to 14.04 LTS a few months after it is released (so that
the worst bugs can be sorted out first).

As a professional musician and not a computer expert (as you can tell!),
I find that reinstalling Ubuntu every other year is more than enough
hassle, especially as I have to do it on 2 computers.  A new
installation every 6 months is just asking too much, and in my
experience Ubuntu upgrades (as distinct from clean installs) always
cause immense problems, so I have given up on them.

David


On Mon, 2014-01-27 at 16:04 -0500, Hwaen Ch'uqi wrote:
> On 1/27/14, David Kastrup  wrote:
> > David Sumbler  writes:
> >
> >> Thanks to all for your responses to my enquiry about misaligned
> >> dynamics.  Thanks especially to Hwaen Ch'uqi, who tried to answer my
> >> question: unfortunately,
> >> \override Dynamics.DynamicText.self-alignment-X = #-1
> >> (modified for the different syntax in Lilypond 2.14.2) did not solve the
> >> problem.  I think this is because -1 is the default value in any case.
> >>
> 
> Actually, the default is #0. The reason the code did not work is
> because, as I stated earlier, the ways of calling overrides has
> changed and so will not work unless you have upgraded to the latest
> stable version.
> 
> >> You all suggested, as I was afraid you would, that instead of trying to
> >> get 2.14.2 to do what I want, I should change to 2.18.0.  Considering
> >> that http://www.lilypond.org/unix.html positively encourages us to use
> >> the default version with distros such as Ubuntu (v2.14.2 in this case),
> >> this is not what a new user might expect!
> >
> I suspect that you had installed 2.14.2 via ubuntu's apt-get
> mechanism, which placed all the files in their correct location.
> Manual installations, via the .sh script, will not place certain
> files, such as the .el or .info files, where you might wish them.
> Please have a look at this thread:
> 
> https://lists.gnu.org/archive/html/lilypond-user/2013-05/msg00827.html
> 
> The last message of the thread should answer your questions. The
> directory in view is either lisp or site-lisp.
> 
> I hope this helps.
> Hwaen Ch'uqi



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


Re: How do I get Emacs mode? (was: Dynamics not correctly aligned)

2014-01-27 Thread Federico Bruni
2014/1/27 David Sumbler 

> You all suggested, as I was afraid you would, that instead of trying to
> get 2.14.2 to do what I want, I should change to 2.18.0.  Considering
> that http://www.lilypond.org/unix.html positively encourages us to use
> the default version with distros such as Ubuntu (v2.14.2 in this case),
> this is not what a new user might expect!
>

I don't think that this page encourages to use the default distro version,
but it's true that it doesn't encourage to use the latest stable. I think
that it should, I've added a couple of suggestions in this issue:
https://code.google.com/p/lilypond/issues/detail?id=3829
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How do I get Emacs mode?

2014-01-27 Thread Hwaen Ch'uqi
On 1/27/14, David Kastrup  wrote:
> David Sumbler  writes:
>
>> Thanks to all for your responses to my enquiry about misaligned
>> dynamics.  Thanks especially to Hwaen Ch'uqi, who tried to answer my
>> question: unfortunately,
>> \override Dynamics.DynamicText.self-alignment-X = #-1
>> (modified for the different syntax in Lilypond 2.14.2) did not solve the
>> problem.  I think this is because -1 is the default value in any case.
>>

Actually, the default is #0. The reason the code did not work is
because, as I stated earlier, the ways of calling overrides has
changed and so will not work unless you have upgraded to the latest
stable version.

>> You all suggested, as I was afraid you would, that instead of trying to
>> get 2.14.2 to do what I want, I should change to 2.18.0.  Considering
>> that http://www.lilypond.org/unix.html positively encourages us to use
>> the default version with distros such as Ubuntu (v2.14.2 in this case),
>> this is not what a new user might expect!
>
I suspect that you had installed 2.14.2 via ubuntu's apt-get
mechanism, which placed all the files in their correct location.
Manual installations, via the .sh script, will not place certain
files, such as the .el or .info files, where you might wish them.
Please have a look at this thread:

https://lists.gnu.org/archive/html/lilypond-user/2013-05/msg00827.html

The last message of the thread should answer your questions. The
directory in view is either lisp or site-lisp.

I hope this helps.
Hwaen Ch'uqi

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


Re: How do I get Emacs mode?

2014-01-27 Thread David Kastrup
David Sumbler  writes:

> Thanks to all for your responses to my enquiry about misaligned
> dynamics.  Thanks especially to Hwaen Ch'uqi, who tried to answer my
> question: unfortunately,
> \override Dynamics.DynamicText.self-alignment-X = #-1
> (modified for the different syntax in Lilypond 2.14.2) did not solve the
> problem.  I think this is because -1 is the default value in any case.
>
> You all suggested, as I was afraid you would, that instead of trying to
> get 2.14.2 to do what I want, I should change to 2.18.0.  Considering
> that http://www.lilypond.org/unix.html positively encourages us to use
> the default version with distros such as Ubuntu (v2.14.2 in this case),
> this is not what a new user might expect!

Ubuntu 13.10 has LilyPond 2.16.2.

> I did actually upgrade to 2.16.0 some weeks back, but I removed it and
> reinstalled 2.14.2 via the Ubuntu package manager.  Until a few hours
> ago, I couldn't remember why I reverted to 2.14.2, but I was sure I must
> have had a good reason.
>
> Anyway, I have now installed 2.18.0, and have now discovered again what
> the problem with 2.16.0 was: Emacs can't find Lilypond mode any more.
>
> I've just spent ages downloading the Lilypond source files, and trying
> to understand what I am supposed to do with the files in
> lilypond-2.18.0/elisp/

Possibly

make
sudo make install

in the elisp directory.

> Can someone help me sort this out, please, or will I have to go back to
> using Lilypond 2.14.2 with no help other than the manuals?

How about upgrading Ubuntu?

-- 
David Kastrup

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


\bendBefore

2014-01-27 Thread Xavier Noria
A web search shows \bendBefore is not implemented. I have tried some
snippets found out there but failed to get the bends (using LilyJAZZ if
that matters).

I need the bend to indicate how to attack certain notes in saxophone scores.

Does anybody have a modern snippet to share?
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


How do I get Emacs mode? (was: Dynamics not correctly aligned)

2014-01-27 Thread David Sumbler
Thanks to all for your responses to my enquiry about misaligned
dynamics.  Thanks especially to Hwaen Ch'uqi, who tried to answer my
question: unfortunately,
\override Dynamics.DynamicText.self-alignment-X = #-1
(modified for the different syntax in Lilypond 2.14.2) did not solve the
problem.  I think this is because -1 is the default value in any case.

You all suggested, as I was afraid you would, that instead of trying to
get 2.14.2 to do what I want, I should change to 2.18.0.  Considering
that http://www.lilypond.org/unix.html positively encourages us to use
the default version with distros such as Ubuntu (v2.14.2 in this case),
this is not what a new user might expect!

I did actually upgrade to 2.16.0 some weeks back, but I removed it and
reinstalled 2.14.2 via the Ubuntu package manager.  Until a few hours
ago, I couldn't remember why I reverted to 2.14.2, but I was sure I must
have had a good reason.

Anyway, I have now installed 2.18.0, and have now discovered again what
the problem with 2.16.0 was: Emacs can't find Lilypond mode any more.

I've just spent ages downloading the Lilypond source files, and trying
to understand what I am supposed to do with the files in
lilypond-2.18.0/elisp/

I have read
http://www.lilypond.org/doc/v2.18/Documentation/usage/text-editor-support
as well as the comments at the top of
lilypond-2.18.0/elisp/lilypond-init.el, but I'm still confused as to
what I need to do to get Emacs Lilypond mode working again.

Can someone help me sort this out, please, or will I have to go back to
using Lilypond 2.14.2 with no help other than the manuals?

David


On Sun, 2014-01-26 at 15:37 -0500, Hwaen Ch'uqi wrote:
> Greetings David,
> 
> On 1/26/14, David Sumbler  wrote:
> > I am a new user of Lilypond, using v. 2.14.2 on Ubuntu 12.04.  I have
> > read the Learning Manual and Notation Reference twice each, and most of
> > the other documentation at least once.
> >
> First of all, welcome to LilyPond! Second, I would advise moving to
> the latest stable version of LilyPond, version 2.18.0. This is
> especially because certain basic ways of writing overrides, for
> example, have changed, and it will likely be easier to communicate
> solutions with an updated version. Third, the manuals are tightly
> written, and pieces of relevant information may yet be found strewn
> the manuals in sometimes unlikely places.
> 
> > Having set two pieces (one for solo marimba, and one for flute and
> > piano), I hoped that I had reached the stage of being able to fine tune
> > the appearance, but stumbled at almost the first hurdle!
> >
> > My first problem concerns the second piece.  If I include the piano
> > dynamics separately from the notes, as suggested in section A.2.4 (Piano
> > Centred Dynamics) of the Learning Manual, they do not line up correctly
> > with the dynamics in the flute part, which I have attached to the notes.
> >
> > For instance, with:
> >
> > \version "2.14.2"
> >
> > <<
> >   \new Staff = "flute" \relative c''' { c1\p c\f }
> >   \new PianoStaff <<
> > \new Staff \relative c'' { c1 c }
> > \new Dynamics { s1\p s\f }
> > \new Staff \relative c { \clef bass c1 c }
> > >>
> >>>
> >
> > the dynamics in the piano part appear slightly further to the left than
> > those in the flute part do.  I get the same result (disregarding the
> > change in vertical alignment) with:
> >
> > \version "2.14.2"
> >
> > dynamics = { s1\p s\f }
> >
> > <<
> >   \new Staff = "flute" \relative c''' { c1\p c\f }
> >   \new PianoStaff <<
> > \new Staff << \relative c'' { c1 c } \dynamics >>
> > \new Staff \relative c { \clef bass c1 c }
> > >>
> >>>
> >
> > In the actual piece I have set, the misplaced piano dynamics actually
> > collide with the preceding bar-lines, although that does not happen in
> > the above brief examples.
> >
> > What am I doing wrong here?  Thanks in advance for any help you can
> > offer.
> >
> >
> > David
> >
> Try placing this command at the beginning of your Dynamics context:
> 
> \override Dynamics.DynamicText.self-alignment-X = #-1
> 
> This will left-align your dynamics. If you wish to move them more to
> the right, you may change the number after the hash sign. #0
> center-aligns the dynamics, and #1 right-aligns them. You can use
> other numbers between those given.
> 
> I hope this helps.
> Hwaen Ch'uqi



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


Re: Auto-panner

2014-01-27 Thread Jan-Peter Voigt
On 27.01.2014 20:51, David Kastrup wrote:
>> What about a closure?
> Won't be able to distinguish being called another time from the same
> output (\layout, \midi, \musicxml (this one's hypothetical yet),
> \addQuote...) or the next one.
of course not ... I see Vaughans idea as a first draft ... and now he's
able to use it in a global variable.
At least the example, he provided, should work this way.
But for a more robust implementation, there need to be score-level
context-properties - perhaps an engraver. We'll see later ;)

Cheers, Jan-Peter


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


Re: Auto-panner

2014-01-27 Thread David Kastrup
Jan-Peter Voigt  writes:

> On 27.01.2014 16:54, David Kastrup wrote:
>>> autopan =
>>> > #(define-scheme-function (parser location)()
>> Why define-scheme-function when returning music?
> Perhaps this function had another meaning in the first place?
> I overlooked this, when injecting my ApplyContext lines.
>>> >(begin
>>> > (set! autopan-current-voice (+ autopan-current-voice 1.0))
>>> > (make-music
>>> >  'ApplyContext
>>> >  'procedure
>>> >  (lambda (context)
>>> >(let ((ctx (ly:context-find context autopan-staff-or-voice)))
>>> >  (if (not (ly:context? ctx)) (set! ctx context))
>>> >  ;(ly:message "context ~A" ctx)
>>> >  (ly:context-set-property! ctx 'midiPanPosition
>>> >(+ -1.0
>>> >  (* autopan-current-voice
>>> >(/ 2.0
>>> >  (- autopan-total-voices 1.0)
>> Doesn't work.  At the time the function gets called, _all_ instances of
>> the function get to see the same value of autopan-current-voice.
> Good point. Now all Voices turned to the right ;)
>> If you want to keep tabs on your current voice, you need to use a
>> score-level context property.
> What about a closure?

Won't be able to distinguish being called another time from the same
output (\layout, \midi, \musicxml (this one's hypothetical yet),
\addQuote...) or the next one.

-- 
David Kastrup

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


Re: Auto-panner

2014-01-27 Thread Jan-Peter Voigt
On 27.01.2014 16:54, David Kastrup wrote:
>> autopan =
>> > #(define-scheme-function (parser location)()
> Why define-scheme-function when returning music?
Perhaps this function had another meaning in the first place?
I overlooked this, when injecting my ApplyContext lines.
>> >(begin
>> > (set! autopan-current-voice (+ autopan-current-voice 1.0))
>> > (make-music
>> >  'ApplyContext
>> >  'procedure
>> >  (lambda (context)
>> >(let ((ctx (ly:context-find context autopan-staff-or-voice)))
>> >  (if (not (ly:context? ctx)) (set! ctx context))
>> >  ;(ly:message "context ~A" ctx)
>> >  (ly:context-set-property! ctx 'midiPanPosition
>> >(+ -1.0
>> >  (* autopan-current-voice
>> >(/ 2.0
>> >  (- autopan-total-voices 1.0)
> Doesn't work.  At the time the function gets called, _all_ instances of
> the function get to see the same value of autopan-current-voice.
Good point. Now all Voices turned to the right ;)
> If you want to keep tabs on your current voice, you need to use a
> score-level context property.
What about a closure?
%%
autopan =
#(define-music-function (parser location)()
   (let ((mypan (+ autopan-current-voice 1.0)))
(set! autopan-current-voice mypan)
(make-music
 'ApplyContext
 'procedure
 (lambda (context)
   (let ((ctx (ly:context-find context autopan-staff-or-voice)))
 (if (not (ly:context? ctx)) (set! ctx context))
 (ly:message "context ~A pan ~A" ctx mypan)
 (ly:context-set-property! ctx 'midiPanPosition
   (+ -1.0
 (* mypan
   (/ 2.0
 (- autopan-total-voices 1.0)
 )
   )
 )))
   ))
 ))
%%

At least now every Staff gets its own midiPanPosition.

I like the idea of auto-stereo-spreading midi channels. Now it should
also work, if autopan is used inside a global variable.
Still, I'd recommend usage of either a global context property or a
performer/engraver that keeps track of all contexts using autopan.
Perhaps it is possible to count all contexts joining autopan automatically.

But thats out of scope for me right now ;) (i might come back later on
this topic)

Best, Jan-Peter


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


Re: Auto-panner

2014-01-27 Thread David Kastrup
Jan-Peter Voigt  writes:

> Thanks, David.
> @Vaughan
> For a short test ... this compiles, but I can't listen to the resulting
> pan in midi 

> \version "2.18.0"
>
> %%%
> %{
>
>Auto panner
>
>Spreads voices evenly from -1 (LEFT) to 1 (RIGHT)
>
>Usage:
>
>\include "autopanner.ly"
>\SetTotalAutopanStaves #2 % or \SetTotalAutopanVoices

[...]

> #(define autopan-total-voices 2.0)
>
> #(define autopan-current-voice -1.0)
>
> #(define autopan-staff-or-voice 'Staff)
>
> ResetAutoPanning =
> #(define-void-function
>   (parser location)
>   ()
>   (set! autopan-current-voice -1.0)
>   )
>
> SetTotalAutopanVoices =
> #(define-void-function
>   (parser location total-voices)
>   (number?)
>   (begin
>(set! autopan-total-voices total-voices)
>(set! autopan-current-voice -1.0)
>(set! autopan-staff-or-voice 'Voice)
>)
>   )

[...]

> autopan =
> #(define-scheme-function (parser location)()

Why define-scheme-function when returning music?

>(begin
> (set! autopan-current-voice (+ autopan-current-voice 1.0))
> (make-music
>  'ApplyContext
>  'procedure
>  (lambda (context)
>(let ((ctx (ly:context-find context autopan-staff-or-voice)))
>  (if (not (ly:context? ctx)) (set! ctx context))
>  ;(ly:message "context ~A" ctx)
>  (ly:context-set-property! ctx 'midiPanPosition
>(+ -1.0
>  (* autopan-current-voice
>(/ 2.0
>  (- autopan-total-voices 1.0)

Doesn't work.  At the time the function gets called, _all_ instances of
the function get to see the same value of autopan-current-voice.

If you want to keep tabs on your current voice, you need to use a
score-level context property.

-- 
David Kastrup

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


Re: [ANNOUNCE] New Portfile for Frescobaldi on Mac

2014-01-27 Thread Davide Liessi
2014-01-26 carltesta :
> Running Frescobaldi. When I try to run frescobaldi from the MacPorts
> directory, I get the following error: See the screenshot.
> 
>
> When I open the console, this is the error I get.
> 

Both of them are not very informative. :)

Can you please do what follows?
Open the Terminal and enter
/opt/local/bin/frescobaldi
Frescobaldi should start and (probably) give the same error, but this
time there will be some (hopefully more meaningful) messages in the
Terminal.
Close Frescobaldi and copy&paste here the full Terminal transcript
(starting from the line you entered).

Best wishes.
Davide

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


Re: Auto-panner

2014-01-27 Thread Jan-Peter Voigt
Thanks, David.
@Vaughan
For a short test ... this compiles, but I can't listen to the resulting
pan in midi 
I changed the PropertySet to ApplyContext with a lambda. This should
work in variables, as it returns an applyContext expression.
As with the previous solution, you have to care about the order autopan
is called.
It might be a good idea to either use a performer (engraver in midi
context) and/or to track context id's, so that each context is counted once.

HTH, Jan-Peter


On 27.01.2014 15:15, David Kastrup wrote:
> Jan-Peter Voigt  writes:
>
>> Hi Vaughan,
>>
>> if global is a music-function calling autopan, it will evaluate it
>> everytime. If global is a variable, its value is set, once it is assigned.
>> So if you have to wrap it in music-function. If you always have a
>> variable "global" containing all you need, you can wrap that in a function:
> I'd recommend putting this into an \applyContext call.  That way, you
> get a call for each use in a different context.
>

\version "2.18.0"

%%%
%{

   Auto panner

   Spreads voices evenly from -1 (LEFT) to 1 (RIGHT)

   Usage:

   \include "autopanner.ly"
   \SetTotalAutopanStaves #2 % or \SetTotalAutopanVoices

   \score {
   <<
   \new Staff <<
   \set Staff.midiInstrument = #"violin"
   \autopan
   { ... music here }
   >>
   \new Staff <<
   \set Staff.midiInstrument = #"cello"
   \autopan
   { ... music here }
   >>
   >>
   }

%}
%%%


#(define autopan-total-voices 2.0)

#(define autopan-current-voice -1.0)

#(define autopan-staff-or-voice 'Staff)

ResetAutoPanning =
#(define-void-function
  (parser location)
  ()
  (set! autopan-current-voice -1.0)
  )

SetTotalAutopanVoices =
#(define-void-function
  (parser location total-voices)
  (number?)
  (begin
   (set! autopan-total-voices total-voices)
   (set! autopan-current-voice -1.0)
   (set! autopan-staff-or-voice 'Voice)
   )
  )

SetTotalAutopanStaves =
#(define-void-function
  (parser location total-voices)
  (number?)
  (begin
   (set! autopan-total-voices total-voices)
   (set! autopan-current-voice -1.0)
   (set! autopan-staff-or-voice 'Staff)
   )
  )


autopan =
#(define-scheme-function (parser location)()
   (begin
(set! autopan-current-voice (+ autopan-current-voice 1.0))
(make-music
 'ApplyContext
 'procedure
 (lambda (context)
   (let ((ctx (ly:context-find context autopan-staff-or-voice)))
 (if (not (ly:context? ctx)) (set! ctx context))
 ;(ly:message "context ~A" ctx)
 (ly:context-set-property! ctx 'midiPanPosition
   (+ -1.0
 (* autopan-current-voice
   (/ 2.0
 (- autopan-total-voices 1.0)
 )
   )
 )))
   ))
 ))

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


Re: Semi-transparent color in Lilypond

2014-01-27 Thread Rupert Snook
Thanks Patrick and Harm for the suggestions! These could work as
workarounds, but still not exactly what I'm after. I'm looking for a color
that has an opacity / transparency channel, and this channel could be set
between 0% (fully transparent) and 100% (fully opaque).

If that's not possible, maybe a work around could be to import a pre made
graphic that was already semi-opaque.


On Sun, Jan 26, 2014 at 10:07 PM, pls  wrote:

> On 26.01.2014, at 06:41, Thomas Morley  wrote:
>
> > 2014-01-26 Rupert :
> >> Hi all,
> >>
> >> Is there a way to color objects semi-transparently in Lilypond?
> >> Perhaps one could use an rgba color
> >> instead of #red in the following example?
> There's at least a workaround in the lsr to give the illusion of a
> background color: http://lsr.dsi.unimi.it/LSR/Snippet?id=699.
>
> hth
> patrick
> >>
> >> \markup {
> >>  \with-color #red
> >>  \filled-box #'(-1 . 2) #'(1 . 4) #0.5
> >> }
> >>
> >> Many thanks
> >> Rupert
> >
> >
> > Hi,
> >
> > \with-color can use rgb-colors:
> >
> > \markup {
> >  \with-color #(rgb-color 1.0 0.5 0.1)
> >  \filled-box #'(-1 . 2) #'(1 . 4) #0.5
> > }
> >
> > Is it what you're looking for?
> >
> >
> > Cheers,
> >  Harm
> >
> > ___
> > 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: Auto-panner

2014-01-27 Thread David Kastrup
Jan-Peter Voigt  writes:

> Hi Vaughan,
>
> if global is a music-function calling autopan, it will evaluate it
> everytime. If global is a variable, its value is set, once it is assigned.
> So if you have to wrap it in music-function. If you always have a
> variable "global" containing all you need, you can wrap that in a function:

I'd recommend putting this into an \applyContext call.  That way, you
get a call for each use in a different context.

-- 
David Kastrup

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


Re: Auto-panner

2014-01-27 Thread Jan-Peter Voigt
Hi Vaughan,

if global is a music-function calling autopan, it will evaluate it
everytime. If global is a variable, its value is set, once it is assigned.
So if you have to wrap it in music-function. If you always have a
variable "global" containing all you need, you can wrap that in a function:


music = { c'' }

global = { \time 4/4 }
% another name than "global"!
meta =
#(define-music-function (parser location)()
   #{
 \autopan \global
   #})

\new Staff <<
\meta
\music
>>


"global" is only a function, if it is declared one. Otherwise it is just
a variable.

BTW, nice autopan utility ;)

HTH, Jan-Peter

Am 27.01.2014 13:54, schrieb Vaughan McAlley:
> Because I’m lazy, I’d love to include the \autopan command in \global,
> but it looks like when \global is evaluated, the function is evaluated
> and its return value is permanently made part of \global, which means
> everything is panned to the far left. Is there a way to make the
> function run every time \global appears?


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


Frescobaldi on Mac installation instructions moved to Frescobaldi's wiki

2014-01-27 Thread Davide Liessi
Dear Frescobaldi & Mac users,

the installation instructions for Frescobaldi on Mac OS X have been
moved to Frescobaldi's wiki
(https://github.com/wbsoft/frescobaldi/wiki).

They have also been updated, as a consequence of a recent
reorganization of the Portfile for Poppler, so it is no longer
necessary to install Poppler separately before Frescobaldi.

You can find them at
- 
https://github.com/wbsoft/frescobaldi/wiki/How-to-install-Frescobaldi-on-Mac-OS-X
(English)
- 
https://github.com/wbsoft/frescobaldi/wiki/Comment-installer-Frescobaldi-sous-Mac-OS-X
(français)
- 
https://github.com/wbsoft/frescobaldi/wiki/Come-installare-Frescobaldi-in-Mac-OS-X
(italiano)

Best wishes.
Davide

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


Re: how to display a predefined guitar fretboard inside a \markup block

2014-01-27 Thread Eluze
David Kastrup wrote
> Federico Bruni <

> fedelogy@

> > writes:
> 
>> 2014/1/27 Eluze <

> eluzew@

> >
>>
>>> pleas always check the log - it says:
>>>
>>> "warning: no systems found in \score markup, does it have a \layout
>>> block?"
>>>
>>> does this help?
>>>
>>
>> oops, stupid me!
> 
> Frankly, I think we might want to sort that under "stupid LilyPond"
> instead as that means we only have one stupidity to cure.
> 
> This has had me annoyed rather often as well, and it does not make a
> whole lot of sense either since any output definition but \layout seems
> pointless in a score markup.
> 
> Might want to mark this as an enhancement request.

done:
https://code.google.com/p/lilypond/issues/detail?id=3827&thanks=3827&ts=1390830679

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/how-to-display-a-predefined-guitar-fretboard-inside-a-markup-block-tp158493p158538.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: Any Finale/Sibelius forum members here?

2014-01-27 Thread Janek Warchoł
2014-01-27 Pierre Perol-Schneider :
> Hi Janek,
> I've forwarded the information here :
> - http://www.classicalguitardelcamp.com/viewtopic.php?p=906167#p906167
> (mostly Finale users)
> - http://classicguitare.com/viewtopic.php?p=109208#p109208 (mostly Sibelius
> and MuseScore users)
> - http://www.imslpforums.org/viewtopic.php?p=37125#p37125

great, thanks!
Janek

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


Re: understanding midi files

2014-01-27 Thread Phil Holmes
- Original Message - 
From: 

To: 
Sent: Sunday, January 26, 2014 9:32 PM
Subject: understanding midi files




Looking at midi files created with NoteWorthy Composer, e.g.:

http://www.cipoo.net/downloads/midi/LottiAminAgnus.mid

it should be possible to create a good readable .ly files.
Dumping this midi file with midi.pl, it easy to identify
what goes where.



If this is specifically what you want to do (Noteworthy->Lilypond) you might 
look at


http://www.holmessoft.co.uk/homepage/Software/NWC2LY/index.htm

--
Phil Holmes 



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


Re: understanding midi files

2014-01-27 Thread Henning Hraban Ramm

Am 2014-01-27 um 18:58 schrieb Johan Vromans :

> David Kastrup  writes:
> 
>> Ugh.  Can we collect feedback on the various platforms?  For me, stuff
>> works fine.  That would be Ubuntu 13.10 on i386.
> 
> 2.16.0 works fine on Fedora 17.
> 
> 2.18.0 gives

On OSX (Intel, 10.9) also 2.16.2 is broken:

$ LilyPond\ 2.16.2.app/Contents/Resources/bin/lilymidi aeiou.mid 
Traceback (most recent call last):
  File "./LilyPond 2.16.2.app/Contents/Resources/bin/lilymidi", line 237, in 

go ()
  File "./LilyPond 2.16.2.app/Contents/Resources/bin/lilymidi", line 218, in go
midi_data = read_midi (midi_file)
  File "./LilyPond 2.16.2.app/Contents/Resources/bin/lilymidi", line 67, in 
read_midi
import midi
ImportError: dlopen(/Applications/music/LilyPond 
2.16.2.app/Contents/Resources/lib/lilypond/current/python/midi.so, 2): no 
suitable image found.  Did find:
/Applications/music/LilyPond 
2.16.2.app/Contents/Resources/lib/lilypond/current/python/midi.so: mach-o, but 
wrong architecture





Greetlings, Hraban
---
fiëé visuëlle
Henning Hraban Ramm
http://www.fiee.net
http://angerweit.tikon.ch/lieder/
https://www.cacert.org (I'm an assurer)





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


Re: understanding midi files

2014-01-27 Thread David Kastrup
k...@aspodata.se writes:

> David Kastrup:
> ...
>> Uh, this is awkward,
>
> What is awkward?
>
>> but you do know that the LilyPond distribution
>> comes with a program called lilymidi which you can use like
>
> Yes I know.
>
>> lilymidi --pretty somefile.midi
>> 
>> in order to get a readable representation of a Midi file?
>
> I've tried it, but:
>
> $ lilymidi --pretty aeiou.mid 
> Traceback (most recent call last):
>   File "/usr/local/bin/lilymidi", line 250, in 
> go ()
>   File "/usr/local/bin/lilymidi", line 231, in go
> midi_data = read_midi (midi_file)
>   File "/usr/local/bin/lilymidi", line 68, in read_midi
> return midi.parse (open (file).read ())
> IOError: [Errno 2] No such file or directory: 'aeiou.mid'
> $
>
> It's installed from git, make install, perhaps something wrong with
> the install script.

That one looks just like a bad file name.  Sure the file is not named
aeiou.midi instead of aeiou.mid ?

-- 
David Kastrup

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


Re: understanding midi files

2014-01-27 Thread karl
Johan Vromans:
...
> Since you're focussing on Perl tools: the CPAN module MIDI::Tweaks comes
> with a midi-dump tool that outputs a decomposed and commented Perl
> structure of the midi input. This structure can be evalled to produce a
> new MIDI::Opus object.

I'm using the MIDI module, but have not heard about the Tweaks thing.
I have downloaded it now and will check it out, thanks.

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57



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


Re: understanding midi files

2014-01-27 Thread karl
David Kastrup:
...
> Uh, this is awkward,

What is awkward?

> but you do know that the LilyPond distribution
> comes with a program called lilymidi which you can use like

Yes I know.

> lilymidi --pretty somefile.midi
> 
> in order to get a readable representation of a Midi file?

I've tried it, but:

$ lilymidi --pretty aeiou.mid 
Traceback (most recent call last):
  File "/usr/local/bin/lilymidi", line 250, in 
go ()
  File "/usr/local/bin/lilymidi", line 231, in go
midi_data = read_midi (midi_file)
  File "/usr/local/bin/lilymidi", line 68, in read_midi
return midi.parse (open (file).read ())
IOError: [Errno 2] No such file or directory: 'aeiou.mid'
$

It's installed from git, make install, perhaps something wrong with
the install script.

Some mixed Debian (mostly stable) installation.

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57

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


Re: understanding midi files

2014-01-27 Thread karl
Phil:
> Le 26/01/2014 22:32, k...@aspodata.se a écrit :
...
> Perhaps you don't know midicomp.
> Here the latest version:
> https://github.com/markc/midicomp
> 
> It gives you all information on a midifile.
> As you know Perl there is a tiny exemple to use it with midicomp in the 
> README.
> Perhaps it's worth to try a nice conversion to ly-code.

No, I didn't know about it, have git cloned it now, thanks.

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57



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


Re: understanding midi files

2014-01-27 Thread Johan Vromans
Phil Hézaine  writes:

> Perhaps you don't know midicomp.
> Here the latest version:
> https://github.com/markc/midicomp

Since you're focussing on Perl tools: the CPAN module MIDI::Tweaks comes
with a midi-dump tool that outputs a decomposed and commented Perl
structure of the midi input. This structure can be evalled to produce a
new MIDI::Opus object.

-- Johan

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


Re: understanding midi files

2014-01-27 Thread Johan Vromans
David Kastrup  writes:

> Ugh.  Can we collect feedback on the various platforms?  For me, stuff
> works fine.  That would be Ubuntu 13.10 on i386.

2.16.0 works fine on Fedora 17.

2.18.0 gives

/opt/lilypond/usr/bin/lilymidi --pretty ~/tmp/FOG1.mid 
Traceback (most recent call last):
  File "/opt/lilypond/usr/bin/lilymidi", line 250, in 
go ()
  File "/opt/lilypond/usr/bin/lilymidi", line 231, in go
midi_data = read_midi (midi_file)
  File "/opt/lilypond/usr/bin/lilymidi", line 67, in read_midi
import midi
ImportError: /opt/lilypond/usr/lib/lilypond/current/python/midi.so: undefined 
symbol: Py_InitModule4

-- Johan

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


Auto-panner

2014-01-27 Thread Vaughan McAlley
I was so excited by \set Score.midiPanPosition that I was inspired to
write a function in Scheme that spreads the voices evenly from left to
right. It can’t look ahead to find the number of voices or staves,
that needs to be specified at the start or before a new \score
definition:

\version "2.18.0"

\include "autopan.ly"
\SetTotalAutopanStaves #4

myMusic = \relative c' {
   \time 4/4
   c4 d e f g1
}

\score {
   <<
  \new Staff {
 \autopan
 \transpose c bes \myMusic
  }
  \new Staff {
 \autopan
 \transpose c g \myMusic
  }
  \new Staff {
 \autopan
 \transpose c e \myMusic
  }
  \new Staff {
 \autopan
 \transpose c c \myMusic
  }
   >>
   \layout {}
   \midi {}
}

%%

Because I’m lazy, I’d love to include the \autopan command in \global,
but it looks like when \global is evaluated, the function is evaluated
and its return value is permanently made part of \global, which means
everything is panned to the far left. Is there a way to make the
function run every time \global appears?

Vaughan


autopan.ly
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: understanding midi files

2014-01-27 Thread and...@andis59.se

On 2014-01-27 12:29, David Kastrup wrote:

David Kastrup wrote

Uh, this is awkward, but you do know that the LilyPond distribution
comes with a program called lilymidi which you can use like

lilymidi --pretty somefile.midi


Ugh.  Can we collect feedback on the various platforms?  For me, stuff
works fine.  That would be Ubuntu 13.10 on i386.



On Windows 7 32-bit it works fine as long as you call python-windows.exe 
instead of python. E.g.


python-windows lilymidi.py --pretty somefile.mid

// Anders

--
English isn't my first language.
So any error or strangeness is due to the translation.
Please correct my English so that I may become better.

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


Re: understanding midi files

2014-01-27 Thread David Kastrup
Henning Hraban Ramm  writes:

> Am 2014-01-27 um 16:43 schrieb Eluze :
>
>> David Kastrup wrote
>>> Uh, this is awkward, but you do know that the LilyPond distribution
>>> comes with a program called lilymidi which you can use like
>>> 
>>> lilymidi --pretty somefile.midi
>>> 
>>> in order to get a readable representation of a Midi file?
>> 
>> but - at least here - it doesn't produce more than the help information
>
> On my LilyPond 2.18.0 on OSX (Intel) 10.9 there’s a wrong MIDI library in 
> LilyPond:
>
> $ lilymidi --pretty something.mid
> Traceback (most recent call last):
>   File "/Applications/music/LilyPond.app/Contents/Resources/bin/lilymidi", 
> line 250, in 
> go ()
>   File "/Applications/music/LilyPond.app/Contents/Resources/bin/lilymidi", 
> line 231, in go
> midi_data = read_midi (midi_file)
>   File "/Applications/music/LilyPond.app/Contents/Resources/bin/lilymidi", 
> line 67, in read_midi
> import midi
> ImportError: 
> dlopen(/Applications/music/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
>  2): no suitable image found.  Did find:
>   
> /Applications/music/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
>  mach-o, but wrong architecture

Ugh.  Can we collect feedback on the various platforms?  For me, stuff
works fine.  That would be Ubuntu 13.10 on i386.

-- 
David Kastrup

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


Re: understanding midi files

2014-01-27 Thread Henning Hraban Ramm

Am 2014-01-27 um 16:43 schrieb Eluze :

> David Kastrup wrote
>> Uh, this is awkward, but you do know that the LilyPond distribution
>> comes with a program called lilymidi which you can use like
>> 
>> lilymidi --pretty somefile.midi
>> 
>> in order to get a readable representation of a Midi file?
> 
> but - at least here - it doesn't produce more than the help information

On my LilyPond 2.18.0 on OSX (Intel) 10.9 there’s a wrong MIDI library in 
LilyPond:

$ lilymidi --pretty something.mid
Traceback (most recent call last):
  File "/Applications/music/LilyPond.app/Contents/Resources/bin/lilymidi", line 
250, in 
go ()
  File "/Applications/music/LilyPond.app/Contents/Resources/bin/lilymidi", line 
231, in go
midi_data = read_midi (midi_file)
  File "/Applications/music/LilyPond.app/Contents/Resources/bin/lilymidi", line 
67, in read_midi
import midi
ImportError: 
dlopen(/Applications/music/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so,
 2): no suitable image found.  Did find:

/Applications/music/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so:
 mach-o, but wrong architecture


Greetlings, Hraban
---
fiëé visuëlle
Henning Hraban Ramm
http://www.fiee.net
http://angerweit.tikon.ch/lieder/
https://www.cacert.org (I'm an assurer)





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


Re: understanding midi files

2014-01-27 Thread Eluze
David Kastrup wrote
> Uh, this is awkward, but you do know that the LilyPond distribution
> comes with a program called lilymidi which you can use like
> 
> lilymidi --pretty somefile.midi
> 
> in order to get a readable representation of a Midi file?

but - at least here - it doesn't produce more than the help information

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/understanding-midi-files-tp158500p158518.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: Semi-transparent color in Lilypond

2014-01-27 Thread Henning Hraban Ramm

Am 2014-01-27 um 16:19 schrieb pls :

> please reply to the list!
> On 27.01.2014, at 09:59, Rupert Snook  wrote:
> 
>> Thanks Patrick and Harm for the suggestions! These could work as 
>> workarounds, but still not exactly what I'm after. I'm looking for a color 
>> that has an opacity / transparency channel, and this channel could be set 
>> between 0% (fully transparent) and 100% (fully opaque). 
>> 
>> If that's not possible, maybe a work around could be to import a pre made 
>> graphic that was already semi-opaque.

Transparency is not possible in PostScript, but just in PDF - you can „inject“ 
it with pdfmarks, though. Maybe it would be possible to load a definition with 
a handwritten EPS.


Greetlings, Hraban
---
fiëé visuëlle
Henning Hraban Ramm
http://www.fiee.net
http://angerweit.tikon.ch/lieder/
https://www.cacert.org (I'm an assurer)





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


Re: Semi-transparent color in Lilypond

2014-01-27 Thread pls
please reply to the list!
On 27.01.2014, at 09:59, Rupert Snook  wrote:

> Thanks Patrick and Harm for the suggestions! These could work as workarounds, 
> but still not exactly what I'm after. I'm looking for a color that has an 
> opacity / transparency channel, and this channel could be set between 0% 
> (fully transparent) and 100% (fully opaque). 
> 
> If that's not possible, maybe a work around could be to import a pre made 
> graphic that was already semi-opaque.
> 
> Rupert


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


Re: how to display a predefined guitar fretboard inside a \markup block

2014-01-27 Thread David Kastrup
Federico Bruni  writes:

> 2014/1/27 Eluze 
>
>> pleas always check the log - it says:
>>
>> "warning: no systems found in \score markup, does it have a \layout block?"
>>
>> does this help?
>>
>
> oops, stupid me!

Frankly, I think we might want to sort that under "stupid LilyPond"
instead as that means we only have one stupidity to cure.

This has had me annoyed rather often as well, and it does not make a
whole lot of sense either since any output definition but \layout seems
pointless in a score markup.

Might want to mark this as an enhancement request.

-- 
David Kastrup

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


Re: understanding midi files

2014-01-27 Thread David Kastrup
Phil Hézaine  writes:

> Le 26/01/2014 22:32, k...@aspodata.se a écrit :
>>   I'm experimenting with midi file to lilypond conversion since
>> midi2ly creates files that are hard to read for me, and thus makeing
>> it hard to use its output. Yes I can write a program to tidy up its
>> output, and I did so, but looking at the dump of a midi file with
>> this simple program:

[...]

>> I started to experimenting extracting e.g. header data etc. in
>> the program:

[...]

> Perhaps you don't know midicomp.
> Here the latest version:
> https://github.com/markc/midicomp
>
> It gives you all information on a midifile.
> As you know Perl there is a tiny exemple to use it with midicomp in
> the README.
> Perhaps it's worth to try a nice conversion to ly-code.

Uh, this is awkward, but you do know that the LilyPond distribution
comes with a program called lilymidi which you can use like

lilymidi --pretty somefile.midi

in order to get a readable representation of a Midi file?

-- 
David Kastrup

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


Re: understanding midi files

2014-01-27 Thread Phil Hézaine

Le 26/01/2014 22:32, k...@aspodata.se a écrit :

  I'm experimenting with midi file to lilypond conversion since
midi2ly creates files that are hard to read for me, and thus makeing
it hard to use its output. Yes I can write a program to tidy up its
output, and I did so, but looking at the dump of a midi file with
this simple program:

/// midi.pl:
#!/usr/bin/perl -w

use strict;
use MIDI;

sub proc_file($);
my $file;
foreach $file (@ARGV) {
 proc_file($file);
}


sub proc_file($) {
 my $file = shift;

 my $opus = MIDI::Opus->new({ 'from_file' => $file });
 $opus->dump({ "dump_tracks" => 1 });
}
///

I started to experimenting extracting e.g. header data etc. in
the program:

  http://turkos.aspodata.se/git/musik/bin/miditoly.pl

(Which is work in progress.)

Looking at midi files created with NoteWorthy Composer, e.g.:

  http://www.cipoo.net/downloads/midi/LottiAminAgnus.mid

it should be possible to create a good readable .ly files.
Dumping this midi file with midi.pl, it easy to identify
what goes where.

If you can create example files (midi and pdf) created from
notesetting programs, perhaps we can identify heuristics for a
nice conversion to ly-code.

Idéas and suggested conventions for the generated code are also
welcome.

Regards,
/Karl Hammar


Hi,

Perhaps you don't know midicomp.
Here the latest version:
https://github.com/markc/midicomp

It gives you all information on a midifile.
As you know Perl there is a tiny exemple to use it with midicomp in the 
README.

Perhaps it's worth to try a nice conversion to ly-code.
HTH.
Phil.

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


Re: Weird behaviour of new NullVoice feature

2014-01-27 Thread Eluze
Yannick CHARLES wrote
> 
> Unless I'm missing something, I think I should get the same result as if I
> were using \new Lyrics \lyricsto "alto" \refrain, but in the first
> measure,
> the Glo and ri are printed on the same note. The rest of the line looks ok
> though.
> 
> 
> Is it a bug ?

I think so and I've created
https://code.google.com/p/lilypond/issues/detail?id=3825&colspec=ID%20Type%20Status%20Stars%20Owner%20Patch%20Needs%20Summary
for this

thanks for reporting it!
Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Weird-behaviour-of-new-NullVoice-feature-tp158448p158512.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: Any Finale/Sibelius forum members here?

2014-01-27 Thread Pierre Perol-Schneider
2014-01-27 Janek Warchoł 

> Hi,
>
>
Hi Janek,
I've forwarded the information here :
- http://www.classicalguitardelcamp.com/viewtopic.php?p=906167#p906167(mostly
Finale users)
- http://classicguitare.com/viewtopic.php?p=109208#p109208 (mostly Sibelius
and MuseScore users)
- http://www.imslpforums.org/viewtopic.php?p=37125#p37125

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