Re: [Tex-music] PMX and Mac OS X

2010-11-20 Thread Christian Mondrup

Philipp Neukel wrote:

Hey everyone,

I have a funny thing to tell you: It works now.

The question: How?
Honestly - I am not sure.
It works whenever I have pmxab in the same folder as the pmx-file and I
use it via

$ cd .../folder
$ ./pmxab file.pmx

I replaced the pmxab in usr/local/bin many times by now, but it never
worked, only when I do it this way. It looks like a property problem.
But it cannot be for it won't work when i am logged in as root.

Thanks for your help, I would have given up without you and it was you
suggestion Jill-Jênn, which gave me the idea and the right command at hand.

Thanks a lot.

And here is my first question as real PMX user:

There are so many

\hardspace{pt}%

in the generated tex-file. It is annoying. It gives me

bar 3
! Missing number, treated as zero.

*
 *
***pt
\hardspace #1->\ch...@nopen \...@rmskip \...@v #1
\addspace \...@v \...@spc
l.53 \hardspace{pt}
%
?

basically with every bar. Even if I make two or three pmx-runs. Is this
supposed to happen?


I suggest that you post your pmx source code such that TeXpert 
subscribers can have a look at it and maybe spot the problem


--
Christian Mondrup, Archive Editor
WIMA: Werner Icking Music Archive
http://icking-music-archive.org/
---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] PMX and Mac OS X

2010-11-20 Thread Philipp Neukel

OK all.

It works now. I cannot tell you why, because I did not do anything  
than use it the way it did. And now it works the way it should and I  
can use PMX perfectly. There are just a few problems left, but they  
are propably human dependent or else I will write again.


THANKS

Philipp
D-40472
---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] PMX and Mac OS X

2010-11-19 Thread Jill-Jênn VIE
2010/11/19 Philipp Neukel :
> Hey everyone,
>
> I have a funny thing to tell you: It works now.
>
> The question: How?
> Honestly - I am not sure.
> It works whenever I have pmxab in the same folder as the pmx-file and I use
> it via
>
> $ cd .../folder
> $ ./pmxab file.pmx
>
> I replaced the pmxab in usr/local/bin many times by now, but it never
> worked, only when I do it this way. It looks like a property problem. But it
> cannot be for it won't work when i am logged in as root.
>
> Thanks for your help, I would have given up without you and it was you
> suggestion Jill-Jênn, which gave me the idea and the right command at hand.
>
> Thanks a lot.

I advise you to make a directory bin is your home directory (~/bin),
then put pmxab in it, then:
$ emacs .tcshrc
I bet the problem lies in it, could you please tell me what you see in it?
(Oh, wait, is it indeed written tcsh in the title of your terminal
window? If it's written bash, you have to replace .tcshrc with
.profile)

If you can't use emacs, just do:
$ mv .tcshrc LOOOL
So you can open LOOOL with Smultron and modify it.

Put:
setenv PATH $HOME/bin:$PATH
at the end.

Then, obviously:
$ mv LOOOL .tcshrc

So ~/bin/pmxab will prevail over /usr/local/bin/pmxab (don't know why
this one doesn't work though).

> And here is my first question as real PMX user:
>
> There are so many
>
> \hardspace{pt}%
>
> in the generated tex-file. It is annoying. It gives me
>
> bar 3
> ! Missing number, treated as zero.
> 
> *
>  *
> ***pt
> \hardspace #1->\ch...@nopen \...@rmskip \...@v #1
> \addspace \...@v \...@spc
> l.53 \hardspace{pt}
> %
> ?
>
> basically with every bar. Even if I make two or three pmx-runs. Is this
> supposed to happen?

This is due to your indentation (the last number is the preamble). It
should be like 0.085 if it is “Piano”, so maybe 0.09 for “Klarinette
in B”.

Don't forget to musixflx!

-- 
Jill-Jênn

---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] PMX and Mac OS X

2010-11-19 Thread Philipp Neukel

Hey everyone,

I have a funny thing to tell you: It works now.

The question: How?
Honestly - I am not sure.
It works whenever I have pmxab in the same folder as the pmx-file and  
I use it via


$ cd .../folder
$ ./pmxab file.pmx

I replaced the pmxab in usr/local/bin many times by now, but it never  
worked, only when I do it this way. It looks like a property problem.  
But it cannot be for it won't work when i am logged in as root.


Thanks for your help, I would have given up without you and it was you  
suggestion Jill-Jênn, which gave me the idea and the right command at  
hand.


