musicality 0.10.0 → 0.10.1
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/ChangeLog.md +7 -0
- data/lib/musicality/performance/supercollider/conductor.rb +6 -1
- data/lib/musicality/printing/lilypond/part_engraver.rb +2 -1
- data/lib/musicality/project/create_tasks.rb +3 -2
- data/lib/musicality/project/file_raker.rb +4 -1
- data/lib/musicality/version.rb +1 -1
- data/lib/musicality.rb +1 -0
- data/musicality.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c80e6fa5fd903b82f6a850f9780739197b0a3c56
|
4
|
+
data.tar.gz: a110c580d68007bab242f7d7a647e4b583abd885
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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 +
|
25
|
-
|
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
|
-
|
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
|
data/lib/musicality/version.rb
CHANGED
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
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.
|
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-
|
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,
|