Package com.gmail.jafelds.ppedits.testing

Source Code of com.gmail.jafelds.ppedits.testing.CTest

package com.gmail.jafelds.ppedits.testing;

import java.sql.SQLException;

import com.gmail.jafelds.ppedits.Chart;
import com.gmail.jafelds.ppedits.enums.Notes;
import com.gmail.jafelds.ppedits.enums.Styles;

/**
* @author wolfhome
*
*/
public class CTest
{
 
  /**
   * @param args
   * @throws SQLException
   * @throws ClassNotFoundException
   */
  public static void main(String[] args) throws SQLException, ClassNotFoundException
  {
    Chart ch = new Chart("2006 Love Song", Styles.SINGLE);
   
    // Insert a topleft hold ending on the 3rd 6th on the 2nd measure.
    ch.getMeasure(1).getBeat(0).setNote(1, Notes.HOLD_HEAD);
    ch.getMeasure(1).getBeat(64).setNote(1, Notes.HOLD_TAIL);
   
    // Insert a topright arrow on the 3rd measure, last possible "3rd" note.
    ch.getMeasure(2).getBeat(128).setNote(3, Notes.TAP);
   
    // Insert a mine row on the 4th measure, last possible "8th" note.
    for (int i = 0; i < 5; i++)
    ch.getMeasure(3).getBeat(168).setNote(i, Notes.MINE);
   
    // Insert a center arrow on the 5th measure, quarter note.
    ch.getMeasure(4).getBeat(0).setNote(2, Notes.TAP);
   
    // Insert a bottom jump on the 6th measure, half note.
    ch.getMeasure(5).getBeat(96).setNote(0, Notes.TAP);
    ch.getMeasure(5).getBeat(96).setNote(4, Notes.TAP);
   
    System.out.println(ch);
  }
 
}
TOP

Related Classes of com.gmail.jafelds.ppedits.testing.CTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.