This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class Metronome : MonoBehaviour | |
{ | |
public double bpm = 140.0F; | |
double nextTick = 0.0F; // The next tick in dspTime | |
double sampleRate = 0.0F; | |
bool ticked = false; |