Generate triggers at perfect intervals for placement of music notes.
Generate triggers with VEX CHOPs.
Date Created:Friday December 29th, 2006 03:41 AM
Date Modified:Wednesday July 30th, 2008 01:24 AM
/*
* Author: Dan Lynch
*/
chop
m_beat(int beat = 4;)
{
V = 0;
// take the remainder of the index divided by:
// the Length in samples divided by the beat
int temp = I%(L/beat);
if (temp == 0) V = 1;
// this gets rid of last sample
if (I == L-1) V = 0;
}
Downloads:
Download: music_beats.vfl 283 B
Please login or Click Here to register for downloads
Beats by Dan Lynch
is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License
Based on a work at www.3daet.com
Permissions beyond the scope of this license may be available at http://www.3daet.com
