user: You are to write a function to transpose a guitar tab up or down a number of semitones. The amount to transpose is a number, positive or negative. The tab is given as an array, with six elements for each guitar string (fittingly passed as strings). Output your tab in a similar form.

Guitar tablature (or 'tab') is an alternative to sheet music, where notes are replaced by fret numbers and the five lines of the staff are replaced by six lines to represent each of the guitar's strings. It is still read from left to right like sheet music, and notes written directly above each other are played at the same time.

For example, Led Zeppelin's Stairway to Heaven begins:
```
e|-------5-7-----7-|-8-----8-2-----2-|-0---------0-----|-----------------|
B|-----5-----5-----|---5-------3-----|---1---1-----1---|-0-1-1-----------|
G|---5---------5---|-----5-------2---|-----2---------2-|-0-2-2-----------|
D|-7-------6-------|-5-------4-------|-3---------------|-----------------|
A|-----------------|-----------------|-----------------|-2-0-0---0--/8-7-|
E|-----------------|-----------------|-----------------|-----------------|
```
Transposed up two semitones, it would look like this:
```
e|-------7-9-----9-|-10-----10-4-----4-|-2---------2-----|------------------|
B|-----7-----7-----|----7--------5-----|---3---3-----3---|-2-3-3------------|
G|---7---------7---|------7--------4---|-----4---------4-|-2-4-4------------|
D|-9-------8-------|-7---------6-------|-5---------------|------------------|
A|-----------------|-------------------|-----------------|-4-2-2---2--/10-9-|
E|-----------------|-------------------|-----------------|------------------|
```
Note how when the 8th fret note on the top string in bar 2 gets transposed to the 10th fret, extra '-' are added on the other strings below so as to retain the single '-' that originally separated that beat (i.e. column) from the following note – fret 7 on the B string.

Each beat must retain at least one '-' separator before the next, to keep the tab legible. The inputted test tabs all obey this convention.

Electric guitars usually have 22 frets, with the 0th fret being an open string. If your fret numbers transpose to either negative values or values over 22, you should return 'Out of frets!' (and probably detune your guitar).

Tests include some randomly generated guitar tabs, which come with no guarantee of musical quality and/or playability...!

Answer: {"fn_name": "transpose", "inputs": [[2, ["e|-------5-7-----7-|-8-----8-2-----2-|-0---------0-----|-----------------|", "B|-----5-----5-----|---5-------3-----|---1---1-----1---|-0-1-1-----------|", "G|---5---------5---|-----5-------2---|-----2---------2-|-0-2-2-----------|", "D|-7-------6-------|-5-------4-------|-3---------------|-----------------|", "A|-----------------|-----------------|-----------------|-2-0-0---0--/8-7-|", "E|-----------------|-----------------|-----------------|-----------------|"]], [2, ["e|-----------------------------------------------------------------------------|", "B|---------------------------8-----------------------8-------------------------|", "G|-------------------------7-----------------------7---------------------------|", "D|----8-----8-----8----8/9-------7-7/5-0--------/9-----7-7/5-0-----------------|", "A|------------------------------------------5/7------------------5/7-----------|", "E|-6-----6-----6----6---------------------0--------------------0---------------|"]], [-4, ["e|--------------15----14-----|--------------15----14-----|", "B|-----15--------------------|-----15--------------------|", "G|--------14-12----14----14--|--------14-12----14----14--|", "D|--12-----------------------|--12-----------------------|", "A|---------------------------|---------------------------|", "E|---------------------------|---------------------------|"]], [2, ["e|----------5/6-6-6-5/6-6-6-6-6-6------------------------------------|", "B|-------6--5/6-6-6-5/6-6-6-6-6-6-9-8-6-6----------------------------|", "G|---6h7--------------------------------6h7--------------------------|", "D|-8----------------------------------------8-6--8-8-8-8-8-8-8-8-----|", "A|-----------------------------------------------8-8-8-8-8-8-8-8-----|", "E|-------------------------------------------------------------------|"]], [-1, ["e|-----------------|---------------|----------------|------------------|", "B|-----------------|---------------|----------------|------------------|", "G|--0---3---5----0-|---3---6-5-----|-0---3---5----3-|---0----(0)-------|", "D|--0---3---5----0-|---3---6-5-----|-0---3---5----3-|---0----(0)-------|", "A|-----------------|---------------|----------------|------------------|", "E|-----------------|---------------|----------------|------------------|"]], [9, ["E----------------------|------------------------------------------------|", "B----------------------|------------------------------------------------|", "G----------11--13--13b-|----------11--13--13b----------13b--------------|", "D------14--------------|------14---------------14-----------14----------|", "A--14------------------|--14-----------------------14-----------14-12---|", "E----------------------|------------------------------------------------|"]]], "outputs": [[["e|-------7-9-----9-|-10-----10-4-----4-|-2---------2-----|------------------|", "B|-----7-----7-----|----7--------5-----|---3---3-----3---|-2-3-3------------|", "G|---7---------7---|------7--------4---|-----4---------4-|-2-4-4------------|", "D|-9-------8-------|-7---------6-------|-5---------------|------------------|", "A|-----------------|-------------------|-----------------|-4-2-2---2--/10-9-|", "E|-----------------|-------------------|-----------------|------------------|"]], [["e|-------------------------------------------------------------------------------------|", "B|--------------------------------10------------------------10-------------------------|", "G|------------------------------9-------------------------9----------------------------|", "D|----10-----10-----10----10/11--------9-9/7-2--------/11------9-9/7-2-----------------|", "A|------------------------------------------------7/9--------------------7/9-----------|", "E|-8------8------8-----8------------------------2----------------------2---------------|"]], [["e|------------11----10-----|------------11----10-----|", "B|----11-------------------|----11-------------------|", "G|-------10-8----10----10--|-------10-8----10----10--|", "D|--8----------------------|--8----------------------|", "A|-------------------------|-------------------------|", "E|-------------------------|-------------------------|"]], [["e|-----------7/8-8-8-7/8-8-8-8-8-8-----------------------------------------------|", "B|--------8--7/8-8-8-7/8-8-8-8-8-8-11-10-8-8-------------------------------------|", "G|----8h9----------------------------------8h9-----------------------------------|", "D|-10------------------------------------------10-8--10-10-10-10-10-10-10-10-----|", "A|---------------------------------------------------10-10-10-10-10-10-10-10-----|", "E|-------------------------------------------------------------------------------|"]], ["Out of frets!"], ["Out of frets!"]]}