smf 0.15.12 → 0.15.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 53ed492f0b403ae951cfad49311e5bd011fc8cee
4
+ data.tar.gz: 9d55e869bf67be8d8df5a69ad616b219744c34f2
5
+ SHA512:
6
+ metadata.gz: 369695c346247ae2524ccd7573605545641f3acf69f272af1cf20fa7145bc7ec645cae5fcf55acee41f56ca38a7d55f6a1031fa93167df395d9bbedc657946f8
7
+ data.tar.gz: 8ee436a2e4f2130f9579578e904bccc77105944b3c76a09a586f9647ba2752faa6836831aba8dda5ff36043b1287a01a693f26fc53873515d7cc5883c160ae32
data/LICENSE ADDED
@@ -0,0 +1,26 @@
1
+ Copyright (c) 1998-2014, Tadayoshi Funaba
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are
6
+ met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright
9
+ notice, this list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright
12
+ notice, this list of conditions and the following disclaimer in the
13
+ documentation and/or other materials provided with the
14
+ distribution.
15
+
16
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/MANUAL CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- ���饹
2
+ クラス
3
3
 
4
4
  * Sequence <format, division, tc=nil>
5
5
  * Track
@@ -46,7 +46,7 @@
46
46
  # Text0E
47
47
  # Text0F
48
48
  o ChannelPrefix <..., ch>
49
- o MIDIPort <..., num> (PR-001 �ˤʤ�)
49
+ o MIDIPort <..., num> (PR-001 にない)
50
50
  o EndOfTrack
51
51
  o SetTempo <..., tempo>
52
52
  o SMPTEOffset <..., hr, mn, se, fr, ff, tc>
@@ -56,117 +56,112 @@
56
56
 
57
57
  Sequence
58
58
 
59
- �������󥹤�ɽ�����륯�饹�Ǥ����������󥹤ϥȥ�å������ޤ���
59
+ シーケンスを表現するクラスです。シーケンスはトラックをもちます。
60
60
 
61
- �����ѡ����饹
61
+ スーパークラス
62
62
 
63
63
  Object
64
64
 
65
- ���󥯥롼�ɤ��Ƥ���⥸�塼��
65
+ インクルードしているモジュール
66
66
 
67
67
  Enumerable
68
68
 
69
- ���饹�᥽�å�
69
+ クラスメソッド
70
70
 
71
71
  decode(str)
72
- ʸ���󤫤��ɤߤ��ߤޤ���
72
+ 文字列から読みこみます。
73
73
 
74
74
  read(io)
75
- IO �����ɤߤ��ߤޤ���
75
+ IO から読みこみます。
76
76
 
77
77
  load(fn)
78
- �ե����뤫���ɤߤ��ߤޤ���
78
+ ファイルから読みこみます。
79
79
 
80
- �嵭3�ĤΥ᥽�åɤϡ����������ƥ������ΤȤ��Ρ��ȥ���� �Ρ��ȥ�
81
- �դ��֤��������ޤ���
80
+ 上記3つのメソッドは、ヴェロシティが零のときノートオンを ノートオフで置き換えられます。
82
81
 
83
82
  new([format=1[, division=96[,tc=nil]]])
84
- �������󥹥��֥������Ȥ�������ޤ���
83
+ シーケンスオブジェクトを作成します。
85
84
 
86
- ��������
85
+ アクセサ
87
86
 
88
87
  format
89
88
  division
90
89
  tc
91
90
 
92
- �᥽�å�
91
+ メソッド
93
92
 
94
- �ۤ� Array ��Ʊ���᥽�åɤ��Ĥ����ޤ��� ����ʳ��Τ�Ρ����դ�ɬ�פʤ�
95
- �Τ�ʲ����������ޤ���
93
+ ほぼ Array と同じメソッドがつかえます。 それ以外のもの、注意が必要なものを以下で説明します。
96
94
 
97
95
  ntrks
