Re: *.mid vs *.midi

2008-05-19 Thread Valentin Villenave
2008/5/19 Graham Percival <[EMAIL PROTECTED]>: > Valentin offered a bounty a year ago; I don't know if that's still > valid. A certain developer with the initial HWN even said that > it was a "good idea" half a year ago. :) It certainly is. I was hesitating to bring this up here, but thanks for

Re: *.mid vs *.midi

2008-05-19 Thread Graham Percival
On Mon, 19 May 2008 12:54:02 -0300 "Han-Wen Nienhuys" <[EMAIL PROTECTED]> wrote: > 2008/5/19 Hans Aberg <[EMAIL PROTECTED]>: > > In Lilypond, I thought that perhaps it was such file setup problems > > that causes problems for users. > > While the include mechanism is clumsy, last time I looked th

Re: *.mid vs *.midi

2008-05-19 Thread Han-Wen Nienhuys
2008/5/19 Hans Aberg <[EMAIL PROTECTED]>: >> I would propose to move the remainder of this discussion off the mailing >> list. Indeed, please discuss C++ vs Haskell somewhere else. > My hope was to get to the discussion of using in Lilypond Haskell like a > "import" construct, which I think might

Haskell module design [was Re: *.mid vs *.midi]

2008-05-19 Thread Trevor Daniels
Hans Aberg wrote My hope was to get to the discussion of using in Lilypond Haskell like a "import" construct, which I think might help LilyPond users, as opposed to the current "\include", which I think is more like the C preprocessor "#include", and is trickier to use. Is this an offe

Re: *.mid vs *.midi

2008-05-19 Thread immanuel litzroth
> The "man" page of 'gcc' has 62 occurrences of this word, the first > one being: >Some options control the preprocessor and others the compiler > itself. Once again answering a different question. You made a direct quote from Stroustrups book. Could you tell me which page it is on instead

Re: *.mid vs *.midi

2008-05-19 Thread Hans Aberg
On 19 May 2008, at 15:59, Mats Bengtsson wrote: I would propose to move the remainder of this discussion off the mailing list. Regards /Mats My hope was to get to the discussion of using in Lilypond Haskell like a "import" construct, which I think might help LilyPond users, as oppos

Re: *.mid vs *.midi

2008-05-19 Thread Hans Aberg
On 19 May 2008, at 14:02, immanuel litzroth wrote: I could not even find preprocessor in the index, just preprocessing directive. Care to give a page reference with this quote? The "man" page of 'gcc' has 62 occurrences of this word, the first one being: Some options control the preproce

Re: *.mid vs *.midi

2008-05-19 Thread Mats Bengtsson
I would propose to move the remainder of this discussion off the mailing list. Regards /Mats Hans Aberg wrote: On 19 May 2008, at 14:02, immanuel litzroth wrote: It is of a formal grammar, since it does not define a sentence symbol, nor does it specify context dependencies. For the forma

Re: *.mid vs *.midi

2008-05-19 Thread Hans Aberg
On 19 May 2008, at 14:02, immanuel litzroth wrote: It is of a formal grammar, since it does not define a sentence symbol, nor does it specify context dependencies. For the formal definition of a grammar, see books on compiler construction, for example Waite & Goose, "Compiler Construction". Pl

Re: *.mid vs *.midi

2008-05-19 Thread immanuel litzroth
Quoting Hans Aberg <[EMAIL PROTECTED]>: > It is of a formal grammar, since it odes not define a sentence > symbol, nor does it specify context dependencies. For the formal > definition of a grammar, see books on compiler construction, for > example Waite & Goose, "Compiler Construction". P

Re: *.mid vs *.midi

2008-05-19 Thread Hans Aberg
On 19 May 2008, at 11:27, immanuel litzroth wrote: You can check the whole formal grammar of C++ processing on page 307 of the standard. It is of a formal grammar, since it odes not define a sentence symbol, nor does it specify context dependencies. For the formal definition of a grammar

Re: *.mid vs *.midi

2008-05-19 Thread immanuel litzroth
> C++ has the same preprocessor as C, and the same > grammar sentence symbol, > and a language subset. GCC has options for invoking the > preprocessor and language proper separate You can check the whole formal grammar of C++ processing on page 307 of the standard. The "language proper" is a

Re: *.mid vs *.midi

2008-05-18 Thread Hans Aberg
On 18 May 2008, at 22:47, immanuel litzroth wrote: I am talking about C. That was what my argument was about. Now you bring C++ -- Has somebody pointed out to you that that is a different standard? -- into the argument saying out that it does not have a "formal grammar". Are you making this

Re: *.mid vs *.midi

2008-05-18 Thread Hans Aberg
On 18 May 2008, at 19:55, immanuel litzroth wrote: So the C language itself does not have any #include directive. The C language standard is available at: http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf You'll see all the preprocessing directives explained there and no mention of a

