Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 84 lines (47 sloc) 1.453 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
111f560 @youpy fix indentation
authored
39 foo = Scissor('foo.mp3')
40 bar = Scissor('bar.wav')
41
41427ec @youpy update rdoc
authored
42 === concat
52fb4ed @youpy update rdoc
authored
43
111f560 @youpy fix indentation
authored
44 foo + bar > 'foobar.mp3'
9ebaa30 @youpy initial import
authored
45
41427ec @youpy update rdoc
authored
46 === slice + concat
52fb4ed @youpy update rdoc
authored
47
111f560 @youpy fix indentation
authored
48 foo[10, 1] + bar[2, 3] > 'slicefoobar.mp3'
9ebaa30 @youpy initial import
authored
49
41427ec @youpy update rdoc
authored
50 === slice + concat + loop
52fb4ed @youpy update rdoc
authored
51
111f560 @youpy fix indentation
authored
52 (foo[10, 1] + bar[2, 3]) * 4 > 'slicefoobarloop.mp3'
9ebaa30 @youpy initial import
authored
53
41427ec @youpy update rdoc
authored
54 === split
52fb4ed @youpy update rdoc
authored
55
111f560 @youpy fix indentation
authored
56 (Scissor('sequence.mp3') / 16).first.to_file('split.mp3')
880468a @youpy * add Scissor#/
authored
57
41427ec @youpy update rdoc
authored
58 === replace first 10 seconds with 30 seconds of silence
52fb4ed @youpy update rdoc
authored
59
111f560 @youpy fix indentation
authored
60 foo.replace(0, 10, Scissor.silence(30)).to_file('replace.mp3')
9ebaa30 @youpy initial import
authored
61
41427ec @youpy update rdoc
authored
62 === sequence + loop
52fb4ed @youpy update rdoc
authored
63
111f560 @youpy fix indentation
authored
64 seq = Scissor.sequence('x y xyz', 0.2)
65 seq.apply(:x => foo, :y => Proc.new { bar }, :z => foo.reverse) * 4 > 'sequence.wav'
0b5aae8 @youpy * add Scissor#replace
authored
66
41427ec @youpy update rdoc
authored
67 === half the pitch
52fb4ed @youpy update rdoc
authored
68
69 foo.pitch(50)
70
7a87edf @youpy add spec for Chunk#stretch
authored
71 === 200% time stretch without changing the pitch
7722340 @youpy update README
authored
72
7a87edf @youpy add spec for Chunk#stretch
authored
73 foo.stretch(200)
7722340 @youpy update README
authored
74
41427ec @youpy update rdoc
authored
75 === mix
52fb4ed @youpy update rdoc
authored
76
111f560 @youpy fix indentation
authored
77 Scissor.mix([foo, bar], 'mix.mp3')
4cf0f62 @youpy add Scissor.mix Fixes gh-1
authored
78
9ebaa30 @youpy initial import
authored
79 == Copyright
80
81 Author:: youpy <youpy@buycheapviagraonlinenow.com>
82 Copyright:: Copyright (c) 2009 youpy
83 License:: MIT
Something went wrong with that request. Please try again.