public function addMeasureHeader(MeasureHeader $measureHeader) { $measureHeader->setSong($this); $this->measureHeaders[$this->countMeasureHeaders()] = $measureHeader; }
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(); }