You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
581 B

5 years ago
void loadData() {
5 years ago
numSounds = 10;
numTracks = numSounds;//4;
5 years ago
bpm = 280;
divider = 16;
duration = int((60/float(bpm))*1000);
beat = 0;
String bank = "bank1";
5 years ago
samples = new boolean[numTracks][divider];
5 years ago
for(int i=0; i<numTracks; i++) {
5 years ago
boolean[] tmp = new boolean[divider];
5 years ago
for(int x=0; x<divider; x++) {
5 years ago
tmp[x] = false;
5 years ago
}
samples[i] = tmp;
}
// Load sound files
file = new SoundFile[numSounds];
for (int i = 0; i < numSounds; i++) {
file[i] = new SoundFile(this, bank + "/" + (i+1) + ".wav");
}
}