Thanks a lot.

And here is my first question as real PMX user:

There are so many

\hardspace{pt}%

in the generated tex-file. It is annoying. It gives me

bar 3
! Missing number, treated as zero.

*
 *
***pt
\hardspace #1->\ch...@nopen \...@rmskip \...@v #1
\addspace \...@v \...@spc
l.53 \hardspace{pt}
%
?

basically with every bar. Even if I make two or three pmx-runs. Is  
this supposed to happen?


Philipp
D-40472



---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] PMX and Mac OS X

2010-11-19 Thread Jill-Jênn VIE
Philipp, I just downloaded the PPC version of pmxab, and ./pmxab
barsant.pmx worked. Maybe you have a pmxab somewhere in your system
that is corrupted.
So, if:
$ cd ~/Downloads/pmx2521
$ ./pmxab barsant.pmx
Works, you should do:
$ which pmxab
To know where the binary is located and replace it with the one you downloaded.

2010/11/19 Bernhard Lang :
> after having reinstalled fink and gcc45 (which needs a download of the java 
> package from developers.apple.com because Apple has broken some dependencies 
> in the packages and gcc45 contains par default also java) gfortran is 
> accessible and compiles pmx2521.f out of the box, barsant.pmx is translated 
> into barsant.tex without problems.

I didn't need to do this o_O but OK.

> gfortran -o pmx2521.o -c pmx2521.f
> gfortran -o pmxab -static-libgfortran -static-libsystem pmx2521.o

Oh, so these are the commands.

> thus only what appears to be a basic system library is left as dependency. 
> The pmxab binary increases thereby by roughly 200k, peanuts in our days. If 
> anyone wants to try whether this binary runs on her/his Mac (OS X Version 
> 10.6), I'll send you the file for testing.
>
> Jill-Jênn: in case the binary runs also on other machines, with the same 
> version of Mac OS I'll let you know. We could provide different statically 
> linked pmx versions on WIMA for those who don't happen to have gfortran 
> installed on their computer.

Please send it to me, I'll try it on an Intel MacBook under 10.5 (the
question you may ask is: how many Mac do I have?). Else I'll make
another binary like you did.

-- 
Jill-Jênn
http://www.jill-jenn.net

---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] PMX and Mac OS X

2010-11-19 Thread Bernhard Lang
after having reinstalled fink and gcc45 (which needs a download of the java 
package from developers.apple.com because Apple has broken some dependencies in 
the packages and gcc45 contains par default also java) gfortran is accessible 
and compiles pmx2521.f out of the box, barsant.pmx is translated into 
barsant.tex without problems.

when specifying to link against the static gfortran and gcc-system libraries, 
the dependencies on libgfortran.*.dylib and libgcc_s.*.dylib disappear.

gfortran -o pmx2521.o -c pmx2521.f
gfortran -o pmxab -static-libgfortran -static-libsystem pmx2521.o

yields

$ otool -L pmxab
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 
125.2.1)

thus only what appears to be a basic system library is left as dependency. The 
pmxab binary increases thereby by roughly 200k, peanuts in our days. If anyone 
wants to try whether this binary runs on her/his Mac (OS X Version 10.6), I'll 
send you the file for testing.

Jill-Jênn: in case the binary runs also on other machines, with the same 
version of Mac OS I'll let you know. We could provide different statically 
linked pmx versions on WIMA for those who don't happen to have gfortran 
installed on their computer.

best regards
Bernhard


---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] PMX and Mac OS X

2010-11-19 Thread Jill-Jênn VIE
2010/11/19 Bernhard Lang :
> 1st attempt, run the binary pmxab: the compiled pmxab relies on a dynamically 
> linked library called libgfortran.3.dylib which is supposed to be in the 
> directory /usr/local/gfortran/lib/ which is of course not there.
>
>> pmxab
> dyld: Library not loaded: /usr/local/gfortran/lib/libgfortran.3.dylib
>  Referenced from: /Users/bernhard/temp/pmx/pmx2521-OSX-Intel/./pmxab
>  Reason: image not found
> Trace/BPT trap

I'm so sorry. I indeed compiled it with gfortran (don't remember if I
used a PKG file or the fink version, but I fink it was think (or the
contrary)), but I should have used extra options. I didn't know it
would use such a dylib file.

> 3rd attempt, install f2c from fink: local problem, after reinstalling fink, 
> f2c provided by fink runs now, but the package doesn't provide the necessary 
> library libf2c or similar

What about MacPorts? I dont have MacPorts here so I can't tell you if it exists.

