Rosegarden is an audio and MIDI sequencer, a music notation editor, and a digital audio workstation. It's an interactive way to compose, assemble, and edit musical compositions using notes, recordings, and samples.
From the project page:
Rosegarden is a professional audio and MIDI sequencer, score editor, and general-purpose music composition and editing environment.
It is an easy-to-learn, attractive application that runs on Linux, ideal for composers, musicians, music students, and small studio or home recording environments.
You can compose or rearrange a piece, print the results, and record yourself playing it on live instruments with your friends, all without using any other applications. It places more emphasis on musical score notation than most sequencers. It's intended to be familiar to home studio users who have used similar software before.
This package also available in Debian and Ubentu binary package system just type the command:
# apt-get install rosegarden
$ sudo apt-get install rosegarden