LaTeX forum ⇒ OthersMusixTeX: Extend \crescendo across bars

Information and discussion about other tools not listed above.
kajetandolinar
Posts: 3
Joined: Sat Apr 25, 2020 10:20 am

MusixTeX: Extend \crescendo across bars

Postby kajetandolinar » Sat Apr 25, 2020 10:48 am

Hi there,

I'm new to forums, but have been using LaTeX for math and MusixTeX for music for a very long time; I'm also a programmer, so you can hit me with some fancy answers as well; however, I have only a limited knowledge of TeX.

I have one problem irritating me. Namely, does anybody know any trick (or preferrably a proper MusixTeX solution) to code a crescendo hairpin (macros \crescendo, or \icresc \tcresc pair) that would extend multiple bars (would escape \notes ... \en jail) in a MusixTeX score. I can't find a way of doing this. Crescendo hairpin just always ends at the end of the bar where it was placed, and you cannot code the hairpin macros outside \notes ... \en.

Thanks for all answers ...
Kajetan
Last edited by cgnieder on Sun Apr 26, 2020 3:16 pm, edited 1 time in total.
Reason: added inline code formatting

User avatar
cgnieder
Site Moderator
Posts: 1993
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Sun Apr 26, 2020 5:05 pm

I don't see a problem:

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass{article}
  2. \usepackage[T1]{fontenc}
  3. \usepackage{musixtex}
  4.  
  5. \begin{document}
  6.  
  7. \begin{music}
  8. \instrumentnumber{1}
  9. \setstaffs{1}{2}
  10. \generalmeter{\meterfrac44}
  11. \startextract
  12. \Notes\cmidstaff\ppp|\ca c\en
  13. \Notes\icresc|\ca{defgh'ab}\en\bar
  14. \Notes|\ca{'cde}\en
  15. \Notes\zmidstaff{\loff\tcresc}\cmidstaff\fff|\ca{'f}\en
  16. \zendextract
  17. \end{music}
  18.  
  19. \end{document}


test.png
test.png (10.11 KiB) Viewed 393 times
site moderator & package author

kajetandolinar
Posts: 3
Joined: Sat Apr 25, 2020 10:20 am

Postby kajetandolinar » Sat May 16, 2020 12:43 pm

Hi,

Thanks for your answer. I was never using MusixTeX within LaTeX. To typeset lenghty music scores, I have only ever used plain TeX, no LaTeX involved. Curiously enough, your example does not work in TeX only mode of MusixTeX, as consistent with my years old experience:
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \input musixtex
  2.  
  3. \instrumentnumber{1}
  4. \setstaffs{1}{2}
  5. \generalmeter{\meterfrac44}
  6.  
  7. \startpiece%
  8. \Notes\cmidstaff\ppp|\ca c\en%
  9. \Notes\icresc|\ca{defgh'ab}\en\bar%
  10. \Notes|\ca{'cde}\en%
  11. \Notes\zmidstaff{\loff\tcresc}\cmidstaff\fff|\ca{'f}\en%
  12. \endpiece
  13.  
  14. \bye


On my MikTeX setup with standard MusixTeX package instalation, this gives the following output:
cresc.png
cresc.png (44.28 KiB) Viewed 208 times

User avatar
cgnieder
Site Moderator
Posts: 1993
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Sat May 16, 2020 6:03 pm

My best guess is that this is a font-setup problem but since I actually never really use MusixTeX I can't really help.
site moderator & package author

kajetandolinar
Posts: 3
Joined: Sat Apr 25, 2020 10:20 am

Postby kajetandolinar » Mon May 18, 2020 3:01 pm

Thanks for your time. My other idea was that this may also be some MusixTeX counter or parameter setting, but I could never figure out which one exactly.

Do you know any MusixTeX related forums where people scrutinize usability or technical performance of MusixTeX specifically?


Return to “Others”

Who is online

Users browsing this forum: No registered users and 1 guest