// Use this for initialization private void OnEnable() { instance = this; pd = GetComponent <Hv_AccoPlayer_AudioLib>(); voiceToUse = new int[16]; // store a seq track/voice value for each step loader = GetComponent <audioLoader>(); }
void Start() { pulses = 0; dur16th = (60000 / bpm) / 1000 / 4; pd = GetComponent <Hv_AccoPlayer_AudioLib>(); pd.RegisterSendHook(); pd.FloatReceivedCallback += OnPdPulse; }
private void OnEnable() { pd = GetComponent <Hv_AccoPlayer_AudioLib>(); clk = GetComponent <clock>(); }