2010/11/19 Philipp Neukel :
> Just to let you know, maybe you can see the mistake:
>
> I made a large amount of new test.pmx files playing around with the Smultron
> encoding settings (all als plain text Document): No effect (but none
> expected)

OK. UTF-8 is better.

> I completely reinstalled PMX:
> pmxab and scor2prt to usr/local/bin

So I assume:
$ which pmxab
Returns: “/usr/local/bin/pmxab”?

> pmx.tex to usr/local/texlive/texmf-local/tex/generic/PMX

I assume you downloaded the PPC version (sorry to ask)?

> I moved pmx.tex to usr/local/texlive/texmf-local/tex/generic/musixtex but
> moved it back after it did not work

This file is important for the compilation of the MusiXTeX file.

> I made an individual texhash run after each change

It is important when you modify the $TEXMFLOCAL folder.

> I tried all the changes in all possible combinations. Just consider that
> time!

:/

> Nothing helped.

:(

> I read Bernhard's Mail today about the compiling and programming problems. I
> just used the Mac OS X files from the WIMA page. Could that be my mistake?
> What do I have to do to compile all that myself?
> Considering I never installed or used anything like that: What do I have to
> download and install in what order, how, where on the HD?

By chance, do you have fink? I assume you don't. Try:
$ which fink
In the Terminal.

This afternoon, I'll be in front of an iMac G5 PPC too. I'll install
pmxab again as well and tell you.

-- 
Jill-Jênn
http://www.jill-jenn.net

---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] PMX and Mac OS X

2010-11-19 Thread Philipp Neukel

Just to let you know, maybe you can see the mistake:

I made a large amount of new test.pmx files playing around with the  
Smultron encoding settings (all als plain text Document): No effect  
(but none expected)


I completely reinstalled PMX:
pmxab and scor2prt to usr/local/bin
pmx.tex to usr/local/texlive/texmf-local/tex/generic/PMX

I placed an alias of pmxab in usr/local/texlive/texmf-local/bin but  
deleted it after it did not work


I moved pmx.tex to usr/local/texlive/texmf-local/tex/generic/musixtex  
but moved it back after it did not work


I made an individual texhash run after each change

I did all that once more while using the super-user to exclude  
property problems


I tried all the changes in all possible combinations. Just consider  
that time!


Nothing helped.

I read Bernhard's Mail today about the compiling and programming  
problems. I just used the Mac OS X files from the WIMA page. Could  
that be my mistake? What do I have to do to compile all that myself?
Considering I never installed or used anything like that: What do I  
have to download and install in what order, how, where on the HD?



Philipp
D-40472
---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] PMX and Mac OS X

2010-11-19 Thread Bernhard Lang
hi everybody

to find out what could be Philipp's problem (and to get PMX back to life after 
a system upgrade from Mac OS X 10.5 to 10.6) I tried to install the intel386 
version for MacOS provided on the WIMA page ... and failed

1st attempt, run the binary pmxab: the compiled pmxab relies on a dynamically 
linked library called libgfortran.3.dylib which is supposed to be in the 
directory /usr/local/gfortran/lib/ which is of course not there.

> pmxab
dyld: Library not loaded: /usr/local/gfortran/lib/libgfortran.3.dylib
  Referenced from: /Users/bernhard/temp/pmx/pmx2521-OSX-Intel/./pmxab
  Reason: image not found
Trace/BPT trap

2nd attempt, recompile the source pmxab.c: it relies on the package f2c being 
installed which isn't there either

3rd attempt, install f2c from fink: local problem, after reinstalling fink, f2c 
provided by fink runs now, but the package doesn't provide the necessary 
library libf2c or similar

4th attempt, install f2c from sources: what you get at http://netlib.org/f2c/ 
is a collection of files which have to be downloaded one by one, compiling 
yields binaries in the a.out form. Linking stops with a 32bit/64bit mix-up.

other possible attempts: install a fortran compiler or recompile gcc as to 
include th fortran front end, no time to do that now


At the bottom line, this doesn't look very helpful or encouraging. We should 
probably better provide statically linked binaries which cary the necessary 
libraries already with them and depend only on the Darwin interface of the 
operating system version compiled against.


all best
Bernhard
---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] PMX and Mac OS X

2010-11-18 Thread Don Simons
Philipp, I'm terribly sorry you're have such problems with MAC OS. Since I
don't do MAC, I'm afraid I can't help much, although I'm going to be near
one over Thanksgiving and if this is still going on I can spend a little
time on it. Just FYI, the message about the last non-blank character comes
from PMX, but not the one "open: No such file or directory apparent state:
unit 12 named."

