def get_tuning(self):
        """Return a StringTuning object.

        If an instrument is set and has a tuning it will be returned.
        Otherwise the track's one will be used.
        """
        if self.instrument and self.instrument.tuning:
            return self.instrument.tuning
        return self.tuning