Hello Ronald,

> I've coded a song: lyrics with notes and a guitar rhythm. Nothing special 
> so far. Now I would like to indicate the guitar rhythm above the
> staff. For the rhythm I use the "\roqu" etc. macros from musixper.
> What comes close to what I want is: use a second instrument/staff for 
> that rhythm. That second staff should have no staff lines, no clef, no
> signatures, nothing of that all. Only the notes for the rhythm. The 
> only thing that I cannot get rid of is the bars. Does anybody know a 
> way to get rid of the bar lines?

Principally yes; a drawback of the following hack is that it doesn't
abolish the leftmost vertical rule of each system. If you can do without 
this rule at all, it should work fine with the command \nostartrule 
included. Please take the following as an example.

Regards, Rainer


--------------------------------------------------------------------------
\input musixtex
\input musixper

%
% Here comes a bunch of rather general macros which enable printing or 
% hiding barlines for each staff and inter-staff space individually:
%
\makeatletter
  \newdimen\barline@depth
  
  \def\rul@indiv#1{%
    \n@loop
      \Comp@High
      \expandafter\ifx\csname s@bl\number\noinstrum@nt\endcsname\relax
        % Taktstrich durchziehen -> Tiefe ueberbrueckt Platz zum vorigen System:
        \multiply\barline@depth -1\relax
        \advance\barline@depth\altitude
      \else
        % Taktstrich unterbrechen -> am unteren Systemrand anfangen:
        \barline@depth=0pt\relax
      \fi
      % Nein, nicht bei linienlosem System:
      % \advance\barline@depth\hlthick
      {\expandafter\ifx\csname h@bl\number\noinstrum@nt\endcsname 1%
         % Taktstrich in der Zeile unterbrechen:
         \y@v=0pt\relax
       \fi
       \raise\altitude\rlap{\vrule\@depth\barline@depth\@width#1\@height\y@v}}%
      \barline@depth\altitude
      \advance\barline@depth\y@v
    \repeat
    \addspace#1}
  
  % Individuell getrennte Taktstriche einschalten:
  \def\indivbarrules{%
    \let\writ@rule\rul@indiv
    % Taktstrich unter 1. System immer unterbrechen:
    \sepbarrule 1}
  
  % Taktstrich unter Instrument #1 unterbrechen:
  \def\sepbarrule#1{\expandafter\let\csname s@bl#1\endcsname 1}
  
  % Taktstrich unter Instrument #1 verbinden:
  \def\conbarrule#1{%
    % Taktstrich unter 1. System nie fortsetzen:
    \if 1#1\else\expandafter\let\csname s@bl#1\endcsname\relax\fi}
  
  % Taktstrich im Instrument #1 unterbrechen:
  \def\hidebarrule#1{\expandafter\let\csname h@bl#1\endcsname 1}
  
  % Taktstrich im Instrument #1 zeigen:
  \def\showbarrule#1{\expandafter\let\csname h@bl#1\endcsname\relax}
\makeatother

%
% Now comes the main part:
%
\instrumentnumber 2
\setclef 2 8
\setlines 2 0
\nobarnumbers

\indivbarrules
\hidebarrule 2
\sepbarrule 2
\nostartrule

\startpiece
 \NOtes\qu g&\roqu G\en\bar
 \NOtes\qu g&\roqu G\en
\Endpiece\bye


Reply via email to