<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_Track(track, maxwidth=80, tuning=None):
 """Convert a mingus.containers.Track object to an ASCII tablature string. 'tuning' should be set to a StringTuning object or to None to use the Track's tuning (or alternatively the default if the Track hasn't got its own tuning). 'string' and 'fret' attributes on Notes are taken into account. """

    result = []
    width = _get_width(maxwidth)
    if not tuning:
        tuning = track.get_tuning()
    lastlen = 0
    for bar in track:
        r = from_Bar(bar, width, tuning, collapse=False)
        barstart = r[1].find('||') + 2
        if (len(r[0]) + lastlen) - barstart < maxwidth and result != []:
            for i in range(1, len(r) + 1):
                item = r[len(r) - i]
                result[-i] += item[barstart:]
        else:
            result += ['', ''] + r
        lastlen = len(result[-1])
    return os.linesep.join(result)