98
- nitems ��Ʊ���Ǥ���
96
+ nitems と同じです。
99
97
 
100
98
  self >> tr
101
- ���Ǥ�����ޤ���
99
+ 要素を除きます。
102
100
 
103
101
  each{|tr| ...}
104
- ���ǤˤĤ��Ʒ����֤��ޤ���
102
+ 要素について繰り返します。
105
103
 
106
- nil �����Ǥ�̵�뤵��ޤ���
104
+ nil の要素は無視されます。
107
105
 
106
+ join
108
107
  join!
109
- �ȥ�å���ҤȤĤˤ��ޤ��� EOT �ϡ����ե��åȤ���äȤ��礭�ʤ�
110
- �Τ����Ѥ���ޤ���
108
+ トラックをひとつにします。 EOT は、オフセットがもっとも大きなものが採用されます。
111
109
 
112
110
  encode
113
- ʸ����˽񤭤ޤ���
111
+ 文字列に書きます。
114
112
 
115
- �⤷���ȥ�å��� EOT ���ʤ���С� �ȥ�å��κǸ�˥ǥ륿���� EOT
116
- ���ɲä��ޤ���
113
+ もし、トラックに EOT がなければ、 トラックの最後にデルタ零の EOT を追加します。
117
114
 
118
115
  write(io)
119
- IO �˽񤭤ޤ���
116
+ IO に書きます。
120
117
 
121
118
  save(fn)
122
- �ե�����˽񤭤ޤ���
119
+ ファイルに書きます。
123
120
 
124
121
  Track
125
122
 
126
- �ȥ�å���ɽ�����륯�饹�Ǥ����ȥ�å��ϥ��٥�Ȥ����ޤ���
123
+ トラックを表現するクラスです。トラックはイベントをもちます。
127
124
 
128
- �����ѡ����饹
125
+ スーパークラス
129
126
 
130
127
  Object
131
128
 
132
- ���󥯥롼�ɤ��Ƥ���⥸�塼��
129
+ インクルードしているモジュール
133
130
 
134
131
  Enumerable
135
132
 
136
- ���饹�᥽�å�
133
+ クラスメソッド
137
134
 
138
135
  new
139
- �ȥ�å����֥������Ȥ�������ޤ���
136
+ トラックオブジェクトを作成します。
140
137
 
141
- �᥽�å�
138
+ メソッド
142
139
 
143
- �ۤ� Array ��Ʊ���᥽�åɤ��Ĥ����ޤ��� ����ʳ��Τ�Ρ����դ�ɬ�פʤ�
144
- �Τ�ʲ����������ޤ���
140
+ ほぼ Array と同じメソッドがつかえます。 それ以外のもの、注意が必要なものを以下で説明します。
145
141
 
146
142
  nevts
147
- nitems ��Ʊ���Ǥ���
143
+ nitems と同じです。
148
144
 
149
145
  self >> ev
150
- ���Ǥ�����ޤ���
146
+ 要素を除きます。
151
147
 
152
148
  each{|ev| ...}
153
- ���ǤˤĤ��Ʒ����֤��ޤ���
149
+ 要素について繰り返します。
154
150
 
155
- nil �����Ǥ�̵�뤵��ޤ����ޤ������٥�Ȥϥ����Ȥ���ޤ� (����)
156
- ��
151
+ nil の要素は無視されます。また、イベントはソートされます (安定)
157
152
 
158
153
  Event
159
154
 
160
- ���٥�Ȥ���ݥ��饹�Ǥ���
155
+ イベントの抽象クラスです。
161
156
 
162
- �����ѡ����饹
157
+ スーパークラス
163
158
 
164
159
  Object
165
160
 
166
- ���󥯥롼�ɤ��Ƥ���⥸�塼��
161
+ インクルードしているモジュール
167
162
 
168
163
  Comparable
169
164
 
170
- ��������
165
+ アクセサ
171
166
 
172
167
  offset
