forked from: Pendulum from: nengafl

