hello! not sure it can be done with a pattern, but you can absolutely do it with an arp.
arp is like a mini sequence inside the pattern, that can be triggered and re-set by note inputs. :v: