MCPcopy Create free account
hub / github.com/bspaans/python-mingus / get_tuning

Method get_tuning

mingus/containers/track.py:135–143  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 7

from_chordsMethod · 0.95
tablature.pyFile · 0.80
from_TrackFunction · 0.80
from_CompositionFunction · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
test_get_tuningMethod · 0.80

Calls

no outgoing calls

Tested by 3

setUpMethod · 0.64
setUpMethod · 0.64
test_get_tuningMethod · 0.64