Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tuning_toolbar.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2012-06-23 21:39:59 (GMT)
committer Walter Bender <walter.bender@gmail.com>2012-06-23 21:39:59 (GMT)
commit429cedabbee5a9efb2025b0427667a70d24162bc (patch)
tree0297f984d462a886a0651d6aae340d9ad83a8be5 /tuning_toolbar.py
parent1a0e239e25ba8c5312e3e269d3e42e11e4e9b04f (diff)
move time/freq. control to main toolbar; autoselect freq base when tuning
Diffstat (limited to 'tuning_toolbar.py')
-rw-r--r--tuning_toolbar.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tuning_toolbar.py b/tuning_toolbar.py
index b853414..b3c5160 100644
--- a/tuning_toolbar.py
+++ b/tuning_toolbar.py
@@ -221,7 +221,9 @@ class TuningToolbar(gtk.Toolbar):
return
self.remove(self._notes_tool)
self.activity.wave.instrument = instrument
-
+ # If we are not already in freq. base, switch.
+ if not self.activity.wave.get_fft_mode():
+ self.activity.timefreq_control()
# Add a Tuning Combo box for this instrument
self._tuning_combo = ComboBox()
self.tuning = [_('All notes')]
@@ -269,6 +271,9 @@ class TuningToolbar(gtk.Toolbar):
except ValueError:
self.activity.wave.tuning_line = 0.0
self._freq_entry.set_text('0')
+ # If we are not already in freq. base, switch.
+ if not self.activity.wave.get_fft_mode():
+ self.activity.timefreq_control()
def play_cb(self, *args):
''' Play a tone at current frequency '''