Skip to content
Browse files

fix indentation

  • Loading branch information...
1 parent 4cf0f62 commit 111f560fbf03ad4afa96b9c83b4286e15ff6553c @youpy committed Jul 19, 2009
Showing with 21 additions and 21 deletions.
  1. +21 −21 README.rdoc
View
42 README.rdoc
@@ -18,43 +18,43 @@ supported file format:
=== Archive Installation
- rake install
+ rake install
=== Gem Installation
- gem sources -a http://gems.github.com/
- gem install youpy-scissor
+ gem sources -a http://gems.github.com/
+ gem install youpy-scissor
== Features/Problems
* When you concatenate two or more files, format(sample rate, bit rate, ...) mismatch causes unexpected changes to output file.
== Synopsis
- foo = Scissor('foo.mp3')
- bar = Scissor('bar.wav')
+ foo = Scissor('foo.mp3')
+ bar = Scissor('bar.wav')
+
+ # concat
+ foo + bar > 'foobar.mp3'
- # concat
- foo + bar > 'foobar.mp3'
+ # slice + concat
+ foo[10, 1] + bar[2, 3] > 'slicefoobar.mp3'
- # slice + concat
- foo[10, 1] + bar[2, 3] > 'slicefoobar.mp3'
+ # slice + concat + loop
+ (foo[10, 1] + bar[2, 3]) * 4 > 'slicefoobarloop.mp3'
- # slice + concat + loop
- (foo[10, 1] + bar[2, 3]) * 4 > 'slicefoobarloop.mp3'
+ # split
+ (Scissor('sequence.mp3') / 16).first.to_file('split.mp3')
- # split
- (Scissor('sequence.mp3') / 16).first.to_file('split.mp3')
+ # replace first 10 seconds with 30 seconds of silence
+ foo.replace(0, 10, Scissor.silence(30)).to_file('replace.mp3')
- # replace first 10 seconds with 30 seconds of silence
- foo.replace(0, 10, Scissor.silence(30)).to_file('replace.mp3')
+ # sequence + loop
+ seq = Scissor.sequence('x y xyz', 0.2)
+ seq.apply(:x => foo, :y => Proc.new { bar }, :z => foo.reverse) * 4 > 'sequence.wav'
- # sequence + loop
- seq = Scissor.sequence('x y xyz', 0.2)
- seq.apply(:x => foo, :y => Proc.new { bar }, :z => foo.reverse) * 4 > 'sequence.wav'
-
- # mix
- Scissor.mix([foo, bar], 'mix.mp3')
+ # mix
+ Scissor.mix([foo, bar], 'mix.mp3')
== Copyright

0 comments on commit 111f560

Please sign in to comment.
Something went wrong with that request. Please try again.