Skip to content
Newer
Older
100644 68 lines (40 sloc) 1.3 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
cbdac70 @youpy fix rdoc
authored
16 * {ruby-mp3info}[http://ruby-mp3info.rubyforge.org/]
e9c7e18 @youpy * use ecasound and mpg123 instead of mp3wrap
authored
17
fb4e7a0 @youpy * wav support
authored
18 gem install ruby-mp3info
19
20 * {RiffLib}[http://rubyforge.org/projects/riff/]
21
22 gem install riff
23
24 * {FFmpeg}[http://ffmpeg.mplayerhq.hu/]
25 * {Ecasound}[http://www.eca.cx/ecasound/] 2.5.0 or higher
2bbecca @youpy update rdoc
authored
26
9ebaa30 @youpy initial import
authored
27 === Archive Installation
28
29 rake install
30
31 === Gem Installation
32
33 gem install youpy-scissor
34
35 == Features/Problems
36
fb4e7a0 @youpy * wav support
authored
37 * When you concatenate two or more files, format(sample rate, bit rate, ...) mismatch causes unexpected changes to output file.
38
9ebaa30 @youpy initial import
authored
39 == Synopsis
40
41 foo = Scissor.new('foo.mp3')
fb4e7a0 @youpy * wav support
authored
42 bar = Scissor.new('bar.wav')
9ebaa30 @youpy initial import
authored
43
44 # concat
45 (foo + bar).to_file('foobar.mp3')
46
47 # slice + concat
94c710d @youpy fix rdoc
authored
48 (foo.slice(10, 1) + bar.slice(2, 3)).to_file('slicefoobar.mp3')
9ebaa30 @youpy initial import
authored
49
50 # slice + concat + loop
880468a @youpy * add Scissor#/
authored
51 ((foo.slice(10, 1) + bar.slice(2, 3)) * 4).to_file('slicefoobarloop.mp3')
52
53 # split
1280b3a @youpy fix synopsis
authored
54 (Scissor.new('sequence.mp3') / 16).first.to_file('split.mp3')
9ebaa30 @youpy initial import
authored
55
0b5aae8 @youpy * add Scissor#replace
authored
56 # replace first 10 seconds with 30 seconds of silence
57 foo.replace(0, 10, Scissor.silence(30)).to_file('replace.mp3')
58
68825f6 @youpy add Scissor#reverse
authored
59 # reverse + concat + loop
60 beat = foo.slice(0, 1)
61 ((beat * 3) + beat.reverse) * 80
62
9ebaa30 @youpy initial import
authored
63 == Copyright
64
65 Author:: youpy <youpy@buycheapviagraonlinenow.com>
66 Copyright:: Copyright (c) 2009 youpy
67 License:: MIT
Something went wrong with that request. Please try again.