Do you diagram it like this.

Sentence: Raise your hand if you can hear the music.

__You__|__raise__|__hand__
:_if_ \your
:
__You__|__can_hear__|__music__
\the

3 answers

__You__|__raise__|__hand__
**************:_if_ \your
*******************:
__You__|__can_hear__|__music__
***********************\the

IGNORE THE STARS
The first "You" is the omitted subject, which is not needed in an imperative sentence. The location of the "the" and "your" modifiers is wrong. They modify the objects, not the verb. Otherwise OK.
http://members.cox.net/teachro/

This is the best site I have seen online that will show you how to diagram many different grammatical set-ups.

This one will help, too -- http://grammar.ccc.commnet.edu/grammar/diagrams/diagrams.htm -- but the first one is clearer.