Re: *.mid vs *.midi

2008-05-18 Thread immanuel litzroth
Quoting Hans Aberg <[EMAIL PROTECTED]>: > On 18 May 2008, at 15:16, immanuel litzroth wrote: > > >> So the C language itself does not > >> have any #include directive. The C language standard is available at: http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf You'll see all the preproces

Re: launch scripts (was: *.mid vs *.midi)

2008-05-18 Thread Hans Aberg
On 18 May 2008, at 14:56, fiëé visuëlle wrote: I used the existence of a PDF as indicator if LilyPond was successful - it says "file failed" very often even if the output is ok. OK. Perhaps Lilypond has the problem and not always produces the expected exit code. Also, you might put in

Re: *.mid vs *.midi

2008-05-18 Thread Hans Aberg
On 18 May 2008, at 15:16, immanuel litzroth wrote: So the C language itself does not have any #include directive. Implementation issue. There is no requirement for a separate preprocessor, ... In the C and C++ standards there are. ...and the fact that compilation happens in stages is a fe

Re: initial .ly files [was Re: *.mid vs *.midi]

2008-05-18 Thread Karl Hammar
Nicolas: > Le 18 mai 08 à 00:24, Karl Hammar a écrit : > > > Actually what I would like is some way to tell on the command line > > that > > this run should have /ancient fonts/c-clefs/modern clefs/... so I > > could > > easily switch style without having to write a new file. > > You can alre

Re: *.mid vs *.midi

2008-05-18 Thread immanuel litzroth
Quoting Hans Aberg <[EMAIL PROTECTED]>: > C is composed of two languages: the preprocessor, to which #include > > belongs, and merely composes the files into one compile unit, and > the > C compiler, which processes that. So the C language itself does not > > have any #include directive.

Re: launch scripts (was: *.mid vs *.midi)

2008-05-18 Thread fiëé visuëlle
Am 2008-05-18 um 13:57 schrieb Hans Aberg: This is my lily.sh script for OSX: - deletes previous myname.pdf - runs lilypond myname.ly - deletes old mylily.mid and renames myname.midi to myname.mid - deletes myname.ps - opens MIDI and PDF You don't have to remove older files, as they are over

Re: launch scripts (was: *.mid vs *.midi)

2008-05-18 Thread Hans Aberg
On 18 May 2008, at 12:55, fiëé visuëlle wrote: This is my lily.sh script for OSX: - deletes previous myname.pdf - runs lilypond myname.ly - deletes old mylily.mid and renames myname.midi to myname.mid - deletes myname.ps - opens MIDI and PDF You don't have to remove older files, as they are

Re: launch scripts (was: *.mid vs *.midi)

