Beispiel #1
0
 /**
  * Reads tremolo picking
  * 
  * @param NoteEffect $noteEffect
  */
 public function readTremoloPicking(NoteEffect $noteEffect)
 {
     $value = $this->reader->readUnsignedByte();
     $tremoloPicking = new EffectTremoloPicking();
     if ($value == 1) {
         $tremoloPicking->getDuration()->setValue(Duration::EIGHTH);
         $noteEffect->setTremoloPicking($tremoloPicking);
     } else {
         if ($value == 2) {
             $tremoloPicking->getDuration()->setValue(Duration::SIXTEENTH);
             $noteEffect->setTremoloPicking($tremoloPicking);
         } else {
             if ($value == 3) {
                 $tremoloPicking->getDuration()->setValue(Duration::THIRTY_SECOND);
                 $noteEffect->setTremoloPicking($tremoloPicking);
             }
         }
     }
 }