A Unified Model of Time Perception Accounts for Duration-Based and Beat-Based Timing Mechanisms | Synapse