~ubuntu-branches/ubuntu/saucy/solfege/saucy

« back to all changes in this revision

Viewing changes to help/ru/chord-module.html

  • Committer: Bazaar Package Importer
  • Author(s): Tom Cato Amundsen
  • Date: 2010-03-28 06:34:28 UTC
  • mfrom: (1.1.10 upstream) (2.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100328063428-wg2bqvoce2aq4xfb
Tags: 3.15.9-1
* New upstream release.
* Redo packaging. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>The chord module</title><link rel="stylesheet" href="../style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="GNU Solfege 3.14.5 Руководство пользователя"><link rel="up" href="extending-solfege.html" title="Глава 4. Extending GNU Solfege"><link rel="prev" href="lesson-files.html" title="Lesson files"><link rel="next" href="compareintervals-module.html" title="The compareintervals module"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">The <code class="literal">chord</code> module</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="lesson-files.html">Пред.</a> </td><th width="60%" align="center">Глава 4. Extending GNU Solfege</th><td width="20%" align="right"> <a accesskey="n" href="compareintervals-module.html">След.</a></td></tr></table><hr></div><div class="sect1" lang="ru"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="chord-module"></a>The <code class="literal">chord</code> module</h2></div></div></div><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Внимание</h3><p>The chord module has been
2
 
 superseeded by the <a class="link" href="idproperty-module.html" title="The idproperty module">idproperty</a>
3
 
 module. This module will not be developed further, and will
4
 
 eventually be removed from the program. You should modify your lessons to
5
 
 use the <code class="literal">idproperty</code> module. The chord module will be
6
 
 removed from the solfege program in the next development series, in
7
 
 Solfege version 3.11.0.</p><p>
8
 
   It is easy to do the convert. In Solfege 3.10 the lesson file heading
9
 
   would contain the following line:
10
 
 </p><pre class="programlisting">
11
 
   module = chord
12
 
 </pre><p>Replace that with this:</p><pre class="programlisting">
13
 
   module = idproperty
14
 
   flavour = "chord"
15
 
 </pre></div><p>
16
 
 The chord module let you identify different properties of chords, such as
17
 
 their name, inversion, top tone etc.
18
 
</p><p>The properties are defined by the <code class="literal">props</code> variable in
19
 
the lesson file header, and there should be a variable
20
 
<code class="literal">prop_labels</code> that defines the label to use.
21
 
<code class="literal">props</code> and <code class="literal">prop_labels</code> must be lists of
22
 
equal length. You only have to define these two variables if you need
23
 
other properties than the default ones: <code class="literal">name</code>,
24
 
<code class="literal">inversion</code> and <code class="literal">toptone</code>.</p><p>Below is a minimal lesson file. It will create an exercise that will play
25
 
a minor or major chord and the user answers with two buttons labeled "Minor"
26
 
and "Major" and two buttons representing the inversion. Notice that unused properties, toptone in this example, are hidden.</p><pre class="programlisting">
27
 
header {
28
 
    <a class="xref" href="lesson-files.html#lf-module">module</a> = chord
29
 
    <a class="xref" href="lesson-files.html#lf-title">title</a> = "Minor and major chords"
30
 
    <a class="xref" href="lesson-files.html#lf-lesson_id">lesson_id</a> = "e263d40a-d8ff-4000-a7f2-c02ba087bf72"
31
 
    qprops = "name", "inversion", "toptone"
32
 
    qprop_labels = _("Chord type"), _("Inversion"), _("Toptone")
33
 
}
34
 
question {
35
 
  name = "Major"
36
 
  music = chord("c' e' g'")
37
 
  inversion = 0
38
 
}
39
 
question {
40
 
  name = "Minor"
41
 
  music = chord("es' g' c''")
42
 
  inversion = 1
43
 
}
44
 
</pre><p>The <code class="literal">inversion</code> property is special. If assigned integer
45
 
values, like in the example, the integer values will be replaced with strings. So <code class="literal">0</code> is replaced with "root position", <code class="literal">1</code> with "1. inversion" etc.</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="lesson-files.html">Пред.</a> </td><td width="20%" align="center"><a accesskey="u" href="extending-solfege.html">Уровень выше</a></td><td width="40%" align="right"> <a accesskey="n" href="compareintervals-module.html">След.</a></td></tr><tr><td width="40%" align="left" valign="top">Lesson files </td><td width="20%" align="center"><a accesskey="h" href="index.html">Начало</a></td><td width="40%" align="right" valign="top"> The <code class="literal">compareintervals</code> module</td></tr></table></div></body></html>