It is legal but if you still want to support the artists you plan on putting on tape, consider buying their music from Bandcamp!