the little girl had been hiding in a berth underneath a hammock as her adopted brother had directed her to do and had only emerged from this sleeping quarter when she heard the pirates chanting a victory song .