added melody module and note length