Skip to content

Instantly share code, notes, and snippets.

View filipruisl's full-sized avatar

Filip Ruisl filipruisl

View GitHub Profile
@filipruisl
filipruisl / Metronome.cs
Created January 24, 2018 10:56 — forked from bzgeb/Metronome.cs
Pretty solid metronome for Unity
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;