2008-05-18 Thread fiëé visuëlle
Am 2008-05-18 um 12:16 schrieb Hans Aberg: On UNIX, like OS X, one can run the command lilypond foo.ly && mv foo.midi foo.mid Easy to repeat - on OS X, use the up arrow key. Or write a script or alias. This is my lily.sh script for OSX: """ #!/bin/bash if [ -e $1.pdf ]; then rm $1.

Re: *.mid vs *.midi

2008-05-18 Thread Hans Aberg
On 18 May 2008, at 10:34, Valentin Villenave wrote: and if you are using makefiles, lilypond don't have to solve that problem, you could just as easily add an mv-line in the makefile. If we all were using makefiles (including the newbies on Win32), then we wouldn't be having this discussion at

Re: *.mid vs *.midi

2008-05-18 Thread Valentin Villenave
2008/5/18 Karl Hammar <[EMAIL PROTECTED]>: > and if you are using makefiles, lilypond don't have to solve that > problem, you could just as easily add an mv-line in the makefile. If we all were using makefiles (including the newbies on Win32), then we wouldn't be having this discussion at all :-)

Re: initial .ly files [was Re: *.mid vs *.midi]

2008-05-17 Thread Hans Aberg
On 18 May 2008, at 00:35, Karl Hammar wrote: If one has more that one file, .lilypond could be made into a directory instead. Various programs use this setup. The problem with this is if you want to share your lilypond files, then you migth have to include all your .lilypond directory, and s

Re: initial .ly files [was Re: *.mid vs *.midi]

2008-05-17 Thread Hans Aberg
On 18 May 2008, at 00:24, Karl Hammar wrote: This would walk down the path of C-like compilers. Is that a bad thing? It means only that it might be a good idea to think very carefully before walking down that path :-). C is a very old language, with a simple setup, leaving much to the us

Re: initial .ly files [was Re: *.mid vs *.midi]

2008-05-17 Thread Nicolas Sceaux
Le 18 mai 08 à 00:24, Karl Hammar a écrit : Actually what I would like is some way to tell on the command line that this run should have /ancient fonts/c-clefs/modern clefs/... so I could easily switch style without having to write a new file. You can already do this, using -d options in t

Re: *.mid vs *.midi

2008-05-17 Thread Karl Hammar
Valentin: > 2008/5/17 Han-Wen Nienhuys <[EMAIL PROTECTED]>: > > > we can have a -dmidi-extension=mid, and change the default for the > > Windows binary. > > Another feature that would be greatly appreciated (once again, this is > an idea from the French list) would be the ability to define separa

initial .ly files [was Re: *.mid vs *.midi]

2008-05-17 Thread Karl Hammar
se this setup. The problem with this is if you want to share your lilypond files, then you migth have to include all your .lilypond directory, and some things in there might conflict with other users .lilypond/*. It migth be better to be restrictive in what you implicitly include, and restric

initial .ly files [was Re: *.mid vs *.midi]

2008-05-17 Thread Karl Hammar
Hans: > On 17 May 2008, at 22:15, Karl Hammar wrote: ... > > I would be nice to be able to do like > > > > lilypond a.ly .. o.ly z.ly > > > > i.e. treat a.ly .. o.ly as if they where included in z.ly, without > > having to say so in z.ly. > > This would walk down the path of C-like compilers. I

Re: *.mid vs *.midi

2008-05-17 Thread Hans Aberg
On 17 May 2008, at 23:00, Bertalan Fodor wrote: Also .lilypond is a good idea, it should work as init.ly but from the user's home dir. If one has more that one file, .lilypond could be made into a directory instead. Various programs use this setup. Hans

Re: *.mid vs *.midi

2008-05-17 Thread Hans Aberg
On 17 May 2008, at 22:52, immanuel litzroth wrote: Haskell does not "deduce" what to include. You have to explicitly import each module or no magic happens. Can't really see the big difference with #include "stdio.h" and import Unix. C is composed of two languages: the preprocessor, to whic

Re: *.mid vs *.midi

2008-05-17 Thread Valentin Villenave
2008/5/17 Han-Wen Nienhuys <[EMAIL PROTECTED]>: > we can have a -dmidi-extension=mid, and change the default for the > Windows binary. Another feature that would be greatly appreciated (once again, this is an idea from the French list) would be the ability to define separate output paths for midi

Re: *.mid vs *.midi

2008-05-17 Thread Bertalan Fodor
There is ly:option or something that makes command line options settable from the LilyPond file. Also .lilypond is a good idea, it should work as init.ly but from the user's home dir. Hans Aberg írta: On 17 May 2008, at 16:48, Han-Wen Nienhuys wrote: I think the proper solution is to softc

Re: *.mid vs *.midi

2008-05-17 Thread immanuel litzroth
Haskell does not "deduce" what to include. You have to explicitly import each module or no magic happens. Can't really see the big difference with #include "stdio.h" and import Unix. The point is I believe that you are guaranteed that what is linked is is is compatible with your declarations, th

Re: *.mid vs *.midi

2008-05-17 Thread Hans Aberg
On 17 May 2008, at 22:15, Karl Hammar wrote: A startup file would be about the same as an initial \include. Perhaps it is not needed in a compiler. I would be nice to be able to do like lilypond a.ly .. o.ly z.ly i.e. treat a.ly .. o.ly as if they where included in z.ly, without having t

Re: *.mid vs *.midi

2008-05-17 Thread Karl Hammar
Hans: > On 17 May 2008, at 16:48, Han-Wen Nienhuys wrote: > > > I think the proper solution is to softcode this, so > > we can have a -dmidi-extension=mid, ... ... > On UNIX system, one might have a startup file $HOME/.lilypond > defining such options. Then the startup arguments (and .ly files)

Re: *.mid vs *.midi

2008-05-17 Thread Karl Hammar
Han-Wen: > 2008/5/16 Bertalan Fodor (LilyPondTool) <[EMAIL PROTECTED]>: > > Why always speaking about broken OS-es and softwares? We want to make ... > I actually prefer being able to understand file names, and .midi makes > more sense to me. I think the proper solution is to softcode this, so > w

Re: *.mid vs *.midi

2008-05-17 Thread Hans Aberg
On 17 May 2008, at 16:48, Han-Wen Nienhuys wrote: I think the proper solution is to softcode this, so we can have a -dmidi-extension=mid, ... Any takers for this? In addition, one might be able to put it into the .ly file. If both options (startup and within file) are invoked, it is safest

Re: *.mid vs *.midi

2008-05-17 Thread Han-Wen Nienhuys
2008/5/16 Bertalan Fodor (LilyPondTool) <[EMAIL PROTECTED]>: > Why always speaking about broken OS-es and softwares? We want to make > LilyPond better, don't we? > LilyPond generates .midi files, which are not usable for many applications. > If LilyPond generated .mid files, it would work on every

Re: *.mid vs *.midi

2008-05-16 Thread Hans Aberg
On 16 May 2008, at 08:23, Graham Percival wrote: OSX *isn't* stupid, but it pretends to be. I have no clue what the Aqua people were up to. :( The underlying UNIX does not care about file extensions: it is the Finder program that does. On UFS (UNIX file system), the meta-data is stored i

Re: *.mid vs *.midi

2008-05-16 Thread Bertalan Fodor (LilyPondTool)
Why always speaking about broken OS-es and softwares? We want to make LilyPond better, don't we? LilyPond generates .midi files, which are not usable for many applications. If LilyPond generated .mid files, it would work on every application (except LilyPondTool :-), which I think unfortunately

Re: *.mid vs *.midi

2008-05-15 Thread Graham Percival
On Thu, 15 May 2008 22:55:50 -0700 Michael David Crawford <[EMAIL PROTECTED]> wrote: > But when Apple bought NeXT from Steve Jobs, the Cocoa framework that > became Mac OS X knew nothing of types and creator codes. Now the Mac > is borked in the same way windows is. Yes and no. The underlying

Re: *.mid vs *.midi

2008-05-15 Thread Michael David Crawford
Karl Hammar wrote: I consider it a bug that programs are picky about file extensions. There was a time when the Mac OS didn't care about file extensions. The filesystem had a type and a "creator code" in the filesystem metadata, hidden from the user. The user had complete control over the

Re: *.mid vs *.midi

2008-05-15 Thread Karl Hammar
> Tell me one application that allows midi and doesn't allow mid. I consider it a bug that programs are picky about file extensions. > I think this decision of choosing .midi was the result of an unpractical > idealistic approach. > > I consider this a bug. > > Bert Regards, /Karl ___

Re: *.mid vs *.midi

2008-05-15 Thread Bertalan Fodor (LilyPondTool)
Tell me one application that allows midi and doesn't allow mid. I think this decision of choosing .midi was the result of an unpractical idealistic approach. I consider this a bug. Bert Valentin Villenave wrote: 2008/5/15 Karl Hammar <[EMAIL PROTECTED]>: Perhaps you have better luck if

Re: *.mid vs *.midi

2008-05-15 Thread CDon
message in context: http://www.nabble.com/*.mid-vs-*.midi-tp17235029p17253856.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user

Re: *.mid vs *.midi

2008-05-15 Thread Reinhold Kainhofer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Donnerstag, 15. Mai 2008 schrieb Valentin Villenave: > I tried to have a look at the MIDI 1.0 specs to see if there was any > "official" extension, but couldn't find one. Windows users seem to > believe that .mid is more legitimate than .midi, but

Re: *.mid vs *.midi

2008-05-15 Thread Valentin Villenave
2008/5/15 Karl Hammar <[EMAIL PROTECTED]>: > Perhaps you have better luck if you change the "midi" to "mid" > and recompile. The question that was asked on the French list about also implied that these files should be typed as .mid by default... I tried to have a look at the MIDI 1.0 specs to see

Re: *.mid vs *.midi

2008-05-15 Thread Karl Hammar
CDon: > Karl Hammar wrote: > > > > change the .midi to .mid, and you should get what you want (though I > > have not tested it). > > > > Thanks Karl, this looks promising but does not work. There is a TODO at the > top of the file stating: > > ";; this is broken: we should not ever export vari

Re: *.mid vs *.midi

2008-05-14 Thread CDon
from Scheme." It is not clear what this is referring to, but the implication is that the whole file is broken. I then assume that setting the .midi extension must be done some other place (?). Don -- View this message in context: http://www.nabble.com/*.mid-vs-*.midi-tp17235029p17241827.

Re: *.mid vs *.midi

2008-05-14 Thread Valentin Villenave
2008/5/14 Karl Hammar <[EMAIL PROTECTED]>: > From version 2.8 (I think) and up, find the file: > > midi.scm Is it not performance.cc? (in this case it would require a recompilation) We recently had the same question on the French mailing list. Cheers, Valentin ___

Re: *.mid vs *.midi

2008-05-14 Thread Karl Hammar
Don: > Is there a way to direct LilyPond to use the .mid extension as opposed > to .midi? I see in the archives that the choice of extensions has been > discussed, but I can find no way to change it. >From version 2.8 (I think) and up, find the file: midi.scm Edit that file, go to the end of

*.mid vs *.midi

2008-05-14 Thread Don Whitener
Is there a way to direct LilyPond to use the .mid extension as opposed to .midi? I see in the archives that the choice of extensions has been discussed, but I can find no way to change it. CDon___ lilypond-user mailing list lilypond-user@gnu.org http: