musicality 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d3af3d687ff5109e122bfa208ee1d566bc97674
4
- data.tar.gz: 2d819234281b8639e5bb8dd58fcc4e1acb2c3834
3
+ metadata.gz: c80e6fa5fd903b82f6a850f9780739197b0a3c56
4
+ data.tar.gz: a110c580d68007bab242f7d7a647e4b583abd885
5
5
  SHA512:
6
- metadata.gz: a3f3dd479c5350582fbe1ff5183dd25ae006e8fa9028d071da12123d1192adfe938dea47c4705fd4c95c192c6f34abf1cf37e473ef1d1e726631dbd375d1154e
7
- data.tar.gz: 2cf2328e11b1f5b998483c894460e95582e4635c979b310840d0a02c272beadf7bb0f53f01d74b2edca2cc6fe7f57886053d53e971ca1674d7121c737f778ecd
6
+ metadata.gz: bc1b333be0c54a2171344aba9458f5e32c2e4a8c2737431821525f058c6a827bd2eb351261cf2a6d159518c1e3281d79dadc621d6c48dbe58a8cec9adfa383f0
7
+ data.tar.gz: a8e82d0a11291148498a6c54f17c0cb3db4f3071946946e0668cf7e5a335a6d8f3e782bf1137f49304e20efdd78b4441697fc980f6f229d73570122e4ecd6e54
data/ChangeLog.md CHANGED
@@ -1,3 +1,10 @@
1
+ ### 0.10.1 / 2016-01-08
2
+ * Kill sclang process with Process.kill(9,pid) when running on Windows. Otherwise use Process.kill('INT',pid)
3
+ * Delete .scd after it is processed
4
+ * Fix error in PartEngraver#make_body
5
+ * Specify output directory in lilypond command line
6
+ * Add lilypond .ly files to list of output files to be cleaned
7
+
1
8
  ### 0.10.0 / 2016-01-08
2
9
  * Remove uneeded gem dependency
3
10
  * Treat all offsets and durations in Score::Tempo as note offsets. Don't check if meter change offsets are integer anymore.
@@ -18,6 +18,7 @@ class Conductor
18
18
  bundles = bundles(selected_parts, lead_time)
19
19
  fpath = write_sc_code bundles, base_fpath
20
20
  exec_sc_code fpath, bundles.last.time, verbose
21
+ File.delete(fpath)
21
22
  end
22
23
 
23
24
  def bundles selected_parts = @performers.keys, lead_time
@@ -114,7 +115,11 @@ SCLANG
114
115
  when post_sclang_pid
115
116
  sclang_pid = $1.to_i
116
117
  when COMPLETION_MSG
117
- Process.kill 'INT', sclang_pid
118
+ if OS.windows?
119
+ Process.kill 9, sclang_pid
120
+ else
121
+ Process.kill "INT", sclang_pid
122
+ end
118
123
  end
119
124
  end
120
125
  end
@@ -56,7 +56,7 @@ class PartEngraver
56
56
  def make_body sharpit
57
57
  i = 0
58
58
  pieces = @part.notes.map do |n|
59
- if @triplet_flags[i]
59
+ str = if @triplet_flags[i]
60
60
  n.resize(n.duration * Rational(3,2)).to_lilypond(sharpit,
61
61
  begins_triplet: i == 0 || !@triplet_flags[i-1],
62
62
  ends_triplet: i == (@triplet_flags.size-1) || !@triplet_flags[i+1])
@@ -64,6 +64,7 @@ class PartEngraver
64
64
  n.to_lilypond(sharpit)
65
65
  end
66
66
  i += 1
67
+ str
67
68
  end
68
69
 
69
70
  output = ""
@@ -21,8 +21,9 @@ class Project
21
21
  ps_task = Tasks::FileRaker::Visual.new(lilypond_task.files, :ps)
22
22
 
23
23
  outfiles = (
24
- yaml_task.files + midi_task.files + supercollider_task.files + wav_task.files +
25
- aiff_task.files + flac_task.files + pdf_task.files + png_task.files + ps_task.files
24
+ yaml_task.files + lilypond_task.files + midi_task.files + supercollider_task.files +
25
+ pdf_task.files + png_task.files + ps_task.files +
26
+ wav_task.files + aiff_task.files + flac_task.files
26
27
  ).select {|fname| File.exists? fname }
27
28
  clean_task = Tasks::FileCleaner.new(outfiles)
28
29
  end
@@ -97,7 +97,10 @@ class FileRaker < Rake::TaskLib
97
97
  class Visual < FileRaker
98
98
  def initialize lilypond_files, visual_file_type
99
99
  super(lilypond_files, visual_file_type, ".#{visual_file_type}") do |t|
100
- sh "lilypond #{t.sources[0]} --#{visual_file_type}"
100
+ ly_fpath = t.sources[0]
101
+ out_dir = File.dirname(ly_fpath)
102
+
103
+ sh "lilypond --output=\"#{out_dir}\" \"#{ly_fpath}\" --#{visual_file_type}"
101
104
  end
102
105
  end
103
106
  end
@@ -1,3 +1,3 @@
1
1
  module Musicality
2
- VERSION = "0.10.0"
2
+ VERSION = "0.10.1"
3
3
  end
data/lib/musicality.rb CHANGED
@@ -110,6 +110,7 @@ require 'musicality/performance/midi/part_sequencer'
110
110
  require 'musicality/performance/midi/score_sequencer'
111
111
  require 'musicality/performance/midi/score_sequencing'
112
112
 
113
+ require 'os'
113
114
  require 'musicality/performance/supercollider/message'
114
115
  require 'musicality/performance/supercollider/bundle'
115
116
  require 'musicality/performance/supercollider/server'
data/musicality.gemspec CHANGED
@@ -28,6 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.add_dependency "treetop", "~> 1.5"
29
29
  spec.add_dependency 'midilib', '~> 2.0'
30
30
  spec.add_dependency 'docopt', '~> 0.5'
31
+ spec.add_dependency 'os', '~> 0.9'
31
32
 
32
33
  spec.required_ruby_version = '>= 2.0'
33
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: musicality
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Tunnell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-08 00:00:00.000000000 Z
11
+ date: 2016-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ~>
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0.5'
111
+ - !ruby/object:Gem::Dependency
112
+ name: os
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: '0.9'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ~>
123
+ - !ruby/object:Gem::Version
124
+ version: '0.9'
111
125
  description: "The library is based around an abstract representation for music notation.
112
126
  \\\n From here, functions are built up to make composing
113
127
  elaborate pieces in this notation representation more manageable. \\\n Finally,