lib/scissor/writer.rb in youpy-scissor-0.0.20 vs lib/scissor/writer.rb in youpy-scissor-0.0.21
- old
+ new
@@ -44,11 +44,12 @@
cmd <<
"-a:#{index} " +
"-i:" +
(fragment.reversed? ? 'reverse,' : '') +
- "select,#{fragment.start},#{fragment_duration},\"#{fragment_outfile}\" " +
+ "select,#{fragment.start},#{fragment.true_duration},\"#{fragment_outfile}\" " +
"-o:#{outfile} " +
+ (fragment.pitch.to_f == 100.0 ? "" : "-ei:#{fragment.pitch} ") +
"-y:#{position}"
position += fragment_duration
end