class Sprite { SoundInfo si; float level; float kick; float snare; float hat; float maxLevel = 80; Sprite(SoundInfo sinfo) { si = sinfo; } void render(boolean isCut) { if(isCut) background(0); // value remaping level = map(si.level, 0, maxLevel, 0, 1); kick = map(si.kick, 0, 100, 0, 1); snare = map(si.snare, 0, 100, 0, 1); hat = map(si.hat, 0, 100, 0, 1); } void reset(){ } }