Skip to content
Newer
Older
100644 91 lines (51 sloc) 1.54 KB
9ebaa30 @youpy initial import
authored
1 = Scissor
2
3 == Description
fb4e7a0 @youpy * wav support
authored
4
5 utility to chop sound files
6
7 supported file format:
8
9 * mp3
10 * wav
11
12 == Installation
9ebaa30 @youpy initial import
authored
13
4598561 @youpy fix rdoc
authored
14 === Requirements
9ebaa30 @youpy initial import
authored
15
fb4e7a0 @youpy * wav support
authored
16 * {FFmpeg}[http://ffmpeg.mplayerhq.hu/]
17 * {Ecasound}[http://www.eca.cx/ecasound/] 2.5.0 or higher
7722340 @youpy update README
authored
18 * {Rubber Band}[http://breakfastquay.com/rubberband/]
2bbecca @youpy update rdoc
authored
19
9ebaa30 @youpy initial import
authored
20 === Archive Installation
21
111f560 @youpy fix indentation
authored
22 rake install
9ebaa30 @youpy initial import
authored
23
24 === Gem Installation
25
1fb5acc @youpy update rdoc and HOMEPATH
authored
26 gem update --system
27 gem install gemcutter
28 gem tumble
29 gem install scissor
9ebaa30 @youpy initial import
authored
30
31 == Features/Problems
32
fb4e7a0 @youpy * wav support
authored
33 * When you concatenate two or more files, format(sample rate, bit rate, ...) mismatch causes unexpected changes to output file.
34
9ebaa30 @youpy initial import
authored
35 == Synopsis
36
97d0dda @youpy fix typo
authored
37 === instantiate
52fb4ed @youpy update rdoc
authored
38
6997d03 @youpy update README
authored
39 ==== from file
40
111f560 @youpy fix indentation
authored
41 foo = Scissor('foo.mp3')
42 bar = Scissor('bar.wav')
6997d03 @youpy update README
authored
43
44 ==== from URL
45
46 foo = Scissor('http://example.com/foo.mp3')
47 bar = Scissor('http://example.org/bar.wav')
48
41427ec @youpy update rdoc
authored
49 === concat
52fb4ed @youpy update rdoc
authored
50
111f560 @youpy fix indentation
authored
51 foo + bar > 'foobar.mp3'
9ebaa30 @youpy initial import
authored
52
41427ec @youpy update rdoc
authored
53 === slice + concat
52fb4ed @youpy update rdoc
authored
54
111f560 @youpy fix indentation
authored
55 foo[10, 1] + bar[2, 3] > 'slicefoobar.mp3'
9ebaa30 @youpy initial import
authored
56
41427ec @youpy update rdoc
authored
57 === slice + concat + loop
52fb4ed @youpy update rdoc
authored
58
111f560 @youpy fix indentation
authored
59 (foo[10, 1] + bar[2, 3]) * 4 > 'slicefoobarloop.mp3'
9ebaa30 @youpy initial import
authored
60
41427ec @youpy update rdoc
authored
61 === split
52fb4ed @youpy update rdoc
authored
62
111f560 @youpy fix indentation
authored
63 (Scissor('sequence.mp3') / 16).first.to_file('split.mp3')
880468a @youpy * add Scissor#/
authored
64
41427ec @youpy update rdoc
authored
65 === replace first 10 seconds with 30 seconds of silence
52fb4ed @youpy update rdoc
authored
66
111f560 @youpy fix indentation
authored
67 foo.replace(0, 10, Scissor.silence(30)).to_file('replace.mp3')
9ebaa30 @youpy initial import
authored
68
41427ec @youpy update rdoc
authored
69 === sequence + loop
52fb4ed @youpy update rdoc
authored
70
111f560 @youpy fix indentation
authored
71 seq = Scissor.sequence('x y xyz', 0.2)
72 seq.apply(:x => foo, :y => Proc.new { bar }, :z => foo.reverse) * 4 > 'sequence.wav'
0b5aae8 @youpy * add Scissor#replace
authored
73
41427ec @youpy update rdoc
authored
74 === half the pitch
52fb4ed @youpy update rdoc
authored
75
76 foo.pitch(50)
77
7a87edf @youpy add spec for Chunk#stretch
authored
78 === 200% time stretch without changing the pitch
7722340 @youpy update README
authored
79
7a87edf @youpy add spec for Chunk#stretch
authored
80 foo.stretch(200)
7722340 @youpy update README
authored
81
41427ec @youpy update rdoc
authored
82 === mix
52fb4ed @youpy update rdoc
authored
83
111f560 @youpy fix indentation
authored
84 Scissor.mix([foo, bar], 'mix.mp3')
4cf0f62 @youpy add Scissor.mix Fixes gh-1
authored
85
9ebaa30 @youpy initial import
authored
86 == Copyright
87
88 Author:: youpy <youpy@buycheapviagraonlinenow.com>
89 Copyright:: Copyright (c) 2009 youpy
90 License:: MIT
Something went wrong with that request. Please try again.