Text this: Analysis And Design Of Active Grating-Embedded Optical Filters