コード例 #1
0
 def __init__(self,
              scale=IntervalScale('Whole Tone Fractions'),
              lowest_pitch=Pitch.from_name('C3'),
              highest_pitch=Pitch.from_name('C5'),
              possible_detune=0.5):
     self._scale = scale
     self._lowest_pitch = lowest_pitch
     self._highest_pitch = highest_pitch
     self._possible_detune = possible_detune
コード例 #2
0
 def __init__(self,
              scale=Scale('12-TET (A=440Hz)'),
              lowest_pitch=Pitch.from_name('C2'),
              highest_pitch=Pitch.from_name('C6'),
              possible_detune=1.0,
              smallest_interval=Interval.from_name('unison'),
              largest_interval=Interval.from_name('octave'),
              chord_size=3):
     self._scale = scale
     self._lowest_pitch = lowest_pitch
     self._highest_pitch = highest_pitch
     self._possible_detune = possible_detune
     self._smallest_interval = smallest_interval
     self._largest_interval = largest_interval
     self._chord_size = chord_size
コード例 #3
0
 def highest_pitch_changed(self):
     self.exercise.set_highest_pitch(
         Pitch.from_name(self.setting_window.get_setting("highest_pitch"))
     )