Skip to content

Instantly share code, notes, and snippets.

View frufru666's full-sized avatar

Frufru frufru666

View GitHub Profile
@frufru666
frufru666 / 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;