Skip to content
Newer
Older
100644 64 lines (39 sloc) 1.23 KB
9ebaa30 @youpy initial import
authored Mar 29, 2009
1 = Scissor
2
3 == Description
fb4e7a0 @youpy * wav support
authored Apr 5, 2009
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 Mar 29, 2009
13
4598561 @youpy fix rdoc
authored Apr 5, 2009
14 === Requirements
9ebaa30 @youpy initial import
authored Mar 29, 2009
15
fb4e7a0 @youpy * wav support
authored Apr 5, 2009
16 * {FFmpeg}[http://ffmpeg.mplayerhq.hu/]
17 * {Ecasound}[http://www.eca.cx/ecasound/] 2.5.0 or higher
2bbecca @youpy update rdoc
authored Apr 5, 2009
18
9ebaa30 @youpy initial import
authored Mar 29, 2009
19 === Archive Installation
20
111f560 @youpy fix indentation
authored Jul 19, 2009
21 rake install
9ebaa30 @youpy initial import
authored Mar 29, 2009
22
23 === Gem Installation
24
111f560 @youpy fix indentation
authored Jul 19, 2009
25 gem sources -a http://gems.github.com/
26 gem install youpy-scissor
9ebaa30 @youpy initial import
authored Mar 29, 2009
27
28 == Features/Problems
29
fb4e7a0 @youpy * wav support
authored Apr 5, 2009
30 * When you concatenate two or more files, format(sample rate, bit rate, ...) mismatch causes unexpected changes to output file.
31
9ebaa30 @youpy initial import
authored Mar 29, 2009
32 == Synopsis
33
111f560 @youpy fix indentation
authored Jul 19, 2009
34 foo = Scissor('foo.mp3')
35 bar = Scissor('bar.wav')
36
37 # concat
38 foo + bar > 'foobar.mp3'
9ebaa30 @youpy initial import
authored Mar 29, 2009
39
111f560 @youpy fix indentation
authored Jul 19, 2009
40 # slice + concat
41 foo[10, 1] + bar[2, 3] > 'slicefoobar.mp3'
9ebaa30 @youpy initial import
authored Mar 29, 2009
42
111f560 @youpy fix indentation
authored Jul 19, 2009
43 # slice + concat + loop
44 (foo[10, 1] + bar[2, 3]) * 4 > 'slicefoobarloop.mp3'
9ebaa30 @youpy initial import
authored Mar 29, 2009
45
111f560 @youpy fix indentation
authored Jul 19, 2009
46 # split
47 (Scissor('sequence.mp3') / 16).first.to_file('split.mp3')
880468a @youpy * add Scissor#/
authored Mar 30, 2009
48
111f560 @youpy fix indentation
authored Jul 19, 2009
49 # replace first 10 seconds with 30 seconds of silence
50 foo.replace(0, 10, Scissor.silence(30)).to_file('replace.mp3')
9ebaa30 @youpy initial import
authored Mar 29, 2009
51
111f560 @youpy fix indentation
authored Jul 19, 2009
52 # sequence + loop
53 seq = Scissor.sequence('x y xyz', 0.2)
54 seq.apply(:x => foo, :y => Proc.new { bar }, :z => foo.reverse) * 4 > 'sequence.wav'
0b5aae8 @youpy * add Scissor#replace
authored Apr 5, 2009
55
111f560 @youpy fix indentation
authored Jul 19, 2009
56 # mix
57 Scissor.mix([foo, bar], 'mix.mp3')
4cf0f62 @youpy add Scissor.mix Fixes gh-1
authored Jul 19, 2009
58
9ebaa30 @youpy initial import
authored Mar 29, 2009
59 == Copyright
60
61 Author:: youpy <youpy@buycheapviagraonlinenow.com>
62 Copyright:: Copyright (c) 2009 youpy
63 License:: MIT
Something went wrong with that request. Please try again.