data/MANUAL.en CHANGED
@@ -88,6 +88,7 @@ Sequence
88
88
  ntrks
89
89
  self >> tr
90
90
  each{|tr| ...}
91
+ join
91
92
  join!
92
93
  encode
93
94
  write(io)
@@ -1,12 +1,12 @@
1
- <?xml version="1.0" encoding="iso-8859-1" ?>
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
2
  <!DOCTYPE html
3
3
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
4
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
- <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
6
6
  <head>
7
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
7
8
  <title>SMF</title>
8
- <meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
9
- <link href="default.css" type="text/css" rel="stylesheet" />
9
+ <link href="styles/default.css" type="text/css" rel="stylesheet" />
10
10
  <link href="index.html" rel="index" />
11
11
  <link href="mailto:tadf@funaba.org" rev="made" />
12
12
  </head>
@@ -112,38 +112,39 @@ In addition, this also have the following methods.</p>
112
112
  <dt><a name="label-15" id="label-15">ntrks</a></dt><!-- RDLabel: "ntrks" -->
113
113
  <dt><a name="label-16" id="label-16">self &gt;&gt; tr</a></dt><!-- RDLabel: "self >> tr" -->
114
114
  <dt><a name="label-17" id="label-17">each{|tr| ...}</a></dt><!-- RDLabel: "each{|tr| ...}" -->
115
- <dt><a name="label-18" id="label-18">join!</a></dt><!-- RDLabel: "join!" -->
116
- <dt><a name="label-19" id="label-19">encode</a></dt><!-- RDLabel: "encode" -->
117
- <dt><a name="label-20" id="label-20">write(io)</a></dt><!-- RDLabel: "write(io)" -->
118
- <dt><a name="label-21" id="label-21">save(fn)</a></dt><!-- RDLabel: "save(fn)" -->
115
+ <dt><a name="label-18" id="label-18">join</a></dt><!-- RDLabel: "join" -->
116
+ <dt><a name="label-19" id="label-19">join!</a></dt><!-- RDLabel: "join!" -->
117
+ <dt><a name="label-20" id="label-20">encode</a></dt><!-- RDLabel: "encode" -->
118
+ <dt><a name="label-21" id="label-21">write(io)</a></dt><!-- RDLabel: "write(io)" -->
119
+ <dt><a name="label-22" id="label-22">save(fn)</a></dt><!-- RDLabel: "save(fn)" -->
119
120
  </dl>
120
121
  <p>The iterator each{} ignores all nil elements.</p>
121
- <h2><a name="label-22" id="label-22">Track</a></h2><!-- RDLabel: "Track" -->
122
- <h3><a name="label-23" id="label-23">Super Class</a></h3><!-- RDLabel: "Super Class" -->
122
+ <h2><a name="label-23" id="label-23">Track</a></h2><!-- RDLabel: "Track" -->
123
+ <h3><a name="label-24" id="label-24">Super Class</a></h3><!-- RDLabel: "Super Class" -->
123
124
  <p>Object</p>
124
- <h3><a name="label-24" id="label-24">Included Modules</a></h3><!-- RDLabel: "Included Modules" -->
125
+ <h3><a name="label-25" id="label-25">Included Modules</a></h3><!-- RDLabel: "Included Modules" -->
125
126
  <p>Enumerable</p>
126
- <h3><a name="label-25" id="label-25">Class Methods</a></h3><!-- RDLabel: "Class Methods" -->
127
+ <h3><a name="label-26" id="label-26">Class Methods</a></h3><!-- RDLabel: "Class Methods" -->
127
128
  <dl>
128
- <dt><a name="label-26" id="label-26">new</a></dt><!-- RDLabel: "new" -->
129
+ <dt><a name="label-27" id="label-27">new</a></dt><!-- RDLabel: "new" -->
129
130
  </dl>
