Text this: An efficient numerical procedure for calculating periodic vibrations of elastic mechanisms