Ejemplo n.º 1
0
 /**
  * Brick (Special launcher constructor) Creates a specific launcher from a single chord
  *
  * @param c : a ChordBlock
  * @param name : indentifies the type of launcher (a String)
  * @param m : the new brick's mode
  */
 public Brick(ChordBlock c, String name, String m) {
   super(name + " " + LAUNCHER_KEYWORD);
   key = c.getKey();
   type = LAUNCHER_KEYWORD;
   ArrayList<Block> singleton = new ArrayList<Block>();
   singleton.add(c);
   subBlocks = singleton;
   duration = c.getDuration();
   mode = m;
   endValue = c.getSectionEnd();
 }
Ejemplo n.º 2
0
 /**
  * Brick (Launcher constructor) Creates a Launcher from a single chord
  *
  * @param c : a ChordBlock
  * @param m : the new brick's mode
  */
 public Brick(ChordBlock c, String m) {
   super(LAUNCHER_KEYWORD);
   key = (c.getKey() + PostProcessor.DOM_ADJUST) % PostProcessor.OCTAVE;
   type = LAUNCHER_KEYWORD;
   ArrayList<Block> singleton = new ArrayList<Block>();
   singleton.add(c);
   subBlocks = singleton;
   duration = c.getDuration();
   mode = m;
   endValue = c.getSectionEnd();
 }