post_tonal 0.1.0.pre → 0.1.1.pre

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  #CHANGELOG
2
2
 
3
+ ####October 21, 2012 [0.1.1.pre]
4
+ -Add homepage information to gem specification
5
+
3
6
  ####October 21, 2012 [0.1.0.pre]
4
7
  -Implement transposition in PitchClassSet
5
8
  -Change normal_form, inversion, and transpose so that they each return a PitchClassSet
data/README.md CHANGED
@@ -3,6 +3,38 @@ PostTonal
3
3
 
4
4
  PostTonal is a Ruby library for analyzing sets of musical pitches. It's based on [pitch class set theory](http://en.wikipedia.org/wiki/Set_theory_\(music\) "Pitch class set theory") pioneered by Allen Forte.
5
5
 
6
- Work In Progress: Detailed usage documentation to come soon.
6
+ #Setup
7
7
 
8
+ -```gem install post_tonal --pre```, OR
9
+ -In your Gemfile: ```gem "post_tonal", "~> 0.1.0.pre"```
8
10
 
11
+ #Usage
12
+
13
+ ```
14
+ require 'post_tonal'
15
+
16
+ set = PostTonal::PitchClassSet.new
17
+
18
+ #Add the set [C, C#, D#, E, G] <-(recognize this collection?)
19
+ set.add_pitch(0) # or set.add_pitch('c')
20
+ set.add_pitch(1) # or set.add_pitch('c#')
21
+ set.add_pitch(3) # or set.add_pitch('d#')
22
+ set.add_pitch(4) # or set.add_pitch('e')
23
+ set.add_pitch(6) # or set.add_pitch('g')
24
+
25
+ #Get the normal form
26
+ puts set.normal_form
27
+
28
+ #Get an inversion of the set
29
+ puts set.inversion
30
+
31
+ #Get a transposition of the set
32
+ puts set.transpose(4)
33
+
34
+ ```
35
+
36
+ All transformations return a ```new``` PitchClassSet object, and are thus non-destructive. Transformations can be chained.
37
+ ```
38
+ set.inversion.transpose(6)
39
+ set.normal_form.inversion
40
+ ```
@@ -1,3 +1,3 @@
1
1
  module PostTonal
2
- VERSION = '0.1.0.pre'
2
+ VERSION = '0.1.1.pre'
3
3
  end
data/post_tonal.gemspec CHANGED
@@ -8,6 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.author = 'Eric Rubio'
10
10
  s.email = 'penmanglewood@fastmail.fm'
11
+ s.homepage = 'https://github.com/penmanglewood/post_tonal'
11
12
  s.summary = %q{Pitch-class set analysis library}
12
13
  s.description = %q{Ruby library for analyzing pitch-class sets according to post-tonal theory}
13
14
  s.files = `git ls-files`.split("\n")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: post_tonal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre
4
+ version: 0.1.1.pre
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -82,7 +82,7 @@ files:
82
82
  - test/unit/pitch_class_interval_test.rb
83
83
  - test/unit/pitch_class_set_test.rb
84
84
  - test/unit/pitch_class_test.rb
85
- homepage:
85
+ homepage: https://github.com/penmanglewood/post_tonal
86
86
  licenses: []
87
87
  post_install_message:
88
88
  rdoc_options: []