130
- <h3><a name="label-27" id="label-27">Methods</a></h3><!-- RDLabel: "Methods" -->
131
+ <h3><a name="label-28" id="label-28">Methods</a></h3><!-- RDLabel: "Methods" -->
131
132
  <p>This nearly have all methods of array object.
132
133
  In addition, this also have the following methods.</p>
133
134
  <dl>
134
- <dt><a name="label-28" id="label-28">nevts</a></dt><!-- RDLabel: "nevts" -->
135
- <dt><a name="label-29" id="label-29">self &gt;&gt; ev</a></dt><!-- RDLabel: "self >> ev" -->
136
- <dt><a name="label-30" id="label-30">each{|ev| ...}</a></dt><!-- RDLabel: "each{|ev| ...}" -->
135
+ <dt><a name="label-29" id="label-29">nevts</a></dt><!-- RDLabel: "nevts" -->
136
+ <dt><a name="label-30" id="label-30">self &gt;&gt; ev</a></dt><!-- RDLabel: "self >> ev" -->
137
+ <dt><a name="label-31" id="label-31">each{|ev| ...}</a></dt><!-- RDLabel: "each{|ev| ...}" -->
137
138
  </dl>
138
139
  <p>The iterator each{} ignores all nil elements and sorts events (stable).</p>
139
- <h2><a name="label-31" id="label-31">Event</a></h2><!-- RDLabel: "Event" -->
140
- <h3><a name="label-32" id="label-32">Super Class</a></h3><!-- RDLabel: "Super Class" -->
140
+ <h2><a name="label-32" id="label-32">Event</a></h2><!-- RDLabel: "Event" -->
141
+ <h3><a name="label-33" id="label-33">Super Class</a></h3><!-- RDLabel: "Super Class" -->
141
142
  <p>Object</p>
142
- <h3><a name="label-33" id="label-33">Included Modules</a></h3><!-- RDLabel: "Included Modules" -->
143
+ <h3><a name="label-34" id="label-34">Included Modules</a></h3><!-- RDLabel: "Included Modules" -->
143
144
  <p>Comparable</p>
144
- <h3><a name="label-34" id="label-34">Accessors</a></h3><!-- RDLabel: "Accessors" -->
145
+ <h3><a name="label-35" id="label-35">Accessors</a></h3><!-- RDLabel: "Accessors" -->
145
146
  <dl>
146
- <dt><a name="label-35" id="label-35">offset</a></dt><!-- RDLabel: "offset" -->
147
+ <dt><a name="label-36" id="label-36">offset</a></dt><!-- RDLabel: "offset" -->
147
148
  </dl>
148
149
 
149
150
  </body>
@@ -95,6 +95,7 @@ In addition, this also have the following methods.
95
95
  : ntrks
96
96
  : self >> tr
97
97
  : each{|tr| ...}
98
+ : join
98
99
  : join!
99
100
  : encode
100
101
  : write(io)
@@ -1,18 +1,18 @@
1
- <?xml version="1.0" encoding="iso-2022-jp" ?>
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
2
  <!DOCTYPE html
3
3
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
4
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
5
  <html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
6
6
  <head>
7
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
7
8
  <title>SMF</title>
8
- <meta http-equiv="Content-type" content="text/html; charset=iso-2022-jp" />
9
- <link href="default.css" type="text/css" rel="stylesheet" />
9
+ <link href="styles/default.css" type="text/css" rel="stylesheet" />
10
10
  <link href="index.html" rel="index" />
11
11
  <link href="mailto:tadf@funaba.org" rev="made" />
12
12
  </head>
13
13
  <body>
