I've written an NTSC emulator that supports NES pixel decoding and I would like to share it here since it might be useful for those of you who are writing NES emulators.
It is a software implementation written in C using integers only and has a fairly simple interface.

The implementation produces accurate voltage levels (measured by lidnariq and on the NESDev wiki) and creates a buffer of voltage levels (in IRE units). The IRE buffer represents the entire analog signal for a field so it includes the necessary VSYNC and HSYNC pulses along with color burst.
This implementation can also optionally render the (normally invisible) NES border.
Since it is a full NTSC emulation, noise and 'blacker than black' signals can interfere with the sync pulse detection and cause some interesting problems.
GitHub Link:
https://github.com/LMP88959/NTSC-CRT
Acknowledgements:
Thank you to the NESDev Discord server for help with the NES pixel decoder.
The voltages generated by the decoder match the voltages lidnariq measured and has on the NESDev wiki.
Thank you to Persune for helping with understanding NES pixel decoding and the effort they put in to add it to Mesen.