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,188 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class MIDI::NoteOffEvent - 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="NoteEvent.html">MIDI::NoteEvent</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::NoteOffEvent">
|
84
|
+
<h1 id="class-MIDI::NoteOffEvent" class="class">
|
85
|
+
class MIDI::NoteOffEvent
|
86
|
+
</h1>
|
87
|
+
|
88
|
+
<section class="description">
|
89
|
+
|
90
|
+
</section>
|
91
|
+
|
92
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
<section class="attribute-method-details" class="method-section">
|
97
|
+
<header>
|
98
|
+
<h3>Attributes</h3>
|
99
|
+
</header>
|
100
|
+
|
101
|
+
<div id="attribute-i-on" class="method-detail">
|
102
|
+
<div class="method-heading attribute-method-heading">
|
103
|
+
<span class="method-name">on</span><span
|
104
|
+
class="attribute-access-type">[RW]</span>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
<div class="method-description">
|
108
|
+
|
109
|
+
</div>
|
110
|
+
</div>
|
111
|
+
</section>
|
112
|
+
|
113
|
+
|
114
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
115
|
+
<header>
|
116
|
+
<h3>Public Class Methods</h3>
|
117
|
+
</header>
|
118
|
+
|
119
|
+
<div id="method-c-new" class="method-detail ">
|
120
|
+
<div class="method-heading">
|
121
|
+
<span class="method-name">new</span><span
|
122
|
+
class="method-args">(channel = 0, note = 64, velocity = 64, delta_time = 0)</span>
|
123
|
+
<span class="method-click-advice">click to toggle source</span>
|
124
|
+
</div>
|
125
|
+
|
126
|
+
<div class="method-description">
|
127
|
+
|
128
|
+
<div class="method-calls-super">
|
129
|
+
Calls superclass method
|
130
|
+
<a href="NoteEvent.html#method-c-new"><code>MIDI::NoteEvent::new</code></a>
|
131
|
+
</div>
|
132
|
+
|
133
|
+
<div class="method-source-code" id="new-source">
|
134
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 152</span>
|
135
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">channel</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">note</span> = <span class="ruby-value">64</span>, <span class="ruby-identifier">velocity</span> = <span class="ruby-value">64</span>, <span class="ruby-identifier">delta_time</span> = <span class="ruby-value">0</span>)
|
136
|
+
<span class="ruby-keyword">super</span>(<span class="ruby-constant">NOTE_OFF</span>, <span class="ruby-identifier">channel</span>, <span class="ruby-identifier">note</span>, <span class="ruby-identifier">velocity</span>, <span class="ruby-identifier">delta_time</span>)
|
137
|
+
<span class="ruby-keyword">end</span></pre>
|
138
|
+
</div>
|
139
|
+
</div>
|
140
|
+
|
141
|
+
|
142
|
+
</div>
|
143
|
+
|
144
|
+
</section>
|
145
|
+
|
146
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
147
|
+
<header>
|
148
|
+
<h3>Public Instance Methods</h3>
|
149
|
+
</header>
|
150
|
+
|
151
|
+
<div id="method-i-to_s" class="method-detail ">
|
152
|
+
<div class="method-heading">
|
153
|
+
<span class="method-name">to_s</span><span
|
154
|
+
class="method-args">()</span>
|
155
|
+
<span class="method-click-advice">click to toggle source</span>
|
156
|
+
</div>
|
157
|
+
|
158
|
+
<div class="method-description">
|
159
|
+
|
160
|
+
<div class="method-calls-super">
|
161
|
+
Calls superclass method
|
162
|
+
<a href="ChannelEvent.html#method-i-to_s"><code>MIDI::ChannelEvent#to_s</code></a>
|
163
|
+
</div>
|
164
|
+
|
165
|
+
<div class="method-source-code" id="to_s-source">
|
166
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 156</span>
|
167
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">to_s</span>
|
168
|
+
<span class="ruby-keyword">super</span> <span class="ruby-operator"><<</span>
|
169
|
+
<span class="ruby-node">"off #{note_to_s} #{number_to_s(@velocity)}"</span>
|
170
|
+
<span class="ruby-keyword">end</span></pre>
|
171
|
+
</div>
|
172
|
+
</div>
|
173
|
+
|
174
|
+
|
175
|
+
</div>
|
176
|
+
|
177
|
+
</section>
|
178
|
+
|
179
|
+
</section>
|
180
|
+
</main>
|
181
|
+
|
182
|
+
|
183
|
+
<footer id="validator-badges" role="contentinfo">
|
184
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
185
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
|
186
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
187
|
+
</footer>
|
188
|
+
|
@@ -0,0 +1,188 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class MIDI::NoteOnEvent - 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="NoteEvent.html">MIDI::NoteEvent</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::NoteOnEvent">
|
84
|
+
<h1 id="class-MIDI::NoteOnEvent" class="class">
|
85
|
+
class MIDI::NoteOnEvent
|
86
|
+
</h1>
|
87
|
+
|
88
|
+
<section class="description">
|
89
|
+
|
90
|
+
</section>
|
91
|
+
|
92
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
<section class="attribute-method-details" class="method-section">
|
97
|
+
<header>
|
98
|
+
<h3>Attributes</h3>
|
99
|
+
</header>
|
100
|
+
|
101
|
+
<div id="attribute-i-off" class="method-detail">
|
102
|
+
<div class="method-heading attribute-method-heading">
|
103
|
+
<span class="method-name">off</span><span
|
104
|
+
class="attribute-access-type">[RW]</span>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
<div class="method-description">
|
108
|
+
|
109
|
+
</div>
|
110
|
+
</div>
|
111
|
+
</section>
|
112
|
+
|
113
|
+
|
114
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
115
|
+
<header>
|
116
|
+
<h3>Public Class Methods</h3>
|
117
|
+
</header>
|
118
|
+
|
119
|
+
<div id="method-c-new" class="method-detail ">
|
120
|
+
<div class="method-heading">
|
121
|
+
<span class="method-name">new</span><span
|
122
|
+
class="method-args">(channel = 0, note = 64, velocity = 64, delta_time = 0)</span>
|
123
|
+
<span class="method-click-advice">click to toggle source</span>
|
124
|
+
</div>
|
125
|
+
|
126
|
+
<div class="method-description">
|
127
|
+
|
128
|
+
<div class="method-calls-super">
|
129
|
+
Calls superclass method
|
130
|
+
<a href="NoteEvent.html#method-c-new"><code>MIDI::NoteEvent::new</code></a>
|
131
|
+
</div>
|
132
|
+
|
133
|
+
<div class="method-source-code" id="new-source">
|
134
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 136</span>
|
135
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">channel</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">note</span> = <span class="ruby-value">64</span>, <span class="ruby-identifier">velocity</span> = <span class="ruby-value">64</span>, <span class="ruby-identifier">delta_time</span> = <span class="ruby-value">0</span>)
|
136
|
+
<span class="ruby-keyword">super</span>(<span class="ruby-constant">NOTE_ON</span>, <span class="ruby-identifier">channel</span>, <span class="ruby-identifier">note</span>, <span class="ruby-identifier">velocity</span>, <span class="ruby-identifier">delta_time</span>)
|
137
|
+
<span class="ruby-keyword">end</span></pre>
|
138
|
+
</div>
|
139
|
+
</div>
|
140
|
+
|
141
|
+
|
142
|
+
</div>
|
143
|
+
|
144
|
+
</section>
|
145
|
+
|
146
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
147
|
+
<header>
|
148
|
+
<h3>Public Instance Methods</h3>
|
149
|
+
</header>
|
150
|
+
|
151
|
+
<div id="method-i-to_s" class="method-detail ">
|
152
|
+
<div class="method-heading">
|
153
|
+
<span class="method-name">to_s</span><span
|
154
|
+
class="method-args">()</span>
|
155
|
+
<span class="method-click-advice">click to toggle source</span>
|
156
|
+
</div>
|
157
|
+
|
158
|
+
<div class="method-description">
|
159
|
+
|
160
|
+
<div class="method-calls-super">
|
161
|
+
Calls superclass method
|
162
|
+
<a href="ChannelEvent.html#method-i-to_s"><code>MIDI::ChannelEvent#to_s</code></a>
|
163
|
+
</div>
|
164
|
+
|
165
|
+
<div class="method-source-code" id="to_s-source">
|
166
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 140</span>
|
167
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">to_s</span>
|
168
|
+
<span class="ruby-keyword">super</span> <span class="ruby-operator"><<</span>
|
169
|
+
<span class="ruby-node">"on #{note_to_s} #{number_to_s(@velocity)}"</span>
|
170
|
+
<span class="ruby-keyword">end</span></pre>
|
171
|
+
</div>
|
172
|
+
</div>
|
173
|
+
|
174
|
+
|
175
|
+
</div>
|
176
|
+
|
177
|
+
</section>
|
178
|
+
|
179
|
+
</section>
|
180
|
+
</main>
|
181
|
+
|
182
|
+
|
183
|
+
<footer id="validator-badges" role="contentinfo">
|
184
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
185
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
|
186
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
187
|
+
</footer>
|
188
|
+
|
@@ -0,0 +1,213 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class MIDI::PitchBend - 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="ChannelEvent.html">MIDI::ChannelEvent</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 ><a href="#method-i-data_as_bytes">#data_as_bytes</a>
|
77
|
+
<li class="calls-super" ><a href="#method-i-to_s">#to_s</a>
|
78
|
+
</ul>
|
79
|
+
</div>
|
80
|
+
|
81
|
+
</div>
|
82
|
+
</nav>
|
83
|
+
|
84
|
+
<main role="main" aria-labelledby="class-MIDI::PitchBend">
|
85
|
+
<h1 id="class-MIDI::PitchBend" class="class">
|
86
|
+
class MIDI::PitchBend
|
87
|
+
</h1>
|
88
|
+
|
89
|
+
<section class="description">
|
90
|
+
|
91
|
+
</section>
|
92
|
+
|
93
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<section class="attribute-method-details" class="method-section">
|
98
|
+
<header>
|
99
|
+
<h3>Attributes</h3>
|
100
|
+
</header>
|
101
|
+
|
102
|
+
<div id="attribute-i-value" class="method-detail">
|
103
|
+
<div class="method-heading attribute-method-heading">
|
104
|
+
<span class="method-name">value</span><span
|
105
|
+
class="attribute-access-type">[RW]</span>
|
106
|
+
</div>
|
107
|
+
|
108
|
+
<div class="method-description">
|
109
|
+
|
110
|
+
</div>
|
111
|
+
</div>
|
112
|
+
</section>
|
113
|
+
|
114
|
+
|
115
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
116
|
+
<header>
|
117
|
+
<h3>Public Class Methods</h3>
|
118
|
+
</header>
|
119
|
+
|
120
|
+
<div id="method-c-new" class="method-detail ">
|
121
|
+
<div class="method-heading">
|
122
|
+
<span class="method-name">new</span><span
|
123
|
+
class="method-args">(channel = 0, value = 0, delta_time = 0)</span>
|
124
|
+
<span class="method-click-advice">click to toggle source</span>
|
125
|
+
</div>
|
126
|
+
|
127
|
+
<div class="method-description">
|
128
|
+
|
129
|
+
<div class="method-calls-super">
|
130
|
+
Calls superclass method
|
131
|
+
<a href="ChannelEvent.html#method-c-new"><code>MIDI::ChannelEvent::new</code></a>
|
132
|
+
</div>
|
133
|
+
|
134
|
+
<div class="method-source-code" id="new-source">
|
135
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 246</span>
|
136
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">channel</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">value</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">delta_time</span> = <span class="ruby-value">0</span>)
|
137
|
+
<span class="ruby-keyword">super</span>(<span class="ruby-constant">PITCH_BEND</span>, <span class="ruby-identifier">channel</span>, <span class="ruby-identifier">delta_time</span>)
|
138
|
+
<span class="ruby-ivar">@value</span> = <span class="ruby-identifier">value</span>
|
139
|
+
<span class="ruby-keyword">end</span></pre>
|
140
|
+
</div>
|
141
|
+
</div>
|
142
|
+
|
143
|
+
|
144
|
+
</div>
|
145
|
+
|
146
|
+
</section>
|
147
|
+
|
148
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
149
|
+
<header>
|
150
|
+
<h3>Public Instance Methods</h3>
|
151
|
+
</header>
|
152
|
+
|
153
|
+
<div id="method-i-data_as_bytes" class="method-detail ">
|
154
|
+
<div class="method-heading">
|
155
|
+
<span class="method-name">data_as_bytes</span><span
|
156
|
+
class="method-args">()</span>
|
157
|
+
<span class="method-click-advice">click to toggle source</span>
|
158
|
+
</div>
|
159
|
+
|
160
|
+
<div class="method-description">
|
161
|
+
|
162
|
+
|
163
|
+
<div class="method-source-code" id="data_as_bytes-source">
|
164
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 251</span>
|
165
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">data_as_bytes</span>
|
166
|
+
<span class="ruby-identifier">data</span> = []
|
167
|
+
<span class="ruby-identifier">data</span> <span class="ruby-operator"><<</span> (<span class="ruby-ivar">@status</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@channel</span>)
|
168
|
+
<span class="ruby-identifier">data</span> <span class="ruby-operator"><<</span> (<span class="ruby-ivar">@value</span> <span class="ruby-operator">&</span> <span class="ruby-value">0x7f</span>) <span class="ruby-comment"># lsb</span>
|
169
|
+
<span class="ruby-identifier">data</span> <span class="ruby-operator"><<</span> ((<span class="ruby-ivar">@value</span> <span class="ruby-operator">>></span> <span class="ruby-value">7</span>) <span class="ruby-operator">&</span> <span class="ruby-value">0x7f</span>) <span class="ruby-comment"># msb</span>
|
170
|
+
<span class="ruby-keyword">end</span></pre>
|
171
|
+
</div>
|
172
|
+
</div>
|
173
|
+
|
174
|
+
|
175
|
+
</div>
|
176
|
+
|
177
|
+
<div id="method-i-to_s" class="method-detail ">
|
178
|
+
<div class="method-heading">
|
179
|
+
<span class="method-name">to_s</span><span
|
180
|
+
class="method-args">()</span>
|
181
|
+
<span class="method-click-advice">click to toggle source</span>
|
182
|
+
</div>
|
183
|
+
|
184
|
+
<div class="method-description">
|
185
|
+
|
186
|
+
<div class="method-calls-super">
|
187
|
+
Calls superclass method
|
188
|
+
<a href="ChannelEvent.html#method-i-to_s"><code>MIDI::ChannelEvent#to_s</code></a>
|
189
|
+
</div>
|
190
|
+
|
191
|
+
<div class="method-source-code" id="to_s-source">
|
192
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 258</span>
|
193
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">to_s</span>
|
194
|
+
<span class="ruby-keyword">super</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"pb #{number_to_s(@value)}"</span>
|
195
|
+
<span class="ruby-keyword">end</span></pre>
|
196
|
+
</div>
|
197
|
+
</div>
|
198
|
+
|
199
|
+
|
200
|
+
</div>
|
201
|
+
|
202
|
+
</section>
|
203
|
+
|
204
|
+
</section>
|
205
|
+
</main>
|
206
|
+
|
207
|
+
|
208
|
+
<footer id="validator-badges" role="contentinfo">
|
209
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
210
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
|
211
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
212
|
+
</footer>
|
213
|
+
|