/** * Reads NoteEffect * * @param NoteEffect $noteEffect * @return void */ public function readNoteEffects(NoteEffect $effect) { $flags = $this->reader->readUnsignedByte(); $effect->setHammer(($flags & 0x2) != 0); $effect->setSlide(($flags & 0x4) != 0); $effect->setLetRing(($flags & 0x8) != 0); if (($flags & 0x1) != 0) { $this->readBend($effect, $this->reader); } if (($flags & 0x10) != 0) { $this->readGrace($effect, $this->reader); } }