Skip to content

youpy/scissor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

utility to chop sound files

supported file format:

  • mp3

  • wav

  • m4a

rake install 
gem update --system gem install gemcutter gem tumble gem install scissor 
  • When you concatenate two or more files, format(sample rate, bit rate, …) mismatch causes unexpected changes to output file.

foo = Scissor('foo.mp3') bar = Scissor('bar.wav') 
foo = Scissor('http://example.com/foo.mp3') bar = Scissor('http://example.org/bar.wav') 
foo + bar > 'foobar.mp3' 
foo[10, 1] + bar[2, 3] > 'slicefoobar.mp3' 
(foo[10, 1] + bar[2, 3]) * 4 > 'slicefoobarloop.mp3' 
(Scissor('sequence.mp3') / 16).first.to_file('split.mp3') 
foo.replace(0, 10, Scissor.silence(30)).to_file('replace.mp3') 
seq = Scissor.sequence('x y xyz', 0.2) seq.apply(:x => foo, :y => Proc.new { bar }, :z => foo.reverse) * 4 > 'sequence.wav' 
foo.pitch(50) 
foo.stretch(200) 
foo.pan(0) # left only foo.pan(50) # center(default) foo.pan(100) # right only 
Scissor.mix([foo, bar], 'mix.mp3') 
Author

youpy <youpy@buycheapviagraonlinenow.com>

Copyright

Copyright © 2009 youpy

License

MIT

About

utility to chop sound files

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages