Fret Hp5.Bas Prints Frets On Paper!

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

REM

om
REM
REM
REM
REM
REM
DIM

This program is copyright property of Steve Ganz, sganz_guitars@geocities.c


Distribution shall include complete source.
Resale of program or printed templates is unlicensed use.
Templates may be given away.
Written for MS BASIC
Tunable parametes marked with a remark and <*>
fretrate AS DOUBLE

REM <*> fretstodo for number of frets on template.


fretstodo = 20
REM <*> cm.length for number of centimeters in scale
cm.length = 65
inch.length = cm.length / 2.54
first.line = 500
DIM fretmeas(fretstodo)
DIM inch.cum(fretstodo)
REM set line spacing
REM hp5p:
pcontrol$ = CHR$(27) + "&a720V"
formfeed$ = CHR$(12)
REM <*>pcontrol, plpi% are printer dependent
REM plpi is the number of lines per inch for pcontrol
plpi% = 725
fretrate = 17.817153745#
fretmark$ = "_____________|_____________"
cumlength = 0
CLS
FOR i% = 1 TO fretstodo
fretmeas(i%) = (inch.length - cumlength) / fretrate
cumlength = cumlength + fretmeas(i%)
NEXT i%
cumlength = 0
i% = 0
LPRINT "FRETS for HP5, scale length = " + STR$(inch.length) + " inches " + STR$(
cm.length) + "cm"
pcontrol$ = CHR$(27) + "&a" + STR$((cumlength) * plpi% + first.line) + "V"
LPRINT pcontrol$; "nut" + fretmark$
FOR i% = 1 TO 7
cumlength = cumlength + fretmeas(i%)
remains = inch.length - cumlength
pcontrol$ = CHR$(27) + "&a" + STR$((cumlength) * plpi% + first.line) + "V"
LPRINT USING "& ## & ##.#### ##.####"; pcontrol$; i%; fretmark$; fretmeas(i%);
cumlength
REM LPRINT pcontrol$; STR$(i%) + fretmark$, fretmeas(i%), cumlength
NEXT i%
cumadjust = cumlength
LPRINT formfeed$
LPRINT "FRETS for HP5, scale length = " + STR$(inch.length) + " inches " + STR$(
cm.length) + "cm"
pcontrol$ = CHR$(27) + "&a" + STR$((cumlength - cumadjust) * plpi% + first.line)
+ "V"
i% = 7
LPRINT USING "& ## & ##.#### ##.####"; pcontrol$; i%; fretmark$; fretmeas(i%);
cumlength
REM LPRINT USING pcontrol$ + "## & ##.#### ##.####"; i%; fretmark$; fretmeas(i%
); cumlength
FOR i% = 8 TO fretstodo
cumlength = cumlength + fretmeas(i%)
remains = inch.length - cumlength

pcontrol$ = CHR$(27) + "&a" + STR$((cumlength - cumadjust) * plpi% + first.line


) + "V"
LPRINT USING "& ## & ##.#### ##.####"; pcontrol$; i%; fretmark$; fretmeas(i%);
cumlength
REM LPRINT USING pcontrol$ + "## & ##.#### ##.####"; i%; fretmark$; fretmeas(i%
); cumlength
REM LPRINT pcontrol$; STR$(i%) + fretmark$, fretmeas(i%), cumlength
NEXT i%

You might also like