w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

mtxline.h File Reference
#include "globals.h"
Include dependency graph for mtxline.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define vextern   extern
 

Enumerations

enum  music_word {
  other , abcdefg , zword , lyrtag ,
  lparen , rparen , rlparen , lbrac ,
  rbrac , pmxprefix , pmxl , macro ,
  endmacro , mword , oword , rword ,
  nextvoice , barword , texword , atword ,
  FirstOnly , err
}
 

Functions

void error3 (voice_index voice, Char *message)
 
void warning3 (voice_index voice, Char *message)
 
void getNextMusWord (Char *buf, Char *note, music_word *nscan)
 
CharMusicWord (Char *Result, short voice, short n)
 
CharnextMusicWord (Char *Result, voice_index voice)
 
music_word thisNote (voice_index voice)
 
music_word nextNote (voice_index voice)
 
ChargetMusicWord (Char *Result, voice_index voice)
 
void gotoBar (voice_index voice, short bar_no)
 
boolean endOfBar (voice_index voice, short bar_no)
 
ChargetBar (Char *Result, voice_index voice, short bar)
 
boolean upper (voice_index voice)
 
void clearLabels (void)
 
voice_index0 findVoice (Char *w)
 
void selectVoices (Char *line)
 
void resetInfo (voice_index voice, Char *buf)
 
void setVocal (voice_index voice, boolean voc)
 
boolean isVocal (voice_index voice)
 
void setStavePos (voice_index voice, stave_index stave, stave_index pos)
 
stave_index voiceStave (voice_index voice)
 
stave_index voicePos (voice_index voice)
 
boolean aloneOnStave (stave_index stave)
 
voice_index companion (voice_index voice)
 
void appendNote (voice_index voice, music_word nscan)
 
void appendToLine (voice_index voice, Char *note)
 
void markBar (voice_index voice)
 
short numberOfBars (voice_index voice)
 
void barForward (voice_index voice, short nbars)
 
void regroup (voice_index voice)
 
short beatsPerLine (void)
 
void setExtraLength (voice_index voice, short ext)
 
short ExtraLength (voice_index voice)
 
paragraph_index0 musicLineNo (voice_index voice)
 
void setMusicLineNo (voice_index voice, paragraph_index lno)
 
paragraph_index0 chordLineNo (voice_index voice)
 
void setChordLineNo (voice_index voice, paragraph_index lno)
 
void skipChordBar (voice_index voice)
 
void describeVoice (voice_index voice, Char *describe_lyr)
 
boolean maybeMusicLine (Char *l)
 
CharmusicLine (Char *Result, voice_index voice)
 

Variables

boolean bind_left [22]
 
boolean selected [15]
 

Macro Definition Documentation

◆ vextern

#define vextern   extern

Definition at line 17 of file mtxline.h.

Enumeration Type Documentation

◆ music_word

enum music_word
Enumerator
other 
abcdefg 
zword 
lyrtag 
lparen 
rparen 
rlparen 
lbrac 
rbrac 
pmxprefix 
pmxl 
macro 
endmacro 
mword 
oword 
rword 
nextvoice 
barword 
texword 
atword 
FirstOnly 
err 

Definition at line 21 of file mtxline.h.

Function Documentation

◆ aloneOnStave()

boolean aloneOnStave ( stave_index  stave)

Definition at line 810 of file mtxline.c.

References first_on_stave, info, number_on_stave, stave, and v.

Referenced by reviseLyrics().

◆ appendNote()

void appendNote ( voice_index  voice,
music_word  nscan 
)

Definition at line 253 of file mtxline.c.

References error3(), line_info::here, info, max_words, line_info::scan, and voice.

Referenced by scanMusic().

◆ appendToLine()

void appendToLine ( voice_index  voice,
Char note 
)

◆ barForward()

void barForward ( voice_index  voice,
short  nbars 
)

Definition at line 297 of file mtxline.c.

References line_info::bar_bound, error3(), line_info::here, info, max_bars, line_info::nbar, nbars, and voice.

Referenced by scanMusic().

◆ beatsPerLine()

short beatsPerLine ( void  )

Definition at line 59 of file mtxline.c.

References error3(), line_info::extra, info, meternum, line_info::nbar, nvoices, one_beat, and voice.

Referenced by musicParagraph(), and pmxMeter().

◆ chordLineNo()

paragraph_index0 chordLineNo ( voice_index  voice)

Definition at line 125 of file mtxline.c.

References info, and voice.

Referenced by addChords().

◆ clearLabels()

void clearLabels ( void  )

Definition at line 239 of file mtxline.c.

References line_info::chord, info, line_info::mus, nvoices, and voice.

Referenced by analyzeParagraph().

◆ companion()

voice_index companion ( voice_index  voice)

Definition at line 171 of file mtxline.c.

References info, number_on_stave, s, voice, and line_info::voice_stave.

Referenced by processOneBar().

◆ describeVoice()

void describeVoice ( voice_index  voice,
Char describe_lyr 
)