14
- <h1><a name="label-0" id="label-0">SMF $B%b%8%e!<%k(B</a></h1><!-- RDLabel: "SMF $B%b%8%e!<%k(B" -->
15
- <h2><a name="label-1" id="label-1">$B%/%i%9(B</a></h2><!-- RDLabel: "$B%/%i%9(B" -->
14
+ <h1><a name="label-0" id="label-0">SMF モジュール</a></h1><!-- RDLabel: "SMF モジュール" -->
15
+ <h2><a name="label-1" id="label-1">クラス</a></h2><!-- RDLabel: "クラス" -->
16
16
  <ul>
17
17
  <li>Sequence &lt;format, division, tc=nil&gt;</li>
18
18
  <li>Track</li>
@@ -75,7 +75,7 @@
75
75
  <li>Text0F</li>
76
76
  </ul></li>
77
77
  <li>ChannelPrefix &lt;..., ch&gt;</li>
78
- <li>MIDIPort &lt;..., num&gt; (PR-001 $B$K$J$$(B)</li>
78
+ <li>MIDIPort &lt;..., num&gt; (PR-001 にない)</li>
79
79
  <li>EndOfTrack</li>
80
80
  <li>SetTempo &lt;..., tempo&gt;</li>
81
81
  <li>SMPTEOffset &lt;..., hr, mn, se, fr, ff, tc&gt;</li>
@@ -86,115 +86,116 @@
86
86
  </ul></li>
87
87
  </ul>
88
88
  <h2><a name="label-2" id="label-2">Sequence</a></h2><!-- RDLabel: "Sequence" -->
89
- <p>$B%7!<%1%s%9$rI=8=$9$k%/%i%9$G$9!#%7!<%1%s%9$O%H%i%C%/$r$b$A$^$9!#(B</p>
90
- <h3><a name="label-3" id="label-3">$B%9!<%Q!<%/%i%9(B</a></h3><!-- RDLabel: "$B%9!<%Q!<%/%i%9(B" -->
89
+ <p>シーケンスを表現するクラスです。シーケンスはトラックをもちます。</p>
90
+ <h3><a name="label-3" id="label-3">スーパークラス</a></h3><!-- RDLabel: "スーパークラス" -->
91
91
  <p>Object</p>
92
- <h3><a name="label-4" id="label-4">$B%$%s%/%k!<%I$7$F$$$k%b%8%e!<%k(B</a></h3><!-- RDLabel: "$B%$%s%/%k!<%I$7$F$$$k%b%8%e!<%k(B" -->
92
+ <h3><a name="label-4" id="label-4">インクルードしているモジュール</a></h3><!-- RDLabel: "インクルードしているモジュール" -->
93
93
  <p>Enumerable</p>
94
- <h3><a name="label-5" id="label-5">$B%/%i%9%a%=%C%I(B</a></h3><!-- RDLabel: "$B%/%i%9%a%=%C%I(B" -->
94
+ <h3><a name="label-5" id="label-5">クラスメソッド</a></h3><!-- RDLabel: "クラスメソッド" -->
95
95
  <dl>
96
96
  <dt><a name="label-6" id="label-6">decode(str)</a></dt><!-- RDLabel: "decode(str)" -->
97
97
  <dd>
98
- $BJ8;zNs$+$iFI$_$3$_$^$9!#(B
98
+ 文字列から読みこみます。
99
99
  </dd>
100
100
  <dt><a name="label-7" id="label-7">read(io)</a></dt><!-- RDLabel: "read(io)" -->
101
101
  <dd>
102
- IO $B$+$iFI$_$3$_$^$9!#(B
102
+ IO から読みこみます。
103
103
  </dd>
104
104
  <dt><a name="label-8" id="label-8">load(fn)</a></dt><!-- RDLabel: "load(fn)" -->
105
105
  <dd>
106
- <p>$B%U%!%$%k$+$iFI$_$3$_$^$9!#(B</p>
107
- <p>$B>e5-(B3$B$D$N%a%=%C%I$O!"%t%'%m%7%F%#$,Nm$N$H$-%N!<%H%*%s$r(B
108
- $B%N!<%H%*%U$GCV$-49$($i$l$^$9!#(B</p>
106
+ <p>ファイルから読みこみます。</p>
107
+ <p>上記3つのメソッドは、ヴェロシティが零のときノートオンを
108
+ ノートオフで置き換えられます。</p>
109
109
  </dd>
110
110
  <dt><a name="label-9" id="label-9">new([format=1[, division=96[,tc=nil]]])</a></dt><!-- RDLabel: "new([format=1[, division=96[,tc=nil]]])" -->
111
111
  <dd>
112
- $B%7!<%1%s%9%*%V%8%'%/%H$r:n@.$7$^$9!#(B
112
+ シーケンスオブジェクトを作成します。
113
113
  </dd>
114
114
  </dl>
115
- <h3><a name="label-10" id="label-10">$B%"%/%;%5(B</a></h3><!-- RDLabel: "$B%"%/%;%5(B" -->
115
+ <h3><a name="label-10" id="label-10">アクセサ</a></h3><!-- RDLabel: "アクセサ" -->
116
116
  <dl>
117
117
  <dt><a name="label-11" id="label-11">format</a></dt><!-- RDLabel: "format" -->
118
118
  <dt><a name="label-12" id="label-12">division</a></dt><!-- RDLabel: "division" -->
119
119
  <dt><a name="label-13" id="label-13">tc</a></dt><!-- RDLabel: "tc" -->
120
120
  </dl>
121
- <h3><a name="label-14" id="label-14">$B%a%=%C%I(B</a></h3><!-- RDLabel: "$B%a%=%C%I(B" -->
122
- <p>$B$[$\(B Array $B$HF1$8%a%=%C%I$,$D$+$($^$9!#(B
123
- $B$=$l0J30$N$b$N!"Cm0U$,I,MW$J$b$N$r0J2<$G@bL@$7$^$9!#(B</p>
121
+ <h3><a name="label-14" id="label-14">メソッド</a></h3><!-- RDLabel: "メソッド" -->
122
+ <p>ほぼ Array と同じメソッドがつかえます。
123
+ それ以外のもの、注意が必要なものを以下で説明します。</p>
124
124
  <dl>
125
125
  <dt><a name="label-15" id="label-15">ntrks</a></dt><!-- RDLabel: "ntrks" -->
126
126
  <dd>
127
- nitems $B$HF1$8$G$9!#(B
127
+ nitems と同じです。
128
128
  </dd>
129
129
  <dt><a name="label-16" id="label-16">self &gt;&gt; tr</a></dt><!-- RDLabel: "self >> tr" -->
130
130
  <dd>
131
- $BMWAG$r=|$-$^$9!#(B
131
+ 要素を除きます。
132
132
  </dd>
133
133
  <dt><a name="label-17" id="label-17">each{|tr| ...}</a></dt><!-- RDLabel: "each{|tr| ...}" -->
134
134
  <dd>
135
- <p>$BMWAG$K$D$$$F7+$jJV$7$^$9!#(B</p>
136
- <p>nil $B$NMWAG$OL5;k$5$l$^$9!#(B</p>
135
+ <p>要素について繰り返します。</p>
136
+ <p>nil の要素は無視されます。</p>
137
137
  </dd>
138
- <dt><a name="label-18" id="label-18">join!</a></dt><!-- RDLabel: "join!" -->
138
+ <dt><a name="label-18" id="label-18">join</a></dt><!-- RDLabel: "join" -->
139
+ <dt><a name="label-19" id="label-19">join!</a></dt><!-- RDLabel: "join!" -->
139
140
  <dd>
140
- $B%H%i%C%/$r$R$H$D$K$7$^$9!#(B
141
- EOT $B$O!"%*%U%;%C%H$,$b$C$H$bBg$-$J$b$N$,:NMQ$5$l$^$9!#(B
141
+ トラックをひとつにします。
142
+ EOT は、オフセットがもっとも大きなものが採用されます。
142
143
  </dd>
143
- <dt><a name="label-19" id="label-19">encode</a></dt><!-- RDLabel: "encode" -->
144
+ <dt><a name="label-20" id="label-20">encode</a></dt><!-- RDLabel: "encode" -->
144
145
  <dd>
145
- <p>$BJ8;zNs$K=q$-$^$9!#(B</p>
146
- <p>$B$b$7!"%H%i%C%/$K(B EOT $B$,$J$1$l$P!"(B
147
- $B%H%i%C%/$N:G8e$K%G%k%?Nm$N(B EOT $B$rDI2C$7$^$9!#(B</p>
146
+ <p>文字列に書きます。</p>
147
+ <p>もし、トラックに EOT がなければ、
148
+ トラックの最後にデルタ零の EOT を追加します。</p>
148
149
  </dd>
149
- <dt><a name="label-20" id="label-20">write(io)</a></dt><!-- RDLabel: "write(io)" -->
150
+ <dt><a name="label-21" id="label-21">write(io)</a></dt><!-- RDLabel: "write(io)" -->
150
151
  <dd>
151
- IO $B$K=q$-$^$9!#(B
152
+ IO に書きます。
152
153
  </dd>
153
- <dt><a name="label-21" id="label-21">save(fn)</a></dt><!-- RDLabel: "save(fn)" -->
154
+ <dt><a name="label-22" id="label-22">save(fn)</a></dt><!-- RDLabel: "save(fn)" -->
154
155
  <dd>
155
- $B%U%!%$%k$K=q$-$^$9!#(B
156
+ ファイルに書きます。
156
157
  </dd>
157
158
  </dl>
158
- <h2><a name="label-22" id="label-22">Track</a></h2><!-- RDLabel: "Track" -->
159
- <p>$B%H%i%C%/$rI=8=$9$k%/%i%9$G$9!#%H%i%C%/$O%$%Y%s%H$r$b$A$^$9!#(B</p>
160
- <h3><a name="label-23" id="label-23">$B%9!<%Q!<%/%i%9(B</a></h3><!-- RDLabel: "$B%9!<%Q!<%/%i%9(B" -->
159
+ <h2><a name="label-23" id="label-23">Track</a></h2><!-- RDLabel: "Track" -->
160
+ <p>トラックを表現するクラスです。トラックはイベントをもちます。</p>
161
+ <h3><a name="label-24" id="label-24">スーパークラス</a></h3><!-- RDLabel: "スーパークラス" -->
161
162
  <p>Object</p>
162
- <h3><a name="label-24" id="label-24">$B%$%s%/%k!<%I$7$F$$$k%b%8%e!<%k(B</a></h3><!-- RDLabel: "$B%$%s%/%k!<%I$7$F$$$k%b%8%e!<%k(B" -->
163
+ <h3><a name="label-25" id="label-25">インクルードしているモジュール</a></h3><!-- RDLabel: "インクルードしているモジュール" -->
163
164
  <p>Enumerable</p>
164
- <h3><a name="label-25" id="label-25">$B%/%i%9%a%=%C%I(B</a></h3><!-- RDLabel: "$B%/%i%9%a%=%C%I(B" -->
165
+ <h3><a name="label-26" id="label-26">クラスメソッド</a></h3><!-- RDLabel: "クラスメソッド" -->
165
166
  <dl>
166
- <dt><a name="label-26" id="label-26">new</a></dt><!-- RDLabel: "new" -->
167
+ <dt><a name="label-27" id="label-27">new</a></dt><!-- RDLabel: "new" -->
167
168
  <dd>
168
- $B%H%i%C%/%*%V%8%'%/%H$r:n@.$7$^$9!#(B
169
+ トラックオブジェクトを作成します。
169
170
  </dd>
170
171
  </dl>
171
- <h3><a name="label-27" id="label-27">$B%a%=%C%I(B</a></h3><!-- RDLabel: "$B%a%=%C%I(B" -->
172
- <p>$B$[$\(B Array $B$HF1$8%a%=%C%I$,$D$+$($^$9!#(B
173
- $B$=$l0J30$N$b$N!"Cm0U$,I,MW$J$b$N$r0J2<$G@bL@$7$^$9!#(B</p>
172
+ <h3><a name="label-28" id="label-28">メソッド</a></h3><!-- RDLabel: "メソッド" -->
173
+ <p>ほぼ Array と同じメソッドがつかえます。
174
+ それ以外のもの、注意が必要なものを以下で説明します。</p>
174
175
  <dl>
175
- <dt><a name="label-28" id="label-28">nevts</a></dt><!-- RDLabel: "nevts" -->
176
+ <dt><a name="label-29" id="label-29">nevts</a></dt><!-- RDLabel: "nevts" -->
176
177
  <dd>
177
- nitems $B$HF1$8$G$9!#(B
178
+ nitems と同じです。
178
179
  </dd>
179
- <dt><a name="label-29" id="label-29">self &gt;&gt; ev</a></dt><!-- RDLabel: "self >> ev" -->
180
+ <dt><a name="label-30" id="label-30">self &gt;&gt; ev</a></dt><!-- RDLabel: "self >> ev" -->
180
181
  <dd>
181
- $BMWAG$r=|$-$^$9!#(B
182
+ 要素を除きます。
182
183
  </dd>
183
- <dt><a name="label-30" id="label-30">each{|ev| ...}</a></dt><!-- RDLabel: "each{|ev| ...}" -->
184
+ <dt><a name="label-31" id="label-31">each{|ev| ...}</a></dt><!-- RDLabel: "each{|ev| ...}" -->
184
185
  <dd>
185
- <p>$BMWAG$K$D$$$F7+$jJV$7$^$9!#(B</p>
186
- <p>nil $B$NMWAG$OL5;k$5$l$^$9!#$^$?!"%$%Y%s%H$O%=!<%H$5$l$^$9(B ($B0BDj(B)$B!#(B</p>
186
+ <p>要素について繰り返します。</p>
187
+ <p>nil の要素は無視されます。また、イベントはソートされます (安定)。</p>
187
188
  </dd>
188
189
  </dl>
189
- <h2><a name="label-31" id="label-31">Event</a></h2><!-- RDLabel: "Event" -->
190
- <p>$B%$%Y%s%H$NCj>]%/%i%9$G$9!#(B</p>
191
- <h3><a name="label-32" id="label-32">$B%9!<%Q!<%/%i%9(B</a></h3><!-- RDLabel: "$B%9!<%Q!<%/%i%9(B" -->
190
+ <h2><a name="label-32" id="label-32">Event</a></h2><!-- RDLabel: "Event" -->
191
+ <p>イベントの抽象クラスです。</p>
192
+ <h3><a name="label-33" id="label-33">スーパークラス</a></h3><!-- RDLabel: "スーパークラス" -->
192
193
  <p>Object</p>
193
- <h3><a name="label-33" id="label-33">$B%$%s%/%k!<%I$7$F$$$k%b%8%e!<%k(B</a></h3><!-- RDLabel: "$B%$%s%/%k!<%I$7$F$$$k%b%8%e!<%k(B" -->
194
+ <h3><a name="label-34" id="label-34">インクルードしているモジュール</a></h3><!-- RDLabel: "インクルードしているモジュール" -->
194
195
  <p>Comparable</p>
195
- <h3><a name="label-34" id="label-34">$B%"%/%;%5(B</a></h3><!-- RDLabel: "$B%"%/%;%5(B" -->
196
+ <h3><a name="label-35" id="label-35">アクセサ</a></h3><!-- RDLabel: "アクセサ" -->
196
197
  <dl>
197
- <dt><a name="label-35" id="label-35">offset</a></dt><!-- RDLabel: "offset" -->
198
+ <dt><a name="label-36" id="label-36">offset</a></dt><!-- RDLabel: "offset" -->
198
199
  </dl>
199
200
 
200
201
  </body>