Combining beam and slur in one keystroke

If a vocal part contains many short note values and melismata, and melismata are shown by both beams and slurs, there are many instances of d([ b)] for example. To save tedious keystrokes, it’s very convenient to redefine [ and ] so they provoke both the beam and the slur. Alternatively, the slurs may be omitted as in the second example, to avoid misinterpretations (performers might take the slur as an indication for dynamics and articulation, even if it’s only intended to provide information on melismata) or to get a clearer, less crowded look.