A DAW is what you're after
LMMS (linux multimedia Studio) is a free DAW currently in beta 2 I think
http://lmms.sourceforge.net/download.php
Alternatively, you could go for the cheapest option with Reaper
http://www.reaper.fm/index.php
Or you could hit up dubious sources and have your pick of the DAWs.




