midilib 3.0.1 → 3.1.0
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.
- checksums.yaml +4 -4
- data/Credits +5 -0
- data/html/MIDI/ActiveSense.html +171 -0
- data/html/MIDI/ChannelEvent.html +190 -0
- data/html/MIDI/ChannelPressure.html +212 -0
- data/html/MIDI/Clock.html +171 -0
- data/html/MIDI/Continue.html +171 -0
- data/html/MIDI/Controller.html +224 -0
- data/html/MIDI/Event.html +349 -0
- data/html/MIDI/IO/MIDIFile.html +1392 -0
- data/html/MIDI/IO/SeqReader.html +642 -0
- data/html/MIDI/IO/SeqWriter.html +442 -0
- data/html/MIDI/IO.html +91 -0
- data/html/MIDI/KeySig.html +292 -0
- data/html/MIDI/Marker.html +138 -0
- data/html/MIDI/Measure.html +260 -0
- data/html/MIDI/Measures.html +222 -0
- data/html/MIDI/MetaEvent.html +353 -0
- data/html/MIDI/NoteEvent.html +255 -0
- data/html/MIDI/NoteOff.html +188 -0
- data/html/MIDI/NoteOn.html +188 -0
- data/html/MIDI/PitchBend.html +213 -0
- data/html/MIDI/PolyPressure.html +216 -0
- data/html/MIDI/ProgramChange.html +212 -0
- data/html/MIDI/Realtime.html +194 -0
- data/html/MIDI/Sequence.html +641 -0
- data/html/MIDI/SongPointer.html +213 -0
- data/html/MIDI/SongSelect.html +212 -0
- data/html/MIDI/Start.html +171 -0
- data/html/MIDI/Stop.html +171 -0
- data/html/MIDI/SystemCommon.html +138 -0
- data/html/MIDI/SystemExclusive.html +215 -0
- data/html/MIDI/SystemReset.html +171 -0
- data/html/MIDI/Tempo.html +292 -0
- data/html/MIDI/TimeSig.html +286 -0
- data/html/MIDI/Track.html +489 -0
- data/html/MIDI/TuneRequest.html +194 -0
- data/html/MIDI/Utils.html +178 -0
- data/html/MIDI.html +281 -0
- data/html/Object.html +197 -0
- data/html/README_rdoc.html +545 -0
- data/html/TODO_rdoc.html +123 -0
- data/html/created.rid +15 -0
- data/html/css/fonts.css +167 -0
- data/html/css/rdoc.css +639 -0
- data/html/fonts/Lato-Light.ttf +0 -0
- data/html/fonts/Lato-LightItalic.ttf +0 -0
- data/html/fonts/Lato-Regular.ttf +0 -0
- data/html/fonts/Lato-RegularItalic.ttf +0 -0
- data/html/fonts/SourceCodePro-Bold.ttf +0 -0
- data/html/fonts/SourceCodePro-Regular.ttf +0 -0
- data/html/images/add.png +0 -0
- data/html/images/arrow_up.png +0 -0
- data/html/images/brick.png +0 -0
- data/html/images/brick_link.png +0 -0
- data/html/images/bug.png +0 -0
- data/html/images/bullet_black.png +0 -0
- data/html/images/bullet_toggle_minus.png +0 -0
- data/html/images/bullet_toggle_plus.png +0 -0
- data/html/images/date.png +0 -0
- data/html/images/delete.png +0 -0
- data/html/images/find.png +0 -0
- data/html/images/loadingAnimation.gif +0 -0
- data/html/images/macFFBgHack.png +0 -0
- data/html/images/package.png +0 -0
- data/html/images/page_green.png +0 -0
- data/html/images/page_white_text.png +0 -0
- data/html/images/page_white_width.png +0 -0
- data/html/images/plugin.png +0 -0
- data/html/images/ruby.png +0 -0
- data/html/images/tag_blue.png +0 -0
- data/html/images/tag_green.png +0 -0
- data/html/images/transparent.png +0 -0
- data/html/images/wrench.png +0 -0
- data/html/images/wrench_orange.png +0 -0
- data/html/images/zoom.png +0 -0
- data/html/index.html +534 -0
- data/html/js/darkfish.js +84 -0
- data/html/js/navigation.js +105 -0
- data/html/js/navigation.js.gz +0 -0
- data/html/js/search.js +110 -0
- data/html/js/search_index.js +1 -0
- data/html/js/search_index.js.gz +0 -0
- data/html/js/searcher.js +229 -0
- data/html/js/searcher.js.gz +0 -0
- data/html/table_of_contents.html +1258 -0
- data/lib/midilib/info.rb +2 -2
- data/lib/midilib/io/seqreader.rb +18 -5
- data/test/test_io.rb +18 -5
- metadata +85 -1
@@ -0,0 +1,171 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class MIDI::SystemReset - midilib</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "../";
|
11
|
+
var index_rel_prefix = "../";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="../js/navigation.js" defer></script>
|
15
|
+
<script src="../js/search.js" defer></script>
|
16
|
+
<script src="../js/search_index.js" defer></script>
|
17
|
+
<script src="../js/searcher.js" defer></script>
|
18
|
+
<script src="../js/darkfish.js" defer></script>
|
19
|
+
|
20
|
+
<link href="../css/fonts.css" rel="stylesheet">
|
21
|
+
<link href="../css/rdoc.css" rel="stylesheet">
|
22
|
+
|
23
|
+
|
24
|
+
<body id="top" role="document" class="class">
|
25
|
+
<nav role="navigation">
|
26
|
+
<div id="project-navigation">
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
+
<h2>
|
29
|
+
<a href="../index.html" rel="home">Home</a>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<div id="table-of-contents-navigation">
|
33
|
+
<a href="../table_of_contents.html#pages">Pages</a>
|
34
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
35
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
41
|
+
<div id="search-field-wrapper">
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
44
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
49
|
+
aria-busy="false" aria-expanded="false"
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
+
</form>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
<div id="class-metadata">
|
59
|
+
|
60
|
+
|
61
|
+
<div id="parent-class-section" class="nav-section">
|
62
|
+
<h3>Parent</h3>
|
63
|
+
|
64
|
+
<p class="link"><a href="Realtime.html">MIDI::Realtime</a>
|
65
|
+
</div>
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
<!-- Method Quickref -->
|
71
|
+
<div id="method-list-section" class="nav-section">
|
72
|
+
<h3>Methods</h3>
|
73
|
+
|
74
|
+
<ul class="link-list" role="directory">
|
75
|
+
<li class="calls-super" ><a href="#method-c-new">::new</a>
|
76
|
+
<li class="calls-super" ><a href="#method-i-to_s">#to_s</a>
|
77
|
+
</ul>
|
78
|
+
</div>
|
79
|
+
|
80
|
+
</div>
|
81
|
+
</nav>
|
82
|
+
|
83
|
+
<main role="main" aria-labelledby="class-MIDI::SystemReset">
|
84
|
+
<h1 id="class-MIDI::SystemReset" class="class">
|
85
|
+
class MIDI::SystemReset
|
86
|
+
</h1>
|
87
|
+
|
88
|
+
<section class="description">
|
89
|
+
|
90
|
+
</section>
|
91
|
+
|
92
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
99
|
+
<header>
|
100
|
+
<h3>Public Class Methods</h3>
|
101
|
+
</header>
|
102
|
+
|
103
|
+
<div id="method-c-new" class="method-detail ">
|
104
|
+
<div class="method-heading">
|
105
|
+
<span class="method-name">new</span><span
|
106
|
+
class="method-args">(delta_time = 0)</span>
|
107
|
+
<span class="method-click-advice">click to toggle source</span>
|
108
|
+
</div>
|
109
|
+
|
110
|
+
<div class="method-description">
|
111
|
+
|
112
|
+
<div class="method-calls-super">
|
113
|
+
Calls superclass method
|
114
|
+
<a href="Realtime.html#method-c-new"><code>MIDI::Realtime::new</code></a>
|
115
|
+
</div>
|
116
|
+
|
117
|
+
<div class="method-source-code" id="new-source">
|
118
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 411</span>
|
119
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">delta_time</span> = <span class="ruby-value">0</span>)
|
120
|
+
<span class="ruby-keyword">super</span>(<span class="ruby-constant">SYSTEM_RESET</span>, <span class="ruby-identifier">delta_time</span>)
|
121
|
+
<span class="ruby-keyword">end</span></pre>
|
122
|
+
</div>
|
123
|
+
</div>
|
124
|
+
|
125
|
+
|
126
|
+
</div>
|
127
|
+
|
128
|
+
</section>
|
129
|
+
|
130
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
131
|
+
<header>
|
132
|
+
<h3>Public Instance Methods</h3>
|
133
|
+
</header>
|
134
|
+
|
135
|
+
<div id="method-i-to_s" class="method-detail ">
|
136
|
+
<div class="method-heading">
|
137
|
+
<span class="method-name">to_s</span><span
|
138
|
+
class="method-args">()</span>
|
139
|
+
<span class="method-click-advice">click to toggle source</span>
|
140
|
+
</div>
|
141
|
+
|
142
|
+
<div class="method-description">
|
143
|
+
|
144
|
+
<div class="method-calls-super">
|
145
|
+
Calls superclass method
|
146
|
+
<a href="Realtime.html#method-i-to_s"><code>MIDI::Realtime#to_s</code></a>
|
147
|
+
</div>
|
148
|
+
|
149
|
+
<div class="method-source-code" id="to_s-source">
|
150
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 415</span>
|
151
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">to_s</span>
|
152
|
+
<span class="ruby-keyword">super</span> <span class="ruby-operator"><<</span> <span class="ruby-string">'sys reset'</span>
|
153
|
+
<span class="ruby-keyword">end</span></pre>
|
154
|
+
</div>
|
155
|
+
</div>
|
156
|
+
|
157
|
+
|
158
|
+
</div>
|
159
|
+
|
160
|
+
</section>
|
161
|
+
|
162
|
+
</section>
|
163
|
+
</main>
|
164
|
+
|
165
|
+
|
166
|
+
<footer id="validator-badges" role="contentinfo">
|
167
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
168
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
|
169
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
170
|
+
</footer>
|
171
|
+
|
@@ -0,0 +1,292 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class MIDI::Tempo - midilib</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "../";
|
11
|
+
var index_rel_prefix = "../";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="../js/navigation.js" defer></script>
|
15
|
+
<script src="../js/search.js" defer></script>
|
16
|
+
<script src="../js/search_index.js" defer></script>
|
17
|
+
<script src="../js/searcher.js" defer></script>
|
18
|
+
<script src="../js/darkfish.js" defer></script>
|
19
|
+
|
20
|
+
<link href="../css/fonts.css" rel="stylesheet">
|
21
|
+
<link href="../css/rdoc.css" rel="stylesheet">
|
22
|
+
|
23
|
+
|
24
|
+
<body id="top" role="document" class="class">
|
25
|
+
<nav role="navigation">
|
26
|
+
<div id="project-navigation">
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
+
<h2>
|
29
|
+
<a href="../index.html" rel="home">Home</a>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<div id="table-of-contents-navigation">
|
33
|
+
<a href="../table_of_contents.html#pages">Pages</a>
|
34
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
35
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
41
|
+
<div id="search-field-wrapper">
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
44
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
49
|
+
aria-busy="false" aria-expanded="false"
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
+
</form>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
<div id="class-metadata">
|
59
|
+
|
60
|
+
|
61
|
+
<div id="parent-class-section" class="nav-section">
|
62
|
+
<h3>Parent</h3>
|
63
|
+
|
64
|
+
<p class="link"><a href="MetaEvent.html">MIDI::MetaEvent</a>
|
65
|
+
</div>
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
<!-- Method Quickref -->
|
71
|
+
<div id="method-list-section" class="nav-section">
|
72
|
+
<h3>Methods</h3>
|
73
|
+
|
74
|
+
<ul class="link-list" role="directory">
|
75
|
+
<li ><a href="#method-c-bpm_to_mpq">::bpm_to_mpq</a>
|
76
|
+
<li ><a href="#method-c-mpq_to_bpm">::mpq_to_bpm</a>
|
77
|
+
<li class="calls-super" ><a href="#method-c-new">::new</a>
|
78
|
+
<li ><a href="#method-i-data_as_bytes">#data_as_bytes</a>
|
79
|
+
<li ><a href="#method-i-tempo">#tempo</a>
|
80
|
+
<li ><a href="#method-i-tempo-3D">#tempo=</a>
|
81
|
+
<li ><a href="#method-i-to_s">#to_s</a>
|
82
|
+
</ul>
|
83
|
+
</div>
|
84
|
+
|
85
|
+
</div>
|
86
|
+
</nav>
|
87
|
+
|
88
|
+
<main role="main" aria-labelledby="class-MIDI::Tempo">
|
89
|
+
<h1 id="class-MIDI::Tempo" class="class">
|
90
|
+
class MIDI::Tempo
|
91
|
+
</h1>
|
92
|
+
|
93
|
+
<section class="description">
|
94
|
+
|
95
|
+
</section>
|
96
|
+
|
97
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
98
|
+
|
99
|
+
|
100
|
+
<section class="constants-list">
|
101
|
+
<header>
|
102
|
+
<h3>Constants</h3>
|
103
|
+
</header>
|
104
|
+
<dl>
|
105
|
+
<dt id="MICROSECS_PER_MINUTE">MICROSECS_PER_MINUTE
|
106
|
+
<dd>
|
107
|
+
</dl>
|
108
|
+
</section>
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
113
|
+
<header>
|
114
|
+
<h3>Public Class Methods</h3>
|
115
|
+
</header>
|
116
|
+
|
117
|
+
<div id="method-c-bpm_to_mpq" class="method-detail ">
|
118
|
+
<div class="method-heading">
|
119
|
+
<span class="method-name">bpm_to_mpq</span><span
|
120
|
+
class="method-args">(bpm)</span>
|
121
|
+
<span class="method-click-advice">click to toggle source</span>
|
122
|
+
</div>
|
123
|
+
|
124
|
+
<div class="method-description">
|
125
|
+
<p>Translates beats per minute to microseconds per quarter note (beat).</p>
|
126
|
+
|
127
|
+
<div class="method-source-code" id="bpm_to_mpq-source">
|
128
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 509</span>
|
129
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">bpm_to_mpq</span>(<span class="ruby-identifier">bpm</span>)
|
130
|
+
<span class="ruby-constant">MICROSECS_PER_MINUTE</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">bpm</span>
|
131
|
+
<span class="ruby-keyword">end</span></pre>
|
132
|
+
</div>
|
133
|
+
</div>
|
134
|
+
|
135
|
+
|
136
|
+
</div>
|
137
|
+
|
138
|
+
<div id="method-c-mpq_to_bpm" class="method-detail ">
|
139
|
+
<div class="method-heading">
|
140
|
+
<span class="method-name">mpq_to_bpm</span><span
|
141
|
+
class="method-args">(mpq)</span>
|
142
|
+
<span class="method-click-advice">click to toggle source</span>
|
143
|
+
</div>
|
144
|
+
|
145
|
+
<div class="method-description">
|
146
|
+
<p>Translates microseconds per quarter note (beat) to beats per minute.</p>
|
147
|
+
|
148
|
+
<div class="method-source-code" id="mpq_to_bpm-source">
|
149
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 514</span>
|
150
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">mpq_to_bpm</span>(<span class="ruby-identifier">mpq</span>)
|
151
|
+
<span class="ruby-constant">MICROSECS_PER_MINUTE</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">mpq</span>.<span class="ruby-identifier">to_f</span>
|
152
|
+
<span class="ruby-keyword">end</span></pre>
|
153
|
+
</div>
|
154
|
+
</div>
|
155
|
+
|
156
|
+
|
157
|
+
</div>
|
158
|
+
|
159
|
+
<div id="method-c-new" class="method-detail ">
|
160
|
+
<div class="method-heading">
|
161
|
+
<span class="method-name">new</span><span
|
162
|
+
class="method-args">(msecs_per_qnote, delta_time = 0)</span>
|
163
|
+
<span class="method-click-advice">click to toggle source</span>
|
164
|
+
</div>
|
165
|
+
|
166
|
+
<div class="method-description">
|
167
|
+
|
168
|
+
<div class="method-calls-super">
|
169
|
+
Calls superclass method
|
170
|
+
<a href="MetaEvent.html#method-c-new"><code>MIDI::MetaEvent::new</code></a>
|
171
|
+
</div>
|
172
|
+
|
173
|
+
<div class="method-source-code" id="new-source">
|
174
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 518</span>
|
175
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">msecs_per_qnote</span>, <span class="ruby-identifier">delta_time</span> = <span class="ruby-value">0</span>)
|
176
|
+
<span class="ruby-keyword">super</span>(<span class="ruby-constant">META_SET_TEMPO</span>, <span class="ruby-identifier">msecs_per_qnote</span>, <span class="ruby-identifier">delta_time</span>)
|
177
|
+
<span class="ruby-keyword">end</span></pre>
|
178
|
+
</div>
|
179
|
+
</div>
|
180
|
+
|
181
|
+
|
182
|
+
</div>
|
183
|
+
|
184
|
+
</section>
|
185
|
+
|
186
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
187
|
+
<header>
|
188
|
+
<h3>Public Instance Methods</h3>
|
189
|
+
</header>
|
190
|
+
|
191
|
+
<div id="method-i-data_as_bytes" class="method-detail ">
|
192
|
+
<div class="method-heading">
|
193
|
+
<span class="method-name">data_as_bytes</span><span
|
194
|
+
class="method-args">()</span>
|
195
|
+
<span class="method-click-advice">click to toggle source</span>
|
196
|
+
</div>
|
197
|
+
|
198
|
+
<div class="method-description">
|
199
|
+
|
200
|
+
|
201
|
+
<div class="method-source-code" id="data_as_bytes-source">
|
202
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 530</span>
|
203
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">data_as_bytes</span>
|
204
|
+
<span class="ruby-identifier">data</span> = []
|
205
|
+
<span class="ruby-identifier">data</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@status</span>
|
206
|
+
<span class="ruby-identifier">data</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@meta_type</span>
|
207
|
+
<span class="ruby-identifier">data</span> <span class="ruby-operator"><<</span> <span class="ruby-value">3</span>
|
208
|
+
<span class="ruby-identifier">data</span> <span class="ruby-operator"><<</span> ((<span class="ruby-ivar">@data</span> <span class="ruby-operator">>></span> <span class="ruby-value">16</span>) <span class="ruby-operator">&</span> <span class="ruby-value">0xff</span>)
|
209
|
+
<span class="ruby-identifier">data</span> <span class="ruby-operator"><<</span> ((<span class="ruby-ivar">@data</span> <span class="ruby-operator">>></span> <span class="ruby-value">8</span>) <span class="ruby-operator">&</span> <span class="ruby-value">0xff</span>)
|
210
|
+
<span class="ruby-identifier">data</span> <span class="ruby-operator"><<</span> (<span class="ruby-ivar">@data</span> <span class="ruby-operator">&</span> <span class="ruby-value">0xff</span>)
|
211
|
+
<span class="ruby-keyword">end</span></pre>
|
212
|
+
</div>
|
213
|
+
</div>
|
214
|
+
|
215
|
+
|
216
|
+
</div>
|
217
|
+
|
218
|
+
<div id="method-i-tempo" class="method-detail ">
|
219
|
+
<div class="method-heading">
|
220
|
+
<span class="method-name">tempo</span><span
|
221
|
+
class="method-args">()</span>
|
222
|
+
<span class="method-click-advice">click to toggle source</span>
|
223
|
+
</div>
|
224
|
+
|
225
|
+
<div class="method-description">
|
226
|
+
|
227
|
+
|
228
|
+
<div class="method-source-code" id="tempo-source">
|
229
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 522</span>
|
230
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">tempo</span>
|
231
|
+
<span class="ruby-ivar">@data</span>
|
232
|
+
<span class="ruby-keyword">end</span></pre>
|
233
|
+
</div>
|
234
|
+
</div>
|
235
|
+
|
236
|
+
|
237
|
+
</div>
|
238
|
+
|
239
|
+
<div id="method-i-tempo-3D" class="method-detail ">
|
240
|
+
<div class="method-heading">
|
241
|
+
<span class="method-name">tempo=</span><span
|
242
|
+
class="method-args">(val)</span>
|
243
|
+
<span class="method-click-advice">click to toggle source</span>
|
244
|
+
</div>
|
245
|
+
|
246
|
+
<div class="method-description">
|
247
|
+
|
248
|
+
|
249
|
+
<div class="method-source-code" id="tempo-3D-source">
|
250
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 526</span>
|
251
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">tempo=</span>(<span class="ruby-identifier">val</span>)
|
252
|
+
<span class="ruby-ivar">@data</span> = <span class="ruby-identifier">val</span>
|
253
|
+
<span class="ruby-keyword">end</span></pre>
|
254
|
+
</div>
|
255
|
+
</div>
|
256
|
+
|
257
|
+
|
258
|
+
</div>
|
259
|
+
|
260
|
+
<div id="method-i-to_s" class="method-detail ">
|
261
|
+
<div class="method-heading">
|
262
|
+
<span class="method-name">to_s</span><span
|
263
|
+
class="method-args">()</span>
|
264
|
+
<span class="method-click-advice">click to toggle source</span>
|
265
|
+
</div>
|
266
|
+
|
267
|
+
<div class="method-description">
|
268
|
+
|
269
|
+
|
270
|
+
<div class="method-source-code" id="to_s-source">
|
271
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 540</span>
|
272
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">to_s</span>
|
273
|
+
<span class="ruby-node">"tempo #{@data} msecs per qnote (#{Tempo.mpq_to_bpm(@data)} bpm)"</span>
|
274
|
+
<span class="ruby-keyword">end</span></pre>
|
275
|
+
</div>
|
276
|
+
</div>
|
277
|
+
|
278
|
+
|
279
|
+
</div>
|
280
|
+
|
281
|
+
</section>
|
282
|
+
|
283
|
+
</section>
|
284
|
+
</main>
|
285
|
+
|
286
|
+
|
287
|
+
<footer id="validator-badges" role="contentinfo">
|
288
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
289
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
|
290
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
291
|
+
</footer>
|
292
|
+
|