Refactored music value handler