gitara 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -3,6 +3,7 @@
3
3
  git.bundle
4
4
  .geanyprj
5
5
  .rvmrc
6
+ .switch_file
6
7
  .yardoc
7
8
  Gemfile.lock
8
9
  doc/*
@@ -255,6 +255,7 @@ A gitara file can have the following properties:
255
255
  midi_instrument "acoustic guitar (nylon)"
256
256
  string_tunings "#guitar-tuning"
257
257
  tempo "4 = 75"
258
+ time "4/4"
258
259
  transposition "d"
259
260
  end
260
261
 
@@ -265,6 +266,7 @@ A gitara file can have the following properties:
265
266
  * midi_instrument - the type of instrument played in the midi export of the tab. By default, "acoustic guitar (nylon)".
266
267
  * [string_tunings](http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Common-notation-for-fretted-strings#Custom-tablatures)
267
268
  * [tempo](http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Writing-parts#Metronome-marks)
269
+ * [time](http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Displaying-rhythms#Time-signature) - default is 4/4
268
270
  * title - title of the song
269
271
  * transposition - adjusts the pitch of the instrument. The default transposition is "c". If you set it to "d", then you have to play the tab two frets higher on the guitar (capo on second fret).
270
272
 
@@ -0,0 +1,114 @@
1
+ \version "2.12.3"
2
+ \include "english.ly"
3
+
4
+ \paper {
5
+ indent = #0
6
+ }
7
+
8
+ \header {
9
+ title = ""
10
+ composer = ""
11
+ arranger = ""
12
+ instrument = ""
13
+ }
14
+
15
+ %-----------------------------------------------------------------------
16
+ % Chord Sets
17
+ %-----------------------------------------------------------------------
18
+ % Bars
19
+
20
+ vOneBarCChordBarOne = { c4 e4 }
21
+ cBarCChordBarOne = { }
22
+ sBarCChordBarOne = { r4^"C chord" r4 }
23
+
24
+ vOneBarCChordBarTwo = { g2 }
25
+ cBarCChordBarTwo = { }
26
+ sBarCChordBarTwo = { r4 r4 }
27
+ %-----------------------------------------------------------------------
28
+ % Lines
29
+ %-----------------------------------------------------------------------
30
+ % Stanzas
31
+
32
+ vOneStanzaCChord = { \vOneBarCChordBarOne \vOneBarCChordBarTwo }
33
+ cStanzaCChord = { \cBarCChordBarOne \cBarCChordBarTwo }
34
+ sStanzaCChord = { \sBarCChordBarOne \sBarCChordBarTwo }
35
+ %-----------------------------------------------------------------------
36
+ % Scores
37
+ %-----------------------------------------------------------------------
38
+ % Voices
39
+
40
+ vOne = {
41
+ \vOneStanzaCChord
42
+ }
43
+ %-----------------------------------------------------------------------
44
+ % Stanza Headings
45
+
46
+ stanzaHeadings = { \sStanzaCChord }
47
+
48
+ %-----------------------------------------------------------------------
49
+ % Chord Headings
50
+
51
+ chordHeadings = { \cStanzaCChord }
52
+
53
+ %-----------------------------------------------------------------------
54
+
55
+ \score {
56
+ \new StaffGroup <<
57
+ \new Staff <<
58
+ \time 2/4
59
+ \clef "treble_8"
60
+
61
+ \new Voice \with { \remove Rest_engraver } {
62
+ \stanzaHeadings
63
+ }
64
+
65
+ \new Voice {
66
+ \voiceOne
67
+ \vOne
68
+ }
69
+ >>
70
+
71
+ \new TabStaff <<
72
+ \new TabVoice {
73
+ \slurUp
74
+ \vOne
75
+ }
76
+ \new TabVoice {
77
+ \chordHeadings
78
+ }
79
+ >>
80
+ >>
81
+
82
+ \layout {
83
+ \context { \Staff
84
+ \override TimeSignature #'style = #'numbered
85
+ \override StringNumber #'transparent = ##t
86
+ }
87
+ \context { \TabStaff
88
+ \override TimeSignature #'style = #'numbered
89
+ }
90
+ \context { \Voice
91
+ \remove Slur_engraver
92
+ }
93
+ \context { \TabVoice
94
+ \remove Dots_engraver
95
+ \remove Stem_engraver
96
+ \remove Rest_engraver
97
+ }
98
+ }
99
+ }
100
+
101
+ % showLastLength = R1*4
102
+ \score {
103
+ \new Staff \with {midiInstrument = #"acoustic guitar (nylon)"} <<
104
+ \clef "treble_8"
105
+
106
+ \new Voice {
107
+ \unfoldRepeats {
108
+ \vOne
109
+ }
110
+ }
111
+ >>
112
+
113
+ \midi {}
114
+ }
@@ -0,0 +1,13 @@
1
+ Gitara.define do
2
+ time '2/4'
3
+
4
+ stanza "C chord" do
5
+ bar do
6
+ notes "c4 e4"
7
+ end
8
+
9
+ bar do
10
+ notes "g2"
11
+ end
12
+ end
13
+ end
@@ -26,6 +26,7 @@ require "gitara/node/repeat"
26
26
  require "gitara/node/score"
27
27
  require "gitara/node/stanza"
28
28
  require "gitara/node/tab"
29
+ require "gitara/time_signature"
29
30
  require "gitara/utilities"
30
31
  require "gitara/version"
31
32
  require "gitara/voice"
@@ -18,6 +18,7 @@ module Gitara
18
18
  can_add_property :midi_instrument
19
19
  can_add_property :string_tunings
20
20
  can_add_property :tempo
21
+ can_add_property :time
21
22
  can_add_property :title
22
23
  can_add_property :transposition
23
24
 
@@ -5,10 +5,6 @@ module Gitara
5
5
  # @attribute $1
6
6
  has_value :specified_duration
7
7
 
8
- def duration
9
- specified_duration || 1
10
- end
11
-
12
8
  def first_bar_of_stanza?
13
9
  stanza && stanza.descendants(Node::Bar)[0] == self
14
10
  end
@@ -26,7 +22,24 @@ module Gitara
26
22
  end
27
23
 
28
24
  def stanza_heading
29
- first_bar_of_stanza? ? %Q|r#{duration}^"#{ancestor(Node::Stanza).name}"| : "r#{duration}"
25
+ first_bar_of_stanza? ? stanza_heading_for_first_bar : stanza_heading_for_succeeding_bars
26
+ end
27
+
28
+ def stanza_heading_for_first_bar
29
+ if specified_duration
30
+ %Q|r#{specified_duration}^"#{ancestor(Node::Stanza).name}"|
31
+ else
32
+ ts = ancestor(Node::Tab).time_signature
33
+ if ts.generates_whole_note_bars?
34
+ %Q|#{ts.rest_bar_value}^"#{ancestor(Node::Stanza).name}"|
35
+ else
36
+ %Q|r#{ts.beat_unit}^"#{ancestor(Node::Stanza).name}" | + ("r#{ts.beat_unit} " * (ts.beats_per_bar - 1)).strip
37
+ end
38
+ end
39
+ end
40
+
41
+ def stanza_heading_for_succeeding_bars
42
+ specified_duration ? "r#{specified_duration}" : ancestor(Node::Tab).time_signature.rest_bar_value
30
43
  end
31
44
  end
32
45
  end
@@ -10,6 +10,7 @@ module Gitara
10
10
  has_value :midi_instrument, :default => "acoustic guitar (nylon)"
11
11
  has_value :string_tunings
12
12
  has_value :tempo
13
+ has_value :time
13
14
  has_value :title
14
15
  has_value :transposition
15
16
 
@@ -21,6 +22,10 @@ module Gitara
21
22
  definition_children.last
22
23
  end
23
24
 
25
+ def time_signature
26
+ @time_signature ||= TimeSignature.new(:value => time || '4/4')
27
+ end
28
+
24
29
  def voices
25
30
  @voices ||= Array.new(max_number_of_voices){|i| Voice.new(:id => i + 1, :parent => self)}
26
31
  end
@@ -69,6 +69,7 @@ chordHeadings = { <%= playable_child.chorded.call_name %> }
69
69
  \score {
70
70
  \new StaffGroup <<
71
71
  \new Staff <<
72
+ <%= Gitara.render('tab_time', self) %>
72
73
  <%= Gitara.render('tab_tempo', self) %>
73
74
  \clef "treble_8"
74
75
 
@@ -0,0 +1,3 @@
1
+ <% if time %>
2
+ \time <%= self.time %>
3
+ <% end %>
@@ -0,0 +1,21 @@
1
+ module Gitara
2
+ class TimeSignature < Valuable
3
+ has_value :value
4
+
5
+ def beats_per_bar
6
+ value.split('/')[0].to_i
7
+ end
8
+
9
+ def beat_unit
10
+ value.split('/')[1].to_i
11
+ end
12
+
13
+ def generates_whole_note_bars?
14
+ beat_unit == beats_per_bar
15
+ end
16
+
17
+ def rest_bar_value
18
+ generates_whole_note_bars? ? "r1" : ("r#{beat_unit} " * beats_per_bar).strip
19
+ end
20
+ end
21
+ end
@@ -1,3 +1,3 @@
1
1
  module Gitara
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  end
@@ -49,6 +49,9 @@ FactoryGirl.define do
49
49
  children [FactoryGirl.build(:score)]
50
50
  end
51
51
 
52
+ factory :time_signature, :class => TimeSignature do
53
+ end
54
+
52
55
  factory :voice, :class => Voice do
53
56
  end
54
57
 
@@ -31,5 +31,11 @@ describe Gitara::App do
31
31
  app_test.run
32
32
  app_test.actual.should == app_test.expected
33
33
  end
34
+
35
+ it "can convert a tab with a specified time to lilypond" do
36
+ app_test = AppTester.new(:name => 'tab-with-time-signature')
37
+ app_test.run
38
+ app_test.actual.should == app_test.expected
39
+ end
34
40
  end
35
41
  end
@@ -5,6 +5,7 @@ describe Gitara::Node::Bar::StanzaVersion do
5
5
  it "should be the stanza heading of the bar" do
6
6
  bar = FactoryGirl.build(:bar)
7
7
  stanza = FactoryGirl.build(:stanza, :name => 'Intro', :children => [bar])
8
+ tab = FactoryGirl.build(:tab, :children => [stanza], :time => '4/4')
8
9
 
9
10
  stanza_version_of_bar = FactoryGirl.build(:stanza_version_bar, :node => bar)
10
11
  stanza_version_of_bar.value.should == 'r1^"Intro"'
@@ -22,27 +22,37 @@ describe Gitara::Node::Bar do
22
22
  it "should be a whole rest with the stanza name if the bar is the first node of a stanza" do
23
23
  bar = FactoryGirl.build(:bar)
24
24
  stanza = FactoryGirl.build(:stanza, :name => 'Intro', :children => [bar])
25
+ tab = FactoryGirl.build(:tab, :children => [stanza], :time => '4/4')
25
26
 
26
27
  bar.stanza_heading.should == 'r1^"Intro"'
27
28
  end
28
29
 
29
30
  it "should be a whole rest with no stanza name if the bar is not the first node of a stanza" do
30
- bar = FactoryGirl.build(:bar)
31
- bar.stanza_heading.should == 'r1'
31
+ first_bar = FactoryGirl.build(:bar)
32
+ second_bar = FactoryGirl.build(:bar)
33
+ stanza = FactoryGirl.build(:stanza, :name => 'Intro', :children => [first_bar, second_bar])
34
+ tab = FactoryGirl.build(:tab, :children => [stanza], :time => '4/4')
35
+
36
+ second_bar.stanza_heading.should == 'r1'
32
37
  end
33
38
  end
34
39
 
35
40
  describe "#with a special_duration" do
36
- subject { FactoryGirl.build(:bar, :specified_duration => 8) }
37
-
38
41
  it "should be a partial with the stanza name if the bar is the first node of a stanza" do
42
+ subject = FactoryGirl.build(:bar, :specified_duration => 8)
39
43
  stanza = FactoryGirl.build(:stanza, :name => 'Intro', :children => [subject])
44
+ tab = FactoryGirl.build(:tab, :children => [stanza], :time => '4/4')
40
45
 
41
46
  subject.stanza_heading.should == 'r8^"Intro"'
42
47
  end
43
48
 
44
49
  it "should be a partial with no stanza name if the subject is not the first node of a stanza" do
45
- subject.stanza_heading.should == 'r8'
50
+ first_bar = FactoryGirl.build(:bar)
51
+ second_bar = FactoryGirl.build(:bar, :specified_duration => 8)
52
+ stanza = FactoryGirl.build(:stanza, :name => 'Intro', :children => [first_bar, second_bar])
53
+ tab = FactoryGirl.build(:tab, :children => [stanza], :time => '4/4')
54
+
55
+ second_bar.stanza_heading.should == 'r8'
46
56
  end
47
57
  end
48
58
 
@@ -78,13 +88,21 @@ describe Gitara::Node::Bar do
78
88
  end
79
89
  end
80
90
 
81
- describe "#duration" do
82
- it "should be 1 if there is no specified duration" do
83
- FactoryGirl.build(:bar, :specified_duration => nil).duration.should == 1
91
+ describe "#stanza_heading_for_first_bar" do
92
+ it "should be the time signature's rest bar value with the stanza name if the time signature will generate whole note bars" do
93
+ bar = FactoryGirl.build(:bar)
94
+ stanza = FactoryGirl.build(:stanza, :name => 'Intro', :children => [bar])
95
+ tab = FactoryGirl.build(:tab, :children => [stanza], :time => '4/4')
96
+
97
+ bar.stanza_heading_for_first_bar.should == 'r1^"Intro"'
84
98
  end
85
99
 
86
- it "should be the specified duration if present" do
87
- FactoryGirl.build(:bar, :specified_duration => 8).duration.should == 8
100
+ it "should attach the stanza name to the first rest note if the time signature will not generate whole note bars" do
101
+ bar = FactoryGirl.build(:bar)
102
+ stanza = FactoryGirl.build(:stanza, :name => 'Intro', :children => [bar])
103
+ tab = FactoryGirl.build(:tab, :children => [stanza], :time => '3/4')
104
+
105
+ bar.stanza_heading_for_first_bar.should == 'r4^"Intro" r4 r4'
88
106
  end
89
107
  end
90
108
  end
@@ -50,4 +50,16 @@ describe Gitara::Node::Tab do
50
50
  tab.midi_instrument.should == 'acoustic guitar (nylon)'
51
51
  end
52
52
  end
53
+
54
+ describe "#time_signature" do
55
+ it "should be based on time if it exists" do
56
+ tab = FactoryGirl.build(:tab, :time => '3/4')
57
+ tab.time_signature.value.should == '3/4'
58
+ end
59
+
60
+ it "should be 4/4 if time is not set" do
61
+ tab = FactoryGirl.build(:tab, :time => nil)
62
+ tab.time_signature.value.should == '4/4'
63
+ end
64
+ end
53
65
  end
@@ -0,0 +1,35 @@
1
+ require 'spec_helper'
2
+
3
+ describe Gitara::TimeSignature do
4
+ describe "#rest_bar_value" do
5
+ it "should be r1 if the time signature generates whole note bars" do
6
+ FactoryGirl.build(:time_signature, :value => '4/4').rest_bar_value.should == "r1"
7
+ end
8
+
9
+ it "should be based on beat unit and beats per bar if the time signature does not generate whole note bars" do
10
+ FactoryGirl.build(:time_signature, :value => '3/4').rest_bar_value.should == "r4 r4 r4"
11
+ end
12
+ end
13
+
14
+ describe "#generates_whole_note_bars?" do
15
+ it "should be true if the beat unit is the same as the beats per bar" do
16
+ FactoryGirl.build(:time_signature, :value => '4/4').generates_whole_note_bars?.should be_true
17
+ end
18
+
19
+ it "should be false if the beat unit is not the same as the beats per bar" do
20
+ FactoryGirl.build(:time_signature, :value => '3/4').generates_whole_note_bars?.should be_false
21
+ end
22
+ end
23
+
24
+ describe "beat_unit" do
25
+ it "is the second part of the value" do
26
+ FactoryGirl.build(:time_signature, :value => '3/4').beat_unit.should == 4
27
+ end
28
+ end
29
+
30
+ describe "beats_per_bar" do
31
+ it "is the first part of the value" do
32
+ FactoryGirl.build(:time_signature, :value => '3/4').beats_per_bar.should == 3
33
+ end
34
+ end
35
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitara
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-01 00:00:00.000000000 Z
12
+ date: 2012-05-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: active_support
16
- requirement: &69443170 !ruby/object:Gem::Requirement
16
+ requirement: &72250440 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *69443170
24
+ version_requirements: *72250440
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: erubis
27
- requirement: &69442290 !ruby/object:Gem::Requirement
27
+ requirement: &72250160 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *69442290
35
+ version_requirements: *72250160
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: linguistics
38
- requirement: &69441980 !ruby/object:Gem::Requirement
38
+ requirement: &72249910 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *69441980
46
+ version_requirements: *72249910
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: pow
49
- requirement: &69441550 !ruby/object:Gem::Requirement
49
+ requirement: &72249630 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *69441550
57
+ version_requirements: *72249630
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: redwood
60
- requirement: &69441120 !ruby/object:Gem::Requirement
60
+ requirement: &72249330 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *69441120
68
+ version_requirements: *72249330
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: thor
71
- requirement: &69440840 !ruby/object:Gem::Requirement
71
+ requirement: &72249010 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *69440840
79
+ version_requirements: *72249010
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: valuable
82
- requirement: &69440430 !ruby/object:Gem::Requirement
82
+ requirement: &72248620 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *69440430
90
+ version_requirements: *72248620
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: factory_girl
93
- requirement: &69440080 !ruby/object:Gem::Requirement
93
+ requirement: &72248250 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *69440080
101
+ version_requirements: *72248250
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: guard
104
- requirement: &69439780 !ruby/object:Gem::Requirement
104
+ requirement: &72248000 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '0'
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *69439780
112
+ version_requirements: *72248000
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: guard-rspec
115
- requirement: &69439500 !ruby/object:Gem::Requirement
115
+ requirement: &72247730 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: '0'
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *69439500
123
+ version_requirements: *72247730
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: pry
126
- requirement: &69439160 !ruby/object:Gem::Requirement
126
+ requirement: &72247480 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *69439160
134
+ version_requirements: *72247480
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: rb-inotify
137
- requirement: &69438880 !ruby/object:Gem::Requirement
137
+ requirement: &72247170 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: '0'
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *69438880
145
+ version_requirements: *72247170
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: rspec
148
- requirement: &69438580 !ruby/object:Gem::Requirement
148
+ requirement: &72246840 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ! '>='
@@ -153,10 +153,10 @@ dependencies:
153
153
  version: '0'
154
154
  type: :development
155
155
  prerelease: false
156
- version_requirements: *69438580
156
+ version_requirements: *72246840
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: yard
159
- requirement: &69438320 !ruby/object:Gem::Requirement
159
+ requirement: &72246430 !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
162
162
  - - ! '>='
@@ -164,10 +164,10 @@ dependencies:
164
164
  version: '0'
165
165
  type: :development
166
166
  prerelease: false
167
- version_requirements: *69438320
167
+ version_requirements: *72246430
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: yard-rspec
170
- requirement: &69438040 !ruby/object:Gem::Requirement
170
+ requirement: &72245950 !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
173
173
  - - ! '>='
@@ -175,7 +175,7 @@ dependencies:
175
175
  version: '0'
176
176
  type: :development
177
177
  prerelease: false
178
- version_requirements: *69438040
178
+ version_requirements: *72245950
179
179
  description: A Ruby DSL for generating Lilypond guitar tablatures.
180
180
  email:
181
181
  - gsmendoza@gmail.com
@@ -208,6 +208,8 @@ files:
208
208
  - examples/tab-with-partial.rb
209
209
  - examples/tab-with-repeats.ly
210
210
  - examples/tab-with-repeats.rb
211
+ - examples/tab-with-time-signature.ly
212
+ - examples/tab-with-time-signature.rb
211
213
  - examples/tab.ly
212
214
  - examples/tab.rb
213
215
  - gitara.gemspec
@@ -240,7 +242,9 @@ files:
240
242
  - lib/gitara/template/stanza.erb
241
243
  - lib/gitara/template/tab.erb
242
244
  - lib/gitara/template/tab_tempo.erb
245
+ - lib/gitara/template/tab_time.erb
243
246
  - lib/gitara/template/voice.erb
247
+ - lib/gitara/time_signature.rb
244
248
  - lib/gitara/utilities.rb
245
249
  - lib/gitara/version.rb
246
250
  - lib/gitara/voice.rb
@@ -262,6 +266,7 @@ files:
262
266
  - spec/lib/gitara/node/repeat_spec.rb
263
267
  - spec/lib/gitara/node/stanza_spec.rb
264
268
  - spec/lib/gitara/node/tab_spec.rb
269
+ - spec/lib/gitara/time_signature_spec.rb
265
270
  - spec/lib/gitara/voice_spec.rb
266
271
  - spec/lib/gitara_spec.rb
267
272
  - spec/spec_helper.rb