Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /trunk/synth/gnotest.srp [r81] .. [r82] Maximize Restore

  Switch to side-by-side view

--- a/trunk/synth/gnotest.srp
+++ b/trunk/synth/gnotest.srp
@@ -214,6 +214,10 @@
             prefs.save()
             synth_my_usernum = usernum
         // else the user clicked 'cancel' and wxs_get_number returned -1
+    elif x == FILE_MORE_CLICK:
+        click_velocity = min(200, click_velocity + 10)
+    elif x == FILE_LESS_CLICK:
+        click_velocity = max(50, click_velocity - 10)
             
 def help_win_handler(obj, event, x, y):
     if event == WXS_CLOSE_WINDOW:
@@ -256,7 +260,6 @@
                      exp(log_of_10_over_20 * synth_voice))
     prefs.set('synth_volume', synth_volume)
     prefs.set('synth_myvolume', synth_myvolume)
-    prefs.set('synth_voice', synth_voice)
     prefs.save()
     
 def orch_revb_handler(slider, db)
@@ -348,7 +351,8 @@
 myvol_slider = Labeled_slider(0, "My Volume", 15, 230, 400, 20, 85, -120, 0, synth_myvolume, 'db')
 myvol_slider.method = 'myvol_handler'
 
-synth_voice = prefs.get('synth_volume', -10.0)
+# no prefs on this -- always initializes to a preset
+# synth_voice = prefs.get('synth_volume', -10.0)
 voice_slider = Labeled_slider(0, "Voice (dB)", 15, 250, 400, 20, 85, -120, 0, synth_voice, 'db')
 voice_slider.method = 'voice_handler'
 
@@ -398,6 +402,12 @@
 
 FILE_SET_USERNUM = file_menu.item("Set user number...",
                                   "Set your user number -- used to select parts")
+
+FILE_MORE_CLICK = file_menu.item("More Click",
+                                 "Louder click in stand-alone mode or for drummer")
+
+FILE_LESS_CLICK = file_menu.item("Less Click",
+                                 "Softer click in stand-alone mode or for drummer")
 
 file_menu.method = 'file_handler'