I really hope you can get PMX to work.

--Don Simons

>-Original Message-
>From: tex-music-boun...@tug.org [mailto:tex-music-boun...@tug.org] On
>Behalf Of Philipp Neukel
>Sent: Thursday, November 18, 2010 3:05 PM
>To: Werner Icking Music Archive
>Subject: Re: [Tex-music] PMX and Mac OS X
>
>Still won't work.
>Thanks for your help so far. I am going to spend some time tomorrow
>with it.
>
>What really makes me think in this error:
>
>-
>.
>
>Starting second PMX pass
>
>
>   Bar 1  Bar 2  Bar 3  Bar 4  Bar 5  Bar 6  Bar 7  Bar 8open: No such
>file or directory
>apparent state:  unit 12 named.
>
>-
>
>is the "open: No such file or directory" part. What is he looking for
>which is missing?
>
>Philipp
>D-40472
>---
>TeX-music@tug.org mailing list
>If you want to unsubscribe or look at the archives, go to
>http://tug.org/mailman/listinfo/tex-music


---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] PMX and Mac OS X

2010-11-18 Thread Philipp Neukel

Still won't work.
Thanks for your help so far. I am going to spend some time tomorrow  
with it.


What really makes me think in this error:

-
…

Starting second PMX pass


  Bar 1  Bar 2  Bar 3  Bar 4  Bar 5  Bar 6  Bar 7  Bar 8open: No such  
file or directory

apparent state:  unit 12 named…

-

is the "open: No such file or directory" part. What is he looking for  
which is missing?


Philipp
D-40472
---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] PMX and Mac OS X

2010-11-18 Thread Jill-Jênn VIE
Le 18 nov. 2010 à 23:22, Philipp Neukel a écrit :

> OK, I got emacs and Smultron. What am I to do now?

You should copy your PMX code into a new Smultron (or emacs) file, so that the 
end of lines are the correct ones.

> I now used a completely unopened barsant - newly extracted from the zip-file. 
> Still won't work.


I don't understand why.
After downloading the PPC version of the package, when you do:
$ cd Downloads/pmx2521-OSX/
(well, the correct path)
$ ./pmxab barsant.pmx
Do you get the same error?

-- 
Jill-Jênn
http://www.jill-jenn.net


---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] PMX and Mac OS X

2010-11-18 Thread Philipp Neukel

OK, I got emacs and Smultron. What am I to do now?

I now used a completely unopened barsant - newly extracted from the  
zip-file. Still won't work.


Philipp
D-40472
---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] PMX and Mac OS X

2010-11-18 Thread Jill-Jênn VIE
Oh, I think I understood. It's because of the \r on Mac but \n on UNIX (but I 
don't understand why barsant.pmx didn't work, did you open it with TextEdit as 
well?).

Can you use emacs? Else, try Smultron.
http://smultron.sourceforge.net/

Le 18 nov. 2010 à 22:42, Philipp Neukel a écrit :

> Is there actually a way to use pmx with TeXShop?


Don't think so. I asked because I didn't recognize the output.

-- 
Jill-Jênn
http://www.jill-jenn.net


---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] PMX and Mac OS X

2010-11-18 Thread Philipp Neukel

Thanks for your help - although it did not help YET

Slashes at the line end made no difference.
Neither did zip/unzip.

Yes i am using pmxab with the terminal. The pmx file is written with  
textedit and TeXworks. Independently tested.

Is there actually a way to use pmx with TeXShop?

Philipp
D-40472
---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] PMX and Mac OS X

2010-11-18 Thread Bernhard Lang
Hi Philipp

I can't test your code right now because I just have updated my Mac OS to 10.6 
which broke all the programs still compiled for PPC. However, the line end 
thing (line end character in Mac != DOS != UN*X) you can test easily with a 
tool like zip/unzip:

> zip temp.zip test.pmx
> unzip -o -a temp.zip

This will adapt all the line endings within a couple of seconds. The "last non 
blank character" with ASCIi code 114/191 message could point to some garbage in 
your file which is just not shown by your editor.

The rest of the error message and the one on barsant.pmx looks really weird--no 
idea so far.

As soon as I got PMX back to life on my compi I'll try your code.

regards
Bernhard


On Nov 18, 2010, at 9:50 , Philipp Neukel wrote:

