andrew@50: class VPArray{ // the virtual playing array for Heresy AI to play with andrew@50: andrew@50: VPNote[] VPArrayNotes; andrew@50: andrew@50: public VPArray(){ andrew@50: VPArrayNotes = new VPNote[16]; andrew@50: for (int i = 0; i < 16; i++) andrew@50: VPArrayNotes[i] = new VPNote(); andrew@50: } andrew@50: } andrew@50: andrew@50: class VPNote{ andrew@50: andrew@50: boolean played; andrew@50: boolean VPNoteOn; andrew@50: boolean done; andrew@50: int extension; andrew@50: int VPNotePitch; andrew@50: int VPNoteVelocity; andrew@50: andrew@50: public VPNote(){ andrew@50: VPNoteOn = false; andrew@50: played = true; andrew@50: extension = 0; andrew@50: VPNotePitch = 0; andrew@50: VPNoteVelocity = 0; andrew@50: } andrew@50: } andrew@50: andrew@50: andrew@50: