motion-music 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/lib/motion-music/version.rb +1 -1
  3. data/lib/rb-music/version.rb +1 -1
  4. metadata +2 -70
  5. data/.gitignore +0 -6
  6. data/Gemfile +0 -8
  7. data/Guardfile +0 -6
  8. data/doc/Gemfile.html +0 -111
  9. data/doc/Gemfile_lock.html +0 -168
  10. data/doc/Guardfile.html +0 -111
  11. data/doc/LICENSE.html +0 -124
  12. data/doc/Object.html +0 -116
  13. data/doc/RBMusic.html +0 -164
  14. data/doc/RBMusic/Interval.html +0 -440
  15. data/doc/RBMusic/Note.html +0 -620
  16. data/doc/RBMusic/NoteSet.html +0 -277
  17. data/doc/RBMusic/Scale.html +0 -274
  18. data/doc/README_md.html +0 -163
  19. data/doc/created.rid +0 -8
  20. data/doc/fonts.css +0 -167
  21. data/doc/fonts/Lato-Light.ttf +0 -0
  22. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  23. data/doc/fonts/Lato-Regular.ttf +0 -0
  24. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  25. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  26. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  27. data/doc/images/add.png +0 -0
  28. data/doc/images/arrow_up.png +0 -0
  29. data/doc/images/brick.png +0 -0
  30. data/doc/images/brick_link.png +0 -0
  31. data/doc/images/bug.png +0 -0
  32. data/doc/images/bullet_black.png +0 -0
  33. data/doc/images/bullet_toggle_minus.png +0 -0
  34. data/doc/images/bullet_toggle_plus.png +0 -0
  35. data/doc/images/date.png +0 -0
  36. data/doc/images/delete.png +0 -0
  37. data/doc/images/find.png +0 -0
  38. data/doc/images/loadingAnimation.gif +0 -0
  39. data/doc/images/macFFBgHack.png +0 -0
  40. data/doc/images/package.png +0 -0
  41. data/doc/images/page_green.png +0 -0
  42. data/doc/images/page_white_text.png +0 -0
  43. data/doc/images/page_white_width.png +0 -0
  44. data/doc/images/plugin.png +0 -0
  45. data/doc/images/ruby.png +0 -0
  46. data/doc/images/tag_blue.png +0 -0
  47. data/doc/images/tag_green.png +0 -0
  48. data/doc/images/transparent.png +0 -0
  49. data/doc/images/wrench.png +0 -0
  50. data/doc/images/wrench_orange.png +0 -0
  51. data/doc/images/zoom.png +0 -0
  52. data/doc/index.html +0 -93
  53. data/doc/js/darkfish.js +0 -140
  54. data/doc/js/jquery.js +0 -18
  55. data/doc/js/navigation.js +0 -142
  56. data/doc/js/search.js +0 -109
  57. data/doc/js/search_index.js +0 -1
  58. data/doc/js/searcher.js +0 -228
  59. data/doc/projections_json.html +0 -115
  60. data/doc/rb-music_gemspec.html +0 -132
  61. data/doc/rdoc.css +0 -580
  62. data/doc/table_of_contents.html +0 -192
  63. data/lib/rb-music.rb +0 -8
  64. data/motion-music.gemspec +0 -20
  65. data/projections.json +0 -12
  66. data/rb-music.gemspec +0 -29
  67. data/spec/rb-music/constants_spec.rb +0 -27
  68. data/spec/rb-music/interval_spec.rb +0 -90
  69. data/spec/rb-music/note_set_spec.rb +0 -191
  70. data/spec/rb-music/note_spec.rb +0 -318
  71. data/spec/rb-music/scale_spec.rb +0 -88
  72. data/spec/spec_helper.rb +0 -14
