Re: [Tex-music] musixps and extracting separate parts
|On Sun, 19 Jun 2011, Bob Tennent wrote: | | If you already have a musixtex score and don't want to start again using | pmx, you can suppress instruments as follows: [...] | |Could you please provide an example with 3 or 4 instruments and 3 or 4 |measures? The original source is in http://icking-music-archive.org/scores/bach/bwv988/quod.zip Note that the other parts are indeed suppressed, but the note spacing has to be corrected in the resulting part score. Also multiple-bar rests. Bob __ \input musixtex.tex \input musixsty.tex \def\tr#1{\zcharnote{#1}{\ppff tr}}% \def\pince#1{\shake{#1}}% \vsize9.75in \voffset-0.5in \hsize7.0in \hoffset-0.25in \smallmusicsize \bigaccid \advance\parindent by 10pt \def\writebarno{\llap{\ninebf\the\barno\barnoadd}}% \def\raisebarno{4\internote}% \def\shiftbarno{1.5\Interligne}% \nobarnumbers \geometricskipscale \def\omit#1{}% \def\tql#1#2{\tbl{#1}\qb{#1}{#2}} \def\tqu#1#2{\tbu{#1}\qb{#1}{#2}} \def\nbbqu#1#2{\nbbu{#1}\qb{#1}{#2}} \def\nbbql#1#2{\nbbl{#1}\qb{#1}{#2}} \def\nqql#1#2{\roffset{0.25}{\tbbl{#1}\tbbl{#1}\qb{#1}{#2}}} \def\nqqu#1#2{\roffset{0.25}{\tbbu{#1}\tbbu{#1}\qb{#1}{#2}}} \def\tqql#1#2{\roffset{0.25}{\tbbl{#1}\tbl{#1}\qb{#1}{#2}}} \def\tqqu#1#2{\roffset{0.25}{\tbbu{#1}\tbu{#1}\qb{#1}{#2}}} \def\tqqql#1#2{\roffset{0.25}{\tbbbl{#1}\tbl{#1}\qb{#1}{#2}}} \def\tqqqu#1#2{\roffset{0.25}{\tbbbu{#1}\tbu{#1}\qb{#1}{#2}}} \instrumentnumber1 %\setclef1\bass\setbassclefsymbol1\bassoct %\setclef4\treble\settrebleclefsymbol4\trebleoct \catcodesmusic \generalsignature{+1} \generalmeter\meterC \setname1{A} %\setname2{T} %\setname3{A} %\setname4{S} %\songtop4 %\songbottom1 \fulltitle{Quodlibet} \subtitle{Variation 30 of the Goldberg Variations for Clavier} \title{Quodlibet} \author{J. S. Bach (1685-1750)} \shortauthor{J. S. Bach} \othermention{Arranged for Recorders by R. D. Tennent} \maketitle \startbarno=0 \nobarnumbers \stafftopmarg=4.0\Interligne% \staffbotmarg=4.0\Interligne% %\setinterinstrument3{2.5\internote}% \startpiece\addspace\afterruleskip% \makeatletter \def\vnotes#1\elemskip#2#3#4#5\en{\noteskip#1\@l@mskip\@vnotes#4\en}% \makeatother \systemnumbers% \Notes\ds\cu d\ds\ds\en \bar%1 \Notes\hl N\ibu1g2\qb1{ghi}\tqu1j\hpause\en \Notes\hl M\ibl1k{-2}\qb1k\en \notes\nbbl1\qb1j\tql1i\qp\en \Notes\ibu1h0\qb1h\ds\en \notes\nbbu1\qb1g\tqu1h\cu d\en \def\atnextbar{\znotes\centerpause\en}% \bar%2 \Notes\hl L\ibu1i{-2}\qb1i\tqu1h\ql n\ibu3g2\qb3{gh}\en \Notes\itied1g\qu g\ql n\qb3i\tqu3j\en \Notes\ql{.K}\ttie1\qu g\ql o\ibl3k{-2}\qb3k\en \notes\nbbl3\qb3j\tql3i\en \Notes\ibu1f0\pince{n}\qb1f\cl o\cu h\en \notes\cu J\nbbu1\qb1e\tqu1f\ds\ds\en \bar%3 \Notes\hu I\qu g\ibl2n{-1}\qb2{no}\ql k\en \Notes\ds\cl k\qb2{n}\tql2{=m}\ql k\en \Notes\hu J\ibu1j{-2}\qb1{ji}\ibl2j{0}\qb2{lk}\ql l\en \Notes\qb1h\tqu1g\qb2j\tql2p\ql l\en \bar%4 \Notes\hl K\itied1f\pince{n}\qu f\ibl2o{-1}\qb2{on}\ibl3k{-1}\qb3{kl}\en \notes\ttie1\ibbu1e{-2}\qb1f\tbbu1\qb1e\qb2o\qb3k\en %\vnotes1.5\elemskip\nbbbu1\qb1e\tbbu1\qb1f\en \Notes\itied1d\tqu1d\tql2m\tql3j\en \Notes\qu G\ttie1\qu d\ibl2n{-2}\qb2n\tql2m\ibu3h{-1}\pince{p}\qb3i\tqu3h\en \Notes\ds\qp\ibl2n{-5}\qb2n\qu g\en \notes\ibbl0b{-1}\qb0b\tql0a\tql2k\en \bar%5 \endpiece% \eject \end --- 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] musixps and extracting separate parts
On Mon, 20 Jun 2011, Bob Tennent wrote: |Could you please provide an example with 3 or 4 instruments and 3 or 4 |measures? The original source is in http://icking-music-archive.org/scores/bach/bwv988/quod.zip Sorry, quod.tex compiles nicely, but it provides the score and doesn't include the \def\vnotes... of your message. How can I suppress some instruments? Bye, -- Jean-Pierre Coulon cou...@obs-nice.fr --- 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] musixps and extracting separate parts
| |Could you please provide an example with 3 or 4 instruments and 3 or 4 | |measures? | | The original source is in | | http://icking-music-archive.org/scores/bach/bwv988/quod.zip | |Sorry, quod.tex compiles nicely, but it provides the score and doesn't |include |the \def\vnotes... of your message. How can I suppress some instruments? The example was in the rest of the message (after the _... ). Bob --- 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] musixps and extracting separate parts
On Mon, 20 Jun 2011, Bob Tennent wrote: The example was in the rest of the message (after the _... ). Sorry I thought the rest of the message was identical to quod.tex. Now I obtain the Alto part. How can I switch to another part? -- Jean-Pierre Coulon cou...@obs-nice.fr --- 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] musixps and extracting separate parts
|Now I |obtain the Alto part. How can I switch to another part? For example, to get the S part, change #4 to #5 on the right of the \def\vnotes and adjust the \setname1 and \setclef1 accordingly. Bob --- 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] musixps and extracting separate parts
On Mon, 2011-06-20 at 06:46 -0400, Bob Tennent wrote: |On Sun, 19 Jun 2011, Bob Tennent wrote: | | If you already have a musixtex score and don't want to start again using | pmx, you can suppress instruments as follows: [...] | |Could you please provide an example with 3 or 4 instruments and 3 or 4 |measures? The original source is in http://icking-music-archive.org/scores/bach/bwv988/quod.zip Note that the other parts are indeed suppressed, but the note spacing has to be corrected in the resulting part score. Also multiple-bar rests. Neat; it works! But what would you change to print one of the other three parts instead? (Yes, I am treating this as a magic incantation of which I understand little, and yes, I do feel like the sorcer's apprentice.) Thanks, Terry. Bob __ \input musixtex.tex \input musixsty.tex \def\tr#1{\zcharnote{#1}{\ppff tr}}% \def\pince#1{\shake{#1}}% \vsize9.75in \voffset-0.5in \hsize7.0in \hoffset-0.25in \smallmusicsize \bigaccid \advance\parindent by 10pt \def\writebarno{\llap{\ninebf\the\barno\barnoadd}}% \def\raisebarno{4\internote}% \def\shiftbarno{1.5\Interligne}% \nobarnumbers \geometricskipscale \def\omit#1{}% \def\tql#1#2{\tbl{#1}\qb{#1}{#2}} \def\tqu#1#2{\tbu{#1}\qb{#1}{#2}} \def\nbbqu#1#2{\nbbu{#1}\qb{#1}{#2}} \def\nbbql#1#2{\nbbl{#1}\qb{#1}{#2}} \def\nqql#1#2{\roffset{0.25}{\tbbl{#1}\tbbl{#1}\qb{#1}{#2}}} \def\nqqu#1#2{\roffset{0.25}{\tbbu{#1}\tbbu{#1}\qb{#1}{#2}}} \def\tqql#1#2{\roffset{0.25}{\tbbl{#1}\tbl{#1}\qb{#1}{#2}}} \def\tqqu#1#2{\roffset{0.25}{\tbbu{#1}\tbu{#1}\qb{#1}{#2}}} \def\tqqql#1#2{\roffset{0.25}{\tbbbl{#1}\tbl{#1}\qb{#1}{#2}}} \def\tqqqu#1#2{\roffset{0.25}{\tbbbu{#1}\tbu{#1}\qb{#1}{#2}}} \instrumentnumber1 %\setclef1\bass\setbassclefsymbol1\bassoct %\setclef4\treble\settrebleclefsymbol4\trebleoct \catcodesmusic \generalsignature{+1} \generalmeter\meterC \setname1{A} %\setname2{T} %\setname3{A} %\setname4{S} %\songtop4 %\songbottom1 \fulltitle{Quodlibet} \subtitle{Variation 30 of the Goldberg Variations for Clavier} \title{Quodlibet} \author{J. S. Bach (1685-1750)} \shortauthor{J. S. Bach} \othermention{Arranged for Recorders by R. D. Tennent} \maketitle \startbarno=0 \nobarnumbers \stafftopmarg=4.0\Interligne% \staffbotmarg=4.0\Interligne% %\setinterinstrument3{2.5\internote}% \startpiece\addspace\afterruleskip% \makeatletter \def\vnotes#1\elemskip#2#3#4#5\en{\noteskip#1\@l@mskip\@vnotes#4\en}% \makeatother \systemnumbers% \Notes\ds\cu d\ds\ds\en \bar%1 \Notes\hl N\ibu1g2\qb1{ghi}\tqu1j\hpause\en \Notes\hl M\ibl1k{-2}\qb1k\en \notes\nbbl1\qb1j\tql1i\qp\en \Notes\ibu1h0\qb1h\ds\en \notes\nbbu1\qb1g\tqu1h\cu d\en \def\atnextbar{\znotes\centerpause\en}% \bar%2 \Notes\hl L\ibu1i{-2}\qb1i\tqu1h\ql n\ibu3g2\qb3{gh}\en \Notes\itied1g\qu g\ql n\qb3i\tqu3j\en \Notes\ql{.K}\ttie1\qu g\ql o\ibl3k{-2}\qb3k\en \notes\nbbl3\qb3j\tql3i\en \Notes\ibu1f0\pince{n}\qb1f\cl o\cu h\en \notes\cu J\nbbu1\qb1e\tqu1f\ds\ds\en \bar%3 \Notes\hu I\qu g\ibl2n{-1}\qb2{no}\ql k\en \Notes\ds\cl k\qb2{n}\tql2{=m}\ql k\en \Notes\hu J\ibu1j{-2}\qb1{ji}\ibl2j{0}\qb2{lk}\ql l\en \Notes\qb1h\tqu1g\qb2j\tql2p\ql l\en \bar%4 \Notes\hl K\itied1f\pince{n}\qu f\ibl2o{-1}\qb2{on}\ibl3k{-1}\qb3{kl}\en \notes\ttie1\ibbu1e{-2}\qb1f\tbbu1\qb1e\qb2o\qb3k\en %\vnotes1.5\elemskip\nbbbu1\qb1e\tbbu1\qb1f\en \Notes\itied1d\tqu1d\tql2m\tql3j\en \Notes\qu G\ttie1\qu d\ibl2n{-2}\qb2n\tql2m\ibu3h{-1}\pince{p}\qb3i\tqu3h\en \Notes\ds\qp\ibl2n{-5}\qb2n\qu g\en \notes\ibbl0b{-1}\qb0b\tql0a\tql2k\en \bar%5 \endpiece% \eject \end --- 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] musixps and extracting separate parts
Bob Tennent wrote Note that the other parts are indeed suppressed, but the note spacing has to be corrected in the resulting part score. Also multiple-bar rests. ALL OF WHICH ARE DONE AUTOMATICALLY BY PMX!!! Plus, all info is stored in one file and that's all you have to correct if you find a wrong note later on. Look, I realize if you had done a 45 page score in TeX, you might not want to re-enter the whole thing in PMX. But c'mon, guys, seems to me you pretty quickly reach a point of diminishing returns, even if it involves learning how to use PMX, which involves a miniscule amount of effort compared to learning MusiXTeX. --Don Simons --- 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] musixps and extracting separate parts
|Neat; it works! | |But what would you change to print one of the other three parts instead? |(Yes, I am treating this as a magic incantation of which I understand |little, and yes, I do feel like the sorcer's apprentice.) Answered in a previous post. But here's a brief explanation: | \makeatletter | \def\vnotes#1\elemskip#2#3#4#5\en{\noteskip#1\@l@mskip\@vnotes#4\en}% | \makeatother makeatletter/makeatother allows one to use @ in a macro definition. \vnotes is a low-level macro that all the other notes/Notes/NOtes/ etc macros expand into. The part up to { is the pattern that will be looked for. Note that it looks for \en and not \enotes as the closing bracket. The part within the { } is what that pattern of macro call expands into. If the part after \noteskip#1\@l@mskip\@vnotes were #2#3#4#5, the re-defined macro would work like the built-in vnotes macro. By using just #4, only that one instrument is used. Bob --- 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] musixps and extracting separate parts
Sorry this crossed in the mail with Jean-Pierr Coulon asking the same question and Bob Tennent answering it. On Mon, 2011-06-20 at 10:32 -0400, Terrence Enger wrote: Neat; it works! But what would you change to print one of the other three parts instead? (Yes, I am treating this as a magic incantation of which I understand little, and yes, I do feel like the sorcer's apprentice.) --- 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] segmentation fault in pmxab
Greetings, I know from Noack Typsetting music with PMX -- version 2.6 that I am not supposed to put the code for a dynamic mark in front of a note. Still, a segmentation fault seems like an overly severe punishment for a coding error. I append the PMX souce and the console output (lightly massaged with respect to overprinting and unprintable characters) from my attempt to compile it. Obviously, the solution for me is to just stop doing that. I am just trying to be helpful with this report. Thanks, Terry. == m017segfault.pmx === % - % % Grieg, Andante con moto for piano, violin, and cello, EG 116 % % - % % nstaves,noinst,mtrnuml,mtrdenl,mtrnump,mtrdenp,xmtrnum0,isig, 4 3 4 40 60 -3 % % npages,nsyst,musicsize,fracindent 1 1 200.15 Piano Cello Violin btbt ./ Abep % use postscript type K slurs, ties, and hairpins Ap % m. 017 d43d zgd zbd g8 an b g d+ / d44d zgd zbd zdd g84 D an b g d+ D / % Typesetting music with PMX version 2.6 tells me % that dynamic marks go *after* the note to which % they refer (emphasis in the original). Still % a segfault seems like an unwarrentedly severe % weird error. D g83 d+ g- g+ D g4 r/ g84 D d+ g- g+ D g4 r/ == console session terry@cougar-natty:~/Music/grieg_andante_con_moto/pmx$ pmxab m017segfault.pmx This is PMX, Version 2.521, 16 May 09 Opening m017segfault.pmx Starting first PMX pass Bar 1 WARNING: Last non-blank character is ^@, not /,% ASCII code: 0 Done with first pass Starting second PMX pass Bar 1Segmentation fault terry@cougar-natty:~/Music/grieg_andante_con_moto/pmx$ ls -l m017s* -rw-r--r-- 1 terry terry 0 2011-06-20 20:18 m017segfault.pml -rw-r--r-- 1 terry terry 857 2011-06-20 20:12 m017segfault.pmx terry@cougar-natty:~/Music/grieg_andante_con_moto/pmx$ uname -a Linux cougar-natty 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 athlon i386 GNU/Linux === --- 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] segmentation fault in pmxab
Terry, glad to see you bit the bullet and started doing this in PMX. I think in the end it'll save you lots of effort. I'll look into trapping that sort of error in a more graceful fashion. FYI, when I compile it with pmx2610 in Windows XT SP2, I get no errors or faults at all; it just doesn't produce any output. --Don Simons -Original Message- From: tex-music-boun...@tug.org [mailto:tex-music-boun...@tug.org] On Behalf Of Terrence Enger Sent: Monday, June 20, 2011 6:03 PM To: tex-music@tug.org Subject: [Tex-music] segmentation fault in pmxab Greetings, I know from Noack Typsetting music with PMX -- version 2.6 that I am not supposed to put the code for a dynamic mark in front of a note. Still, a segmentation fault seems like an overly severe punishment for a coding error. I append the PMX souce and the console output (lightly massaged with respect to overprinting and unprintable characters) from my attempt to compile it. Obviously, the solution for me is to just stop doing that. I am just trying to be helpful with this report. Thanks, Terry. == m017segfault.pmx === % - % % Grieg, Andante con moto for piano, violin, and cello, EG 116 % % - % % nstaves,noinst,mtrnuml,mtrdenl,mtrnump,mtrdenp,xmtrnum0,isig, 4 3 4 40 60 -3 % % npages,nsyst,musicsize,fracindent 1 1 200.15 Piano Cello Violin btbt ./ Abep % use postscript type K slurs, ties, and hairpins Ap % m. 017 d43d zgd zbd g8 an b g d+ / d44d zgd zbd zdd g84 D an b g d+ D / % Typesetting music with PMX version 2.6 tells me % that dynamic marks go *after* the note to which % they refer (emphasis in the original). Still % a segfault seems like an unwarrentedly severe % weird error. D g83 d+ g- g+ D g4 r/ g84 D d+ g- g+ D g4 r/ == console session terry@cougar-natty:~/Music/grieg_andante_con_moto/pmx$ pmxab m017segfault.pmx This is PMX, Version 2.521, 16 May 09 Opening m017segfault.pmx Starting first PMX pass Bar 1 WARNING: Last non-blank character is ^@, not /,% ASCII code: 0 Done with first pass Starting second PMX pass Bar 1Segmentation fault terry@cougar-natty:~/Music/grieg_andante_con_moto/pmx$ ls -l m017s* -rw-r--r-- 1 terry terry 0 2011-06-20 20:18 m017segfault.pml -rw-r--r-- 1 terry terry 857 2011-06-20 20:12 m017segfault.pmx terry@cougar-natty:~/Music/grieg_andante_con_moto/pmx$ uname -a Linux cougar-natty 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 athlon i386 GNU/Linux == = --- 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