◆ endOfBar()

boolean endOfBar ( voice_index  voice,
short  bar_no 
)

Definition at line 422 of file mtxline.c.

References line_info::bar_bound, bar_no, line_info::here, info, and voice.

Referenced by processLine().

◆ error3()

void error3 ( voice_index  voice,
Char message 
)

◆ ExtraLength()

short ExtraLength ( voice_index  voice)

Definition at line 322 of file mtxline.c.

References info, and voice.

Referenced by testParagraph().

◆ findVoice()

voice_index0 findVoice ( Char w)

◆ getBar()

Char* getBar ( Char Result,
voice_index  voice,
short  bar 
)

◆ getMusicWord()

Char* getMusicWord ( Char Result,
voice_index  voice 
)

◆ getNextMusWord()

void getNextMusWord ( Char buf,
Char note,
music_word nscan 
)

◆ gotoBar()

void gotoBar ( voice_index  voice,
short  bar_no 
)

Definition at line 431 of file mtxline.c.

References line_info::bar_bound, bar_no, line_info::here, info, and voice.

Referenced by processOneBar().

◆ isVocal()

boolean isVocal ( voice_index  voice)

Definition at line 143 of file mtxline.c.

References info, and voice.

Referenced by markDebeamed().

◆ markBar()

void markBar ( voice_index  voice)

Definition at line 279 of file mtxline.c.

References line_info::bar_bound, error3(), line_info::here, info, line_info::nbar, and voice.

Referenced by scanMusic().

◆ maybeMusicLine()

boolean maybeMusicLine ( Char l)

◆ musicLine()

Char* musicLine ( Char Result,
voice_index  voice 
)

◆ musicLineNo()

paragraph_index0 musicLineNo ( voice_index  voice)

Definition at line 113 of file mtxline.c.

References info, and voice.

Referenced by includeStartString(), musicLine(), processLine(), processOneBar(), and testParagraph().

◆ MusicWord()

Char* MusicWord ( Char Result,
short  voice,
short  n 
)

◆ nextMusicWord()

Char* nextMusicWord ( Char Result,
voice_index  voice 
)

◆ nextNote()

music_word nextNote ( voice_index  voice)

Definition at line 413 of file mtxline.c.

References line_info::here, info, line_info::scan, and voice.

Referenced by getMeterChange(), and lookahead().

◆ numberOfBars()

short numberOfBars ( voice_index  voice)

Definition at line 291 of file mtxline.c.

References info, and voice.

Referenced by scanMusic(), and testParagraph().

◆ regroup()

◆ resetInfo()

void resetInfo ( voice_index  voice,
Char buf 
)

◆ selectVoices()

void selectVoices ( Char line)

◆ setChordLineNo()

void setChordLineNo ( voice_index  voice,
paragraph_index  lno 
)

Definition at line 131 of file mtxline.c.

References line_info::chord, info, and voice.

Referenced by maybeChords().

◆ setExtraLength()

void setExtraLength ( voice_index  voice,
short  ext 
)

Definition at line 312 of file mtxline.c.

References ext, line_info::extra, line_info::here, info, other, line_info::scan, and voice.

Referenced by scanMusic().

◆ setMusicLineNo()

void setMusicLineNo ( voice_index  voice,
paragraph_index  lno 
)

Definition at line 119 of file mtxline.c.

References info, line_info::mus, and voice.

Referenced by analyzeParagraph().

◆ setStavePos()

void setStavePos ( voice_index  voice,
stave_index  stave,
stave_index  pos 
)

Definition at line 149 of file mtxline.c.

References info, pos, stave, voice, line_info::voice_pos, and line_info::voice_stave.

Referenced by setVoices().

◆ setVocal()

void setVocal ( voice_index  voice,
boolean  voc 
)

Definition at line 137 of file mtxline.c.

References info, line_info::vocal, and voice.

Referenced by applyStyle(), and preambleDefaults().

◆ skipChordBar()

void skipChordBar ( voice_index  voice)

Definition at line 81 of file mtxline.c.

References barsym, line_info::chord, info, P, predelete(), sprintf, strcmp(), and voice.

Referenced by processLine().

◆ thisNote()

music_word thisNote ( voice_index  voice)

Definition at line 404 of file mtxline.c.

References line_info::here, info, line_info::scan, and voice.

Referenced by output(), processLine(), and processOther().

◆ upper()

◆ voicePos()

stave_index voicePos ( voice_index  voice)

Definition at line 165 of file mtxline.c.

References info, and voice.

Referenced by processOneBar().

◆ voiceStave()

stave_index voiceStave ( voice_index  voice)

Definition at line 159 of file mtxline.c.

References info, and voice.

Referenced by extractLyrtag(), newPitch(), setOctave(), and songraise().

◆ warning3()

void warning3 ( voice_index  voice,
Char message 
)

Variable Documentation

◆ bind_left

boolean bind_left[22]
extern

Definition at line 12 of file mtxline.c.

Referenced by lookahead(), and regroup().

◆ selected