using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class PitchController : MonoBehaviour {

	private AudioSource audio;

	void Start ()
	{
		audio = this.GetComponent<AudioSource> ();
	}
	
	void Update ()
	{
		audio.pitch = this.GetComponent<Harmonizer> ().frequency;
	}
}
