void mi::SetNumTracks(int const n) { if (numTracks < n) { for (int c = numTracks; c < n; c++) InitTrack(c); } else if (n < numTracks) { for (int c = n; c < numTracks; c++) ResetTrack(c); } numTracks = n; }
static void NewTrack(struct Blocks *block,struct Tracks *track){ InitTrack(track); ListAddElement1(&block->tracks,&track->l); }
void mi::AttributesChanged() { MaxDelay = (int)(pMasterInfo->SamplesPerSec * (aval.maxdelay / 1000.0)); for (int c = 0; c < numTracks; c++) InitTrack(c); }