I need a standalone program/softsynth that can play a continuous note with its virtual keyboard. i.e. I click Dflat and it plays a continuous Dflat note even after I release the mouse button and shift to another program.

Which program can do this?

(I need this to have a target pitch while pitch correcting vocals in Sonar)