[gnome-devel-docs] demos: fix 'E' note frequency in guitar tuner.



commit bd836b6a9b04c16282f96e8d27dcc0b14f5e9ad7
Author: Luis Menina <liberforce freeside fr>
Date:   Wed Sep 25 22:02:30 2013 +0200

    demos: fix 'E' note frequency in guitar tuner.
    
    Fixes languages other than C.
    See bug #687628.

 platform-demos/C/guitar-tuner/guitar-tuner.cc   |    2 +-
 platform-demos/C/guitar-tuner/guitar-tuner.js   |    2 +-
 platform-demos/C/guitar-tuner/guitar-tuner.py   |    2 +-
 platform-demos/C/guitar-tuner/guitar-tuner.vala |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/platform-demos/C/guitar-tuner/guitar-tuner.cc b/platform-demos/C/guitar-tuner/guitar-tuner.cc
index e59fe27..4898a8d 100644
--- a/platform-demos/C/guitar-tuner/guitar-tuner.cc
+++ b/platform-demos/C/guitar-tuner/guitar-tuner.cc
@@ -81,7 +81,7 @@ main(int argc, char *argv[])
        
        builder->get_widget("button_E", button);
        button->signal_clicked().connect (sigc::bind<double, Sound*>(sigc::ptr_fun(&on_button_clicked),
-                                                     369.23, &sound));
+                                                     329.63, &sound));
        builder->get_widget("button_A", button);
        button->signal_clicked().connect (sigc::bind<double, Sound*>(sigc::ptr_fun(&on_button_clicked),
                                                      440, &sound));
diff --git a/platform-demos/C/guitar-tuner/guitar-tuner.js b/platform-demos/C/guitar-tuner/guitar-tuner.js
index 8e6e0e6..699f036 100644
--- a/platform-demos/C/guitar-tuner/guitar-tuner.js
+++ b/platform-demos/C/guitar-tuner/guitar-tuner.js
@@ -20,7 +20,7 @@ var G = new Gtk.Button({label: "G"});
 var B = new Gtk.Button({label: "B"});
 var e = new Gtk.Button({label: "e"});
 
-var frequencies = {E: 369.23, A: 440,  D: 587.33,      G: 783.99,      B: 987.77,      e: 1318.5}
+var frequencies = {E: 329.63, A: 440,  D: 587.33,      G: 783.99,      B: 987.77,      e: 1318.5}
 
 
 function playSound(frequency){
diff --git a/platform-demos/C/guitar-tuner/guitar-tuner.py b/platform-demos/C/guitar-tuner/guitar-tuner.py
index ac60e7c..eb87c11 100644
--- a/platform-demos/C/guitar-tuner/guitar-tuner.py
+++ b/platform-demos/C/guitar-tuner/guitar-tuner.py
@@ -12,7 +12,7 @@ class GUI:
        LENGTH = 500
        # Frequencies of the strings
        frequencies = {
-               'E': 369.23,
+               'E': 329.63,
                'A': 440,
                'D': 587.33,
                'G': 783.99,
diff --git a/platform-demos/C/guitar-tuner/guitar-tuner.vala b/platform-demos/C/guitar-tuner/guitar-tuner.vala
index 043eeaa..e235ee2 100644
--- a/platform-demos/C/guitar-tuner/guitar-tuner.vala
+++ b/platform-demos/C/guitar-tuner/guitar-tuner.vala
@@ -21,7 +21,7 @@ public class Main : Object
                var label = sender.get_child () as Gtk.Label;
                switch (label.get_label()) {
                        case "E":
-                               play_sound (369.23);
+                               play_sound (329.63);
                                break;
                        case "A":
                                play_sound (440);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]