public UNote[] getNotes()
	{
		  UNote[] tempnotes = new UNote[MAX_NOTE_SAME_TIME];
		  int index = 0;
		  
	      for(int i=0; i<activeSequence; ++i)
	      {
	          USequence s = sequences[i];
	          if(!s.mute)
	          {
	              UNote n = s.getNote(currentTik, restTik);
	              if(n != null)
	              {
	            	  tempnotes[index] = n;
	            	  index++;
	              }
	          
	              UNote o = s.getOffNote(currentTik, restTik);
	              if(o != null)
	              {
	            	  tempnotes[index] = o;
	            	  index++;
	              }
	          }
	      }
	      
	      UNote[] notes = null;
	      if(index>0)
	      {
		      notes = new UNote[index];
		      for(int i=0; i<index; ++i)
		      {
		    	  notes[i] = tempnotes[i];
		      }
	      }
	      
	      return notes;
	}