Who cares? Worry about that when the lawsuits come around. Then with all of the money you made from it, you can afford a much better lawyer than the one you would ask prior to doing this. Obviously I am joking and any patent or copyright laws should be looked into. Unfortunately, (not disclosing my background) most lawyers would not know the exact answer of that until it is settled in court.
I say, there is only one way to find out.
Happy pirating.
***It is legal to download, posses, and play MP3's that you did not purchase. But it is illegal to sell in any way shape or form. (Basically as long as you don't make any money from anything, there is nothing to sue you for.)