The point of the verb is about reproducing a melody, not the method of singing or humming. If you want to specify I guess you could say он жужжит мелодию.