Exemple #1
0
 public function addMeasureHeader(MeasureHeader $measureHeader)
 {
     $measureHeader->setSong($this);
     $this->measureHeaders[$this->countMeasureHeaders()] = $measureHeader;
 }
Exemple #2
0
 public function copyFrom(MeasureHeader $header)
 {
     $this->setNumber($header->getNumber());
     $this->setStart($header->getStart());
     $this->setRepeatOpen($header->isRepeatOpen());
     $this->setRepeatAlternative($header->getRepeatAlternative());
     $this->setRepeatClose($header->getRepeatClose());
     $this->setTripletFeel($header->getTripletFeel());
     $this->getTimeSignature()->copyFrom($header->getTimeSignature());
     $this->getTempo()->copyFrom($header->getTempo());
     $this->setMarker($header->hasMarker() ? clone $header->getMarker() : null);
     $this->checkMarker();
 }