[gnome-devel-docs] platform-demos: Fix guitar-tuner.js sample
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] platform-demos: Fix guitar-tuner.js sample
- Date: Thu, 18 Dec 2014 22:16:33 +0000 (UTC)
commit 63df6d251fd3fb9226ac207198e5238b2f33efa8
Author: David King <amigadave amigadave com>
Date: Thu Dec 18 22:14:20 2014 +0000
platform-demos: Fix guitar-tuner.js sample
https://mail.gnome.org/archives/docs-feedback/2014-December/msg00015.html
platform-demos/C/guitar-tuner.js.page | 10 +++++-----
platform-demos/C/guitar-tuner/guitar-tuner.js | 4 ++--
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/platform-demos/C/guitar-tuner.js.page b/platform-demos/C/guitar-tuner.js.page
index 2382102..8037e50 100644
--- a/platform-demos/C/guitar-tuner.js.page
+++ b/platform-demos/C/guitar-tuner.js.page
@@ -106,8 +106,8 @@ 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"});
- var source = new Gst.ElementFactory.make("audiotestsrc","source");
- var sink = new Gst.ElementFactory.make("autoaudiosink","output");
+ var source = Gst.ElementFactory.make("audiotestsrc","source");
+ var sink = Gst.ElementFactory.make("autoaudiosink","output");
source.set_property('freq', frequency);
pipeline.add(source);
@@ -155,7 +155,7 @@ e.connect("clicked", function(){
</section>
<section id="guitarjs">
<title>The whole program</title>
- <p>So this is what all the parts combined looks like. When running this code, you should be able to tune
your guitar(if you have correctly calibrated speakers).</p>
+ <p>So this is what all the parts combined looks like. When running this code, you should be able to tune
your guitar (if you have correctly calibrated speakers).</p>
<code mime="application/javascript" style="numbered"><![CDATA[
#!/usr/bin/gjs
var Gtk = imports.gi.Gtk;
@@ -185,8 +185,8 @@ 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"});
- var source = new Gst.ElementFactory.make("audiotestsrc","source");
- var sink = new Gst.ElementFactory.make("autoaudiosink","output");
+ var source = Gst.ElementFactory.make("audiotestsrc","source");
+ var sink = Gst.ElementFactory.make("autoaudiosink","output");
source.set_property('freq', frequency);
pipeline.add(source);
diff --git a/platform-demos/C/guitar-tuner/guitar-tuner.js b/platform-demos/C/guitar-tuner/guitar-tuner.js
index a3e08f5..27f45dd 100644
--- a/platform-demos/C/guitar-tuner/guitar-tuner.js
+++ b/platform-demos/C/guitar-tuner/guitar-tuner.js
@@ -26,8 +26,8 @@ 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"});
- var source = new Gst.ElementFactory.make("audiotestsrc","source");
- var sink = new Gst.ElementFactory.make("autoaudiosink","output");
+ var source = Gst.ElementFactory.make("audiotestsrc","source");
+ var sink = Gst.ElementFactory.make("autoaudiosink","output");
source.set_property('freq', frequency);
pipeline.add(source);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]