Redstone circuit that activates on short pulse and does not activate on longer pulse

so i build a little crude thing that works, it needs improvement, but it will give the idearedstone thingy

section A is a timer, it counts how long of a pulse is allowed

section B is a falling edge mono-stable circuit

the 32 items in the hopper is so a stone button gets through, but a wooden one doesn't

so when the pulse from the input (between the buttons) and it ends after the clock, it will get cut off

but if its shorter then the clock, it will pass through the comparator facing the piston

note: this is the falling edge mono-stable circuit I usedfalling edge mono-stable circuit

hopefully I helped!