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.
(self)
| 133 | return self |
| 134 | |
| 135 | def get_tuning(self): |
| 136 | """Return a StringTuning object. |
| 137 | |
| 138 | If an instrument is set and has a tuning it will be returned. |
| 139 | Otherwise the track's one will be used. |
| 140 | """ |
| 141 | if self.instrument and self.instrument.tuning: |
| 142 | return self.instrument.tuning |
| 143 | return self.tuning |
| 144 | |
| 145 | def set_tuning(self, tuning): |
| 146 | """Set the tuning attribute on both the Track and its instrument (when |
no outgoing calls