view HeresyBigBangDone/VirtualPlayingArray.pde @ 29:d3fdadf86d90

Completed instrument design in Ableton and mapping between Max and Ableton.
author Tim MB <tim.murraybrowne@eecs.qmul.ac.uk>
date Fri, 25 Feb 2011 10:17:53 +0000
parents 70dc11487078
children
line wrap: on
line source
class VPArray{ // the virtual playing array for Heresy AI to play with
  
    VPNote[] VPArrayNotes;
    
    public VPArray(){
        VPArrayNotes = new VPNote[16];
        for (int i = 0; i < 16; i++)
          VPArrayNotes[i] = new VPNote();
    }
}

class VPNote{
  
    boolean played;
    boolean VPNoteOn;
    boolean done;
    int extension;
    int VPNotePitch;
    int VPNoteVelocity;
    
    public VPNote(){
       VPNoteOn = false;
       played = true;
        extension = 0;
        VPNotePitch = 0;
        VPNoteVelocity = 0;
    }
}