[gnome-devel-docs] Incorect frequency for low note 'E' are defined.



commit d0567a3329157b08187fb8ec1b2ed7dcb5265e4b
Author: Tiffany Antopolski <tiffany antopolski gmail com>
Date:   Thu Jan 10 14:06:07 2013 -0500

    Incorect frequency for low note 'E' are defined.
    
    Bug #687628

 platform-demos/C/guitar-tuner.c.page    |    2 +-
 platform-demos/C/guitar-tuner.cpp.page  |    2 +-
 platform-demos/C/guitar-tuner.js.page   |    4 ++--
 platform-demos/C/guitar-tuner.py.page   |    2 +-
 platform-demos/C/guitar-tuner.vala.page |    2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/platform-demos/C/guitar-tuner.c.page b/platform-demos/C/guitar-tuner.c.page
index 6a35834..7a8ad0f 100644
--- a/platform-demos/C/guitar-tuner.c.page
+++ b/platform-demos/C/guitar-tuner.c.page
@@ -214,7 +214,7 @@ pipeline_stop (GstElement* pipeline)
   <p>We want to play the correct sound when the user clicks a button. First of all, we need to know the frequencies for the six guitar strings, which are defined (at the top of <file>main.c</file>) as follows:</p>
   <code mime="text/x-csrc"><![CDATA[
 /* Frequencies of the strings */
-#define NOTE_E 369.23
+#define NOTE_E 329.63
 #define NOTE_A 440
 #define NOTE_D 587.33
 #define NOTE_G 783.99
diff --git a/platform-demos/C/guitar-tuner.cpp.page b/platform-demos/C/guitar-tuner.cpp.page
index c898db3..466b1de 100644
--- a/platform-demos/C/guitar-tuner.cpp.page
+++ b/platform-demos/C/guitar-tuner.cpp.page
@@ -221,7 +221,7 @@ Gtk::Button* button;
 
 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));
 ]]></code>
 	<steps>
 	<item>
diff --git a/platform-demos/C/guitar-tuner.js.page b/platform-demos/C/guitar-tuner.js.page
index 2a4ab10..b9cdde9 100644
--- a/platform-demos/C/guitar-tuner.js.page
+++ b/platform-demos/C/guitar-tuner.js.page
@@ -101,7 +101,7 @@ guitar_box.show_all();]]></code>
   <section id="playSound">
    <title>Making the sounds with GStreamer</title>
    <code mime="application/javascript" style="numbered"><![CDATA[
-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){
   var pipeline = new Gst.Pipeline({name: "note"});
@@ -171,7 +171,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.py.page b/platform-demos/C/guitar-tuner.py.page
index 4e232d3..e3e8c7d 100644
--- a/platform-demos/C/guitar-tuner.py.page
+++ b/platform-demos/C/guitar-tuner.py.page
@@ -200,7 +200,7 @@ we can easily map them to the names of the strings:</p>
   <code mime="test/x-python"><![CDATA[
 # 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.vala.page b/platform-demos/C/guitar-tuner.vala.page
index fbd03a7..34e729a 100644
--- a/platform-demos/C/guitar-tuner.vala.page
+++ b/platform-demos/C/guitar-tuner.vala.page
@@ -217,7 +217,7 @@ public void on_button_clicked (Gtk.Button sender) {
 	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]