@@ -1,163 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>README - RDoc Documentation</title>
8
-
9
- <link href="./fonts.css" rel="stylesheet">
10
- <link href="./rdoc.css" rel="stylesheet">
11
-
12
- <script type="text/javascript">
13
- var rdoc_rel_prefix = "./";
14
- </script>
15
-
16
- <script src="./js/jquery.js"></script>
17
- <script src="./js/navigation.js"></script>
18
- <script src="./js/search_index.js"></script>
19
- <script src="./js/search.js"></script>
20
- <script src="./js/searcher.js"></script>
21
- <script src="./js/darkfish.js"></script>
22
-
23
-
24
- <body id="top" role="document" class="file">
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
- <div class="nav-section">
58
- <h3>Table of Contents</h3>
59
-
60
- <ul class="link-list" role="directory">
61
- <li><a href="#label-rb-music">rb-music</a>
62
- <li><a href="#label-Installation">Installation</a>
63
- <li><a href="#label-Overview">Overview</a>
64
- <li><a href="#label-Note">Note</a>
65
- <li><a href="#label-Interval">Interval</a>
66
- </ul>
67
- </div>
68
-
69
-
70
- <div id="project-metadata">
71
- <div id="fileindex-section" class="nav-section">
72
- <h3>Pages</h3>
73
-
74
- <ul class="link-list">
75
-
76
- <li><a href="./Gemfile.html">Gemfile</a>
77
-
78
- <li><a href="./Gemfile_lock.html">Gemfile.lock</a>
79
-
80
- <li><a href="./Guardfile.html">Guardfile</a>
81
-
82
- <li><a href="./LICENSE.html">LICENSE</a>
83
-
84
- <li><a href="./README_md.html">README</a>
85
-
86
- <li><a href="./coverage/assets/0_8_0/application_css.html">application.css</a>
87
-
88
- <li><a href="./coverage/assets/0_8_0/application_js.html">application.js</a>
89
-
90
- <li><a href="./coverage/index_html.html">index.html</a>
91
-
92
- <li><a href="./projections_json.html">projections.json</a>
93
-
94
- <li><a href="./rb-music_gemspec.html">rb-music.gemspec</a>
95
-
96
- </ul>
97
- </div>
98
-
99
- </div>
100
- </nav>
101
-
102
- <main role="main" aria-label="Page README.md">
103
-
104
- <h1 id="label-rb-music">rb-music<span><a href="#label-rb-music">&para;</a> <a href="#documentation">&uarr;</a></span></h1>
105
-
106
- <p><strong>rb-music</strong> is a Ruby gem for working with musical notes,
107
- scales and intervals. It is basically a direct port of the wonderful <a
108
- href="https://github.com/gregjopa/music.js">music.js</a> library by Greg
109
- Jopa.</p>
110
-
111
- <h2 id="label-Installation">Installation<span><a href="#label-Installation">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
112
-
113
- <p>In your Gemfile:</p>
114
-
115
- <pre>gem &#39;rb-music&#39;, git: &#39;https://github.com/mwise/rb-music&#39;, branch: &#39;master&#39;</pre>
116
-
117
- <p>In your Ruby code:</p>
118
-
119
- <pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">&#39;rb-music&#39;</span>
120
- </pre>
121
-
122
- <h2 id="label-Overview">Overview<span><a href="#label-Overview">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
123
-
124
- <h3 id="label-Note">Note<span><a href="#label-Note">&para;</a> <a href="#documentation">&uarr;</a></span></h3>
125
-
126
- <p><code>Note.from_latin(name)</code>: Note by latin name and octave</p>
127
-
128
- <pre class="ruby"><span class="ruby-identifier">n</span> = <span class="ruby-constant">Note</span>.<span class="ruby-identifier">from_latin</span>(<span class="ruby-string">&#39;A4&#39;</span>); <span class="ruby-comment"># single note</span>
129
- <span class="ruby-identifier">n</span>.<span class="ruby-identifier">frequency</span> <span class="ruby-comment"># 440</span>
130
- <span class="ruby-identifier">n</span>.<span class="ruby-identifier">latin</span> <span class="ruby-comment"># &quot;A&quot;</span>
131
- <span class="ruby-identifier">n</span>.<span class="ruby-identifier">octave</span> <span class="ruby-comment"># 4 </span>
132
-
133
- <span class="ruby-identifier">n</span> = <span class="ruby-constant">Note</span>.<span class="ruby-identifier">from_latin</span>(<span class="ruby-string">&#39;C4&#39;</span>) <span class="ruby-comment"># base note for scale</span>
134
- <span class="ruby-identifier">n</span>.<span class="ruby-identifier">scale</span>(<span class="ruby-string">&#39;major&#39;</span>) <span class="ruby-comment"># scale = array of notes</span>
135
- </pre>
136
-
137
- <h3 id="label-Interval">Interval<span><a href="#label-Interval">&para;</a> <a href="#documentation">&uarr;</a></span></h3>
138
-
139
- <p><code>Interval.from_name(name)</code>: Interval by name</p>
140
-
141
- <p><code>Interval.from_semitones(num)</code>: Interval by semitones</p>
142
-
143
- <pre class="ruby"><span class="ruby-constant">Interval</span>.<span class="ruby-identifier">from_name</span>(<span class="ruby-string">&#39;fifth&#39;</span>) <span class="ruby-comment"># define by name</span>
144
- <span class="ruby-identifier">whole_step</span> = <span class="ruby-constant">Interval</span>.<span class="ruby-identifier">from_semitones</span>(<span class="ruby-value">2</span>) <span class="ruby-comment"># define by # of semitones</span>
145
-
146
- <span class="ruby-identifier">c</span> = <span class="ruby-constant">Note</span>.<span class="ruby-identifier">from_latin</span>(<span class="ruby-string">&#39;C3&#39;</span>)
147
-
148
- <span class="ruby-comment"># use intervals to transpose notes</span>
149
- <span class="ruby-identifier">d</span> = <span class="ruby-identifier">c</span>.<span class="ruby-identifier">add</span>(<span class="ruby-identifier">whole_step</span>)
150
-
151
- <span class="ruby-comment"># use intervals to define chords</span>
152
- <span class="ruby-identifier">cmaj</span> = <span class="ruby-identifier">c</span>.<span class="ruby-identifier">add</span>([<span class="ruby-string">&#39;unison&#39;</span>,<span class="ruby-string">&#39;major third&#39;</span>,<span class="ruby-string">&#39;fifth&#39;</span>])
153
- </pre>
154
- </main>
155
-
156
-
157
-
158
- <footer id="validator-badges" role="contentinfo">
159
- <p><a href="http://validator.w3.org/check/referer">Validate</a>
160
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
161
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
162
- </footer>
163
-
@@ -1,8 +0,0 @@
1
- Thu, 15 May 2014 01:22:21 -0500
2
- lib/rb-music/constants.rb Thu, 15 May 2014 00:35:06 -0500
3
- lib/rb-music/interval.rb Wed, 14 May 2014 21:17:26 -0500
4
- lib/rb-music/note.rb Wed, 14 May 2014 23:59:18 -0500
5
- lib/rb-music/note_set.rb Wed, 14 May 2014 01:32:51 -0500
6
- lib/rb-music/scale.rb Wed, 14 May 2014 23:27:42 -0500
7
- lib/rb-music/version.rb Wed, 14 May 2014 00:57:46 -0500
8
- lib/rb-music.rb Wed, 14 May 2014 22:08:59 -0500
@@ -1,167 +0,0 @@
1
- /*
2
- * Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/),
3
- * with Reserved Font Name "Source". All Rights Reserved. Source is a
4
- * trademark of Adobe Systems Incorporated in the United States and/or other
5
- * countries.
6
- *
7
- * This Font Software is licensed under the SIL Open Font License, Version
8
- * 1.1.
9
- *
10
- * This license is copied below, and is also available with a FAQ at:
11
- * http://scripts.sil.org/OFL
12
- */
13
-
14
- @font-face {
15
- font-family: "Source Code Pro";
16
- font-style: normal;
17
- font-weight: 400;
18
- src: local("Source Code Pro"),
19
- local("SourceCodePro-Regular"),
20
- url("fonts/SourceCodePro-Regular.ttf") format("truetype");
21
- }
22
-
23
- @font-face {
24
- font-family: "Source Code Pro";
25
- font-style: normal;
26
- font-weight: 700;
27
- src: local("Source Code Pro Bold"),
28
- local("SourceCodePro-Bold"),
29
- url("fonts/SourceCodePro-Bold.ttf") format("truetype");
30
- }
31
-
32
- /*
33
- * Copyright (c) 2010, Łukasz Dziedzic (dziedzic@typoland.com),
34
- * with Reserved Font Name Lato.
35
- *
36
- * This Font Software is licensed under the SIL Open Font License, Version
37
- * 1.1.
38
- *
39
- * This license is copied below, and is also available with a FAQ at:
40
- * http://scripts.sil.org/OFL
41
- */
42
-
43
- @font-face {
44
- font-family: "Lato";
45
- font-style: normal;
46
- font-weight: 300;
47
- src: local("Lato Light"),
48
- local("Lato-Light"),
49
- url("fonts/Lato-Light.ttf") format("truetype");
50
- }
51
-
52
- @font-face {
53
- font-family: "Lato";
54
- font-style: italic;
55
- font-weight: 300;
56
- src: local("Lato Light Italic"),
57
- local("Lato-LightItalic"),
58
- url("fonts/Lato-LightItalic.ttf") format("truetype");
59
- }
60
-
61
- @font-face {
62
- font-family: "Lato";
63
- font-style: normal;
64
- font-weight: 700;
65
- src: local("Lato Regular"),
66
- local("Lato-Regular"),
67
- url("fonts/Lato-Regular.ttf") format("truetype");
68
- }
69
-
70
- @font-face {
71
- font-family: "Lato";
72
- font-style: italic;
73
- font-weight: 700;
74
- src: local("Lato Italic"),
75
- local("Lato-Italic"),
76
- url("fonts/Lato-RegularItalic.ttf") format("truetype");
77
- }
78
-
79
- /*
80
- * -----------------------------------------------------------
81
- * SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
82
- * -----------------------------------------------------------
83
- *
84
- * PREAMBLE
85
- * The goals of the Open Font License (OFL) are to stimulate worldwide
86
- * development of collaborative font projects, to support the font creation
87
- * efforts of academic and linguistic communities, and to provide a free and
88
- * open framework in which fonts may be shared and improved in partnership
89
- * with others.
90
- *
91
- * The OFL allows the licensed fonts to be used, studied, modified and
92
- * redistributed freely as long as they are not sold by themselves. The
93
- * fonts, including any derivative works, can be bundled, embedded,
94
- * redistributed and/or sold with any software provided that any reserved
95
- * names are not used by derivative works. The fonts and derivatives,
96
- * however, cannot be released under any other type of license. The
97
- * requirement for fonts to remain under this license does not apply
98
- * to any document created using the fonts or their derivatives.
99
- *
100
- * DEFINITIONS
101
- * "Font Software" refers to the set of files released by the Copyright
102
- * Holder(s) under this license and clearly marked as such. This may
103
- * include source files, build scripts and documentation.
104
- *
105
- * "Reserved Font Name" refers to any names specified as such after the
106
- * copyright statement(s).
107
- *
108
- * "Original Version" refers to the collection of Font Software components as
109
- * distributed by the Copyright Holder(s).
110
- *
111
- * "Modified Version" refers to any derivative made by adding to, deleting,
112
- * or substituting -- in part or in whole -- any of the components of the
113
- * Original Version, by changing formats or by porting the Font Software to a
114
- * new environment.
115
- *
116
- * "Author" refers to any designer, engineer, programmer, technical
117
- * writer or other person who contributed to the Font Software.
118
- *
119
- * PERMISSION & CONDITIONS
120
- * Permission is hereby granted, free of charge, to any person obtaining
121
- * a copy of the Font Software, to use, study, copy, merge, embed, modify,
122
- * redistribute, and sell modified and unmodified copies of the Font
123
- * Software, subject to the following conditions:
124
- *
125
- * 1) Neither the Font Software nor any of its individual components,
126
- * in Original or Modified Versions, may be sold by itself.
127
- *
128
- * 2) Original or Modified Versions of the Font Software may be bundled,
129
- * redistributed and/or sold with any software, provided that each copy
130
- * contains the above copyright notice and this license. These can be
131
- * included either as stand-alone text files, human-readable headers or
132
- * in the appropriate machine-readable metadata fields within text or
133
- * binary files as long as those fields can be easily viewed by the user.
134
- *
135
- * 3) No Modified Version of the Font Software may use the Reserved Font
136
- * Name(s) unless explicit written permission is granted by the corresponding
137
- * Copyright Holder. This restriction only applies to the primary font name as
138
- * presented to the users.
139
- *
140
- * 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
141
- * Software shall not be used to promote, endorse or advertise any
142
- * Modified Version, except to acknowledge the contribution(s) of the
143
- * Copyright Holder(s) and the Author(s) or with their explicit written
144
- * permission.
145
- *
146
- * 5) The Font Software, modified or unmodified, in part or in whole,
147
- * must be distributed entirely under this license, and must not be
148
- * distributed under any other license. The requirement for fonts to
149
- * remain under this license does not apply to any document created
150
- * using the Font Software.
151
- *
152
- * TERMINATION
153
- * This license becomes null and void if any of the above conditions are
154
- * not met.
155
- *
156
- * DISCLAIMER
157
- * THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
158
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
159
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
160
- * OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
161
- * COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
162
- * INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
163
- * DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
164
- * FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
165
- * OTHER DEALINGS IN THE FONT SOFTWARE.
166
- */
167
-
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,93 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>RDoc Documentation</title>
8
-
9
- <link href="./fonts.css" rel="stylesheet">
10
- <link href="./rdoc.css" rel="stylesheet">
11
-
12
- <script type="text/javascript">
13
- var rdoc_rel_prefix = "./";
14
- </script>
15
-
16
- <script src="./js/jquery.js"></script>
17
- <script src="./js/navigation.js"></script>
18
- <script src="./js/search_index.js"></script>
19
- <script src="./js/search.js"></script>
20
- <script src="./js/searcher.js"></script>
21
- <script src="./js/darkfish.js"></script>
22
-
23
-
24
- <body id="top" role="document" class="file">
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
-
40
- <div id="search-section" role="search" class="project-section initially-hidden">
41
- <form action="#" method="get" accept-charset="utf-8">
42
- <div id="search-field-wrapper">
43
- <input id="search-field" role="combobox" aria-label="Search"
44
- aria-autocomplete="list" aria-controls="search-results"
45
- type="text" name="search" placeholder="Search" spellcheck="false"
46
- title="Type to search, Up and Down to navigate, Enter to load">
47
- </div>
48
-
49
- <ul id="search-results" aria-label="Search Results"
50
- aria-busy="false" aria-expanded="false"
51
- aria-atomic="false" class="initially-hidden"></ul>
52
- </form>
53
- </div>
54
-
55
- </div>
56
-
57
- <div id="project-metadata">
58
-
59
- <div id="classindex-section" class="nav-section">
60
- <h3>Class and Module Index</h3>
61
-
62
- <ul class="link-list">
63
-
64
- <li><a href="./Object.html">Object</a>
65
-
66
- <li><a href="./RBMusic.html">RBMusic</a>
67
-
68
- <li><a href="./RBMusic/Interval.html">RBMusic::Interval</a>
69
-
70
- <li><a href="./RBMusic/Note.html">RBMusic::Note</a>
71
-
72
- <li><a href="./RBMusic/NoteSet.html">RBMusic::NoteSet</a>
73
-
74
- <li><a href="./RBMusic/Scale.html">RBMusic::Scale</a>
75
-
76
- </ul>
77
- </div>
78
-
79
- </div>
80
- </nav>
81
-
82
- <main role="main">
83
- <p>This is the API documentation for RDoc Documentation.
84
- </main>
85
-
86
-
87
-
88
- <footer id="validator-badges" role="contentinfo">
89
- <p><a href="http://validator.w3.org/check/referer">Validate</a>
90
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
91
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
92
- </footer>
93
-