scripts for generating stimulus invented by Hayashi et al 2012