stringcalc.tension.String

stringcalc.tension.String#

class stringcalc.tension.String(L, type, gauge, wound)#
Parameters:
__init__()#

Methods

__init__()

count(value, /)

Return number of occurrences of value.

from_spec(s)

Create a string from spec, e.g. '22.9" PB .042w'.

index(value[, start, stop])

Return first index of value.

Attributes

L

Scale length.

gauge

String gauge.

type

String type abbreviation, such as D'Addario "PB", "PL", or "NYL".

wound

Whether the string is wound (as opposed to plain).