Skip to content
Newer
Older
100644 79 lines (44 sloc) 1.3 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
1fb5acc @youpy update rdoc and HOMEPATH
authored Oct 11, 2009
25 gem update --system
26 gem install gemcutter
27 gem tumble
28 gem install scissor
9ebaa30 @youpy initial import
authored Mar 29, 2009
29
30 == Features/Problems
31
fb4e7a0 @youpy * wav support
authored Apr 5, 2009
32 * When you concatenate two or more files, format(sample rate, bit rate, ...) mismatch causes unexpected changes to output file.
33
9ebaa30 @youpy initial import
authored Mar 29, 2009
34 == Synopsis
35
97d0dda @youpy fix typo
authored Jul 19, 2009
36 === instantiate
52fb4ed @youpy update rdoc
authored Jul 19, 2009
37
111f560 @youpy fix indentation
authored Jul 19, 2009
38 foo = Scissor('foo.mp3')
39 bar = Scissor('bar.wav')
40
41427ec @youpy update rdoc
authored Jul 19, 2009
41 === concat
52fb4ed @youpy update rdoc
authored Jul 19, 2009
42
111f560 @youpy fix indentation
authored Jul 19, 2009
43 foo + bar > 'foobar.mp3'
9ebaa30 @youpy initial import
authored Mar 29, 2009
44
41427ec @youpy update rdoc
authored Jul 19, 2009
45 === slice + concat
52fb4ed @youpy update rdoc
authored Jul 19, 2009
46
111f560 @youpy fix indentation
authored Jul 19, 2009
47 foo[10, 1] + bar[2, 3] > 'slicefoobar.mp3'
9ebaa30 @youpy initial import
authored Mar 29, 2009
48
41427ec @youpy update rdoc
authored Jul 19, 2009
49 === slice + concat + loop
52fb4ed @youpy update rdoc
authored Jul 19, 2009
50
111f560 @youpy fix indentation
authored Jul 19, 2009
51 (foo[10, 1] + bar[2, 3]) * 4 > 'slicefoobarloop.mp3'
9ebaa30 @youpy initial import
authored Mar 29, 2009
52
41427ec @youpy update rdoc
authored Jul 19, 2009
53 === split
52fb4ed @youpy update rdoc
authored Jul 19, 2009
54
111f560 @youpy fix indentation
authored Jul 19, 2009
55 (Scissor('sequence.mp3') / 16).first.to_file('split.mp3')
880468a @youpy * add Scissor#/
authored Mar 30, 2009
56
41427ec @youpy update rdoc
authored Jul 19, 2009
57 === replace first 10 seconds with 30 seconds of silence
52fb4ed @youpy update rdoc
authored Jul 19, 2009
58
111f560 @youpy fix indentation
authored Jul 19, 2009
59 foo.replace(0, 10, Scissor.silence(30)).to_file('replace.mp3')
9ebaa30 @youpy initial import
authored Mar 29, 2009
60
41427ec @youpy update rdoc
authored Jul 19, 2009
61 === sequence + loop
52fb4ed @youpy update rdoc
authored Jul 19, 2009
62
111f560 @youpy fix indentation
authored Jul 19, 2009
63 seq = Scissor.sequence('x y xyz', 0.2)
64 seq.apply(:x => foo, :y => Proc.new { bar }, :z => foo.reverse) * 4 > 'sequence.wav'
0b5aae8 @youpy * add Scissor#replace
authored Apr 5, 2009
65
41427ec @youpy update rdoc
authored Jul 19, 2009
66 === half the pitch
52fb4ed @youpy update rdoc
authored Jul 19, 2009
67
68 foo.pitch(50)
69
41427ec @youpy update rdoc
authored Jul 19, 2009
70 === mix
52fb4ed @youpy update rdoc
authored Jul 19, 2009
71
111f560 @youpy fix indentation
authored Jul 19, 2009
72 Scissor.mix([foo, bar], 'mix.mp3')
4cf0f62 @youpy add Scissor.mix Fixes gh-1
authored Jul 19, 2009
73
9ebaa30 @youpy initial import
authored Mar 29, 2009
74 == Copyright
75
76 Author:: youpy <youpy@buycheapviagraonlinenow.com>
77 Copyright:: Copyright (c) 2009 youpy
78 License:: MIT
Something went wrong with that request. Please try again.