> Hello Everyone
> 
> I have been using MusixTeX for some time now because I was not able to get 
> PMX working at all - whatever the reasons may have been. But now that my 
> musical education is getting more serious and therefore my need to write much 
> music in a short time is getting urgent I started learning PMX today. I did a 
> lot of reading and installed everything perfectly.
> This is my Setup:
> 
> iMac G5 (PPC)
> Mac OS 10.5.8
> MusixTeX 114
> PMX 2.5121
> 
> MusixTeX works just fine and did so for some months by now. But there seems 
> to be a problem in the second pass of PMX.
> 
> this is my test-file:
> 
> -
> 
> 1 1 4 4 0 6 0 -2
> 1 2 16 10
> %
> Klarinette in B
> %
> 0
> ./
> ( b2 f4- ) r | r2 r4 r8d d15 | ( d2 b4 ) r4 | r4 ( c45 e g4- ) | r4 ( a44 g4+ 
> f )
> % Takt 7
> b45 r4 r2 | ( d25 b4 c | f44dd a3 g f4 ) r4
> %
> 
> -
> 
> And this is what I get:
> 
> -
> 
> This is PMX, Version 2.521, 16 May 09
> Opening /Users/philipp/Desktop/pmxtest/test.pmx
> 
> Starting first PMX pass
> 
> WARNING:
> Last non-blank character is "r", not "/,%"
> ASCII code: 114
> 
>  Bar 1  Bar 2  Bar 3  Bar 4  Bar 5  Bar 6  Bar 7  Bar 8
> WARNING:
> Last non-blank character is "?", not "/,%"
> ASCII code: 191
> 
> Done with first pass
> 
> 
> Starting second PMX pass
> 
> 
>  Bar 1  Bar 2  Bar 3  Bar 4  Bar 5  Bar 6  Bar 7  Bar 8open: No such file or 
> directory
> apparent state: unit 12 named .//Users/philipp/Desktop/pmxtest/test.tex
> lately writing sequential formatted external IO
> Abort trap
> 
> -
> 
> No .tex file is generated.
> With barsant.pmx it is exactly the same:
> 
> -
> 
> Starting second PMX pass
> 
> 
> WARNING
>   In a title block, you have specified instrument and/or
>   composer but no title for the piece.
> 
>  Bar 1  Bar 2  Bar 3  Bar 4  Bar 5  Bar 6  Bar 7  Bar 8  Bar 9  Bar 10  Bar 11
>  Bar 12  Bar 13  Bar 14  Bar 15  Bar 16  Bar 17open: No such file or directory
> apparent state: unit 12 named .//Users/philipp/Desktop/pmxtest/barsant.tex
> lately writing sequential formatted external IO
> Abort trap
> 
> -
> 
> What am I to do to get this working? I have read in the archive that there 
> seems to be a problem with line endings but have no idea what was meant.
> 
> I hope there are Mac Users out there willing to help
> 
> Philipp
> D-40472
> ---
> TeX-music@tug.org mailing list
> If you want to unsubscribe or look at the archives, go to 
> http://tug.org/mailman/listinfo/tex-music


---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] PMX and Mac OS X

2010-11-18 Thread Jill-Jênn VIE
Le 18 nov. 2010 à 21:50, Philipp Neukel a écrit :

> I have been using MusixTeX for some time now because I was not able to get 
> PMX working at all - whatever the reasons may have been. But now that my 
> musical education is getting more serious and therefore my need to write much 
> music in a short time is getting urgent I started learning PMX today. I did a 
> lot of reading and installed everything perfectly.

Great idea. PMX FTW \o/ (sorry for the kikoolol messages).

> 1 1 4 4 0 6 0 -2
> 1 2 16 10
> %
> Klarinette in B
> %
> 0
> ./
> ( b2 f4- ) r | r2 r4 r8d d15 | ( d2 b4 ) r4 | r4 ( c45 e g4- ) | r4 ( a44 g4+ 
> f )
> % Takt 7
> b45 r4 r2 | ( d25 b4 c | f44dd a3 g f4 ) r4
> %

You need to put a slash at the end of each line.

( b2 f4- ) r | r2 r4 r8d d15 | ( d2 b4 ) r4 | r4 ( c45 e g4- ) | r4 ( a44 g4+ f 
) /

b45 r4 r2 | ( d25 b4 c | f44dd a3 g f4 ) r4 /

> I hope there are Mac Users out there willing to help


Yup. I don't understand why we don't get the same output though. Do you use 
pmxab or something with TeXShop?

-- 
Jill-Jênn
http://www.jill-jenn.net


---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music