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

« back to all changes in this revision

Viewing changes to help/C/idbyname-module.html

  • Committer: Bazaar Package Importer
  • Author(s): Tom Cato Amundsen
  • Date: 2011-04-10 11:04:33 UTC
  • mto: (1.1.13 upstream) (2.1.12 sid)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20110410110433-tzlbk1y99xzjixdu
Import upstream version 3.19.6

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 idbyname module</title><link rel="stylesheet" href="../style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="GNU Solfege 3.16.4 User Manual"><link rel="up" href="extending-solfege.html" title="Chapter 4. Extending GNU Solfege"><link rel="prev" href="harmonicinterval-module.html" title="The harmonicinterval module"><link rel="next" href="identifybpm-module.html" title="The identifybpm 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">idbyname</code> module</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="harmonicinterval-module.html">Prev</a> </td><th width="60%" align="center">Chapter 4. Extending GNU Solfege</th><td width="20%" align="right"> <a accesskey="n" href="identifybpm-module.html">Next</a></td></tr></table><hr></div><div class="sect1" title="The idbyname module"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="idbyname-module"></a>The <code class="literal">idbyname</code> module</h2></div></div></div><p>This is a very generic exercise. In its most basic form, the program will
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>The idbyname module</title><link rel="stylesheet" href="../style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="GNU Solfege 3.19.6 User Manual"><link rel="up" href="extending-solfege.html" title="Chapter 4. Extending GNU Solfege"><link rel="prev" href="harmonicinterval-module.html" title="The harmonicinterval module"><link rel="next" href="identifybpm-module.html" title="The identifybpm 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">idbyname</code> module</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="harmonicinterval-module.html">Prev</a> </td><th width="60%" align="center">Chapter 4. Extending GNU Solfege</th><td width="20%" align="right"> <a accesskey="n" href="identifybpm-module.html">Next</a></td></tr></table><hr></div><div class="sect1" title="The idbyname module"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="idbyname-module"></a>The <code class="literal">idbyname</code> module</h2></div></div></div><p>This is a very generic exercise. In its most basic form, the program will
2
2
play some sound, and you have to select among several buttons that in some way
3
3
represents the music.</p><p>Here is a minimal lesson file:</p><pre class="programlisting">
4
4
header {
5
5
  <a class="xref" href="lesson-files.html#lf-module">module</a> = idbyname
6
 
  <a class="xref" href="lesson-files.html#lf-lesson_id">lesson_id</a> = "a400df62-e007-4a1b-9057-cd05397e88a2"
7
6
  <a class="xref" href="lesson-files.html#lf-version">version</a> = "3.1.4"
8
7
  <a class="xref" href="lesson-files.html#lf-title">title</a> = "Menuitem title"
9
8
}
15
14
 name = "Minor"
16
15
 music = chord("c' es' g'")
17
16
}
18
 
</pre><div class="variablelist" title="Optional idbyname header variables"><p class="title"><b>Optional idbyname header variables</b></p><dl><dt><span class="term"><code class="literal">filldir = vertic</code></span></dt><dd><a class="indexterm" name="id2595747"></a><p>Tell the direction the buttons are filled. Default value is <code class="literal">horiz</code>.</p><p>Modules: <code class="literal">idbyname</code>.</p></dd><dt><span class="term"><code class="literal">fillnum</code></span></dt><dd><a class="indexterm" name="id2595776"></a><p>Tell how many buttons there are in each row or column. 
19
 
     The default value is 1.</p><p>Modules: <code class="literal">idbyname</code>.</p></dd><dt><span class="term"><code class="literal"><a name="lf-labelformat"></a>labelformat</code><code class="literal"> = progression</code></span></dt><dd><a class="indexterm" name="id2595807"></a><p>The default value is <code class="literal">normal</code>.
 
17
</pre><div class="variablelist" title="Optional idbyname header variables"><p class="title"><b>Optional idbyname header variables</b></p><dl><dt><span class="term"><code class="literal">filldir = vertic</code></span></dt><dd><a class="indexterm" name="id469784"></a><p>Tell the direction the buttons are filled. Default value is <code class="literal">horiz</code>.</p><p>Modules: <code class="literal">idbyname</code>.</p></dd><dt><span class="term"><code class="literal">fillnum</code></span></dt><dd><a class="indexterm" name="id469816"></a><p>Tell how many buttons there are in each row or column. 
 
18
     The default value is 1.</p><p>Modules: <code class="literal">idbyname</code>.</p></dd><dt><span class="term"><code class="literal"><a name="lf-labelformat"></a>labelformat</code><code class="literal"> = progression</code></span></dt><dd><a class="indexterm" name="id469850"></a><p>The default value is <code class="literal">normal</code>.
20
19
    Set to <code class="literal">progression</code> for lesson files where the name of the
21
20
    questions is a harmonic progression, written in a undocumented, but not
22
21
    difficult format. Check some existing lesson file to see how it works.
26
25
    
27
26
    <code class="varname"><a name="lf-have_repeat_slowly_button"></a>have_repeat_slowly_button</code>
28
27
    
29
 
    <code class="literal">= yes</code></span></dt><dd><a class="indexterm" name="id2595858"></a><p>Set to <code class="literal">yes</code> if you want the exercise to have a "Repeat slowly" button.</p><p>Modules: <code class="literal">idbyname</code>.</p></dd></dl></div><p>
 
28
    <code class="literal">= yes</code></span></dt><dd><a class="indexterm" name="id469904"></a><p>Set to <code class="literal">yes</code> if you want the exercise to have a "Repeat slowly" button.</p><p>Modules: <code class="literal">idbyname</code>.</p></dd></dl></div><p>
30
29
See also <a class="xref" href="lesson-files.html#lf-at_question_start">at_question_start</a>
31
30
and <a class="xref" href="lesson-files.html#lf-music_displayer_stafflines">music_displayer_stafflines</a>.
32
 
</p><div class="sect2" title="Question block"><div class="titlepage"><div><div><h3 class="title"><a name="id2595896"></a>Question block</h3></div></div></div><div class="itemizedlist" title="Required question variables"><p class="title"><b>Required question variables</b></p><ul class="itemizedlist" type="disc"><li class="listitem"><p><a class="xref" href="lesson-files.html#lf-name">name</a>. Can be a string
33
 
or a label created by the <a class="xref" href="lesson-files.html#labelfunctions" title="Label functions">label functions</a>.</p></li><li class="listitem"><p><a class="xref" href="lesson-files.html#lf-music">music</a></p></li></ul></div><div class="variablelist" title="Optional question variables"><p class="title"><b>Optional question variables</b></p><dl><dt><span class="term"><code class="varname">vmusic</code></span></dt><dd><a class="indexterm" name="id2595945"></a><p>See <a class="xref" href="lesson-files.html#lf-vmusic">vmusic</a>.</p></dd><dt><span class="term"><code class="varname">cuemusic</code></span></dt><dd><a class="indexterm" name="id2595969"></a><p>Will be displayed in the music displayer when the user clicks New.
 
31
</p><div class="sect2" title="Question block"><div class="titlepage"><div><div><h3 class="title"><a name="id469947"></a>Question block</h3></div></div></div><div class="itemizedlist" title="Required question variables"><p class="title"><b>Required question variables</b></p><ul class="itemizedlist" type="disc"><li class="listitem"><p><a class="xref" href="lesson-files.html#lf-name">name</a>. Can be a string
 
32
or a label created by the <a class="xref" href="lesson-files.html#labelfunctions" title="Label functions">label functions</a>.</p></li><li class="listitem"><p><a class="xref" href="lesson-files.html#lf-music">music</a></p></li></ul></div><div class="variablelist" title="Optional question variables"><p class="title"><b>Optional question variables</b></p><dl><dt><span class="term"><code class="varname">vmusic</code></span></dt><dd><a class="indexterm" name="id470001"></a><p>See <a class="xref" href="lesson-files.html#lf-vmusic">vmusic</a>.</p></dd><dt><span class="term"><code class="varname">cuemusic</code></span></dt><dd><a class="indexterm" name="id470028"></a><p>Will be displayed in the music displayer when the user clicks New.
34
33
    Ignored if <code class="literal">at_question_start = play, show</code> or
35
34
    <code class="literal">at_question_start = show</code>, because then the content of
36
35
    <code class="varname">music</code> or <code class="varname">vmusic</code> is displayed when the