Bakery ingredients firm Macphie of Glenbervie has been given funding for a research project to look at the use of sound waves in cooking.