adplug / adplay-unix

AdPlug's UNIX console-based frontend
GNU General Public License v2.0
12 stars 15 forks source link

[FR] "fade" option #8

Open ildar opened 7 years ago

ildar commented 7 years ago

The --once option is important yet incomplete. Cutting song this way isn't good-sounding. The good way to do it:

  1. play a loop N times
  2. play M seconds after that
  3. play O seconds after (2) with fade from 100% vol to 0% vol

Shouldn't be complicated to code but can result in the great tool to make (wave) demos out of source adlib files.

Malvineous commented 7 years ago

We'd have to add a new option for this as a number of people don't like fade out loops, and a few of the formats would need fixing as they loop forever even with --once. But if you're willing to submit a patch that implements a --fadeout option then we will be happy to accept it!

ildar commented 7 years ago

Agree on that two new options should be introduced and once be replaced. Let the FR hang for a while, let see.

mwoehlke commented 3 years ago

I'd like this also, but I disagree that fading "Shouldn't be complicated to code". Do you want a linear fade? Logarithmic? S-curve? Are you sure you want it to start right at the loop?

IMHO it makes much more sense to just have a loop count and use an external tool (e.g. Audacity) to apply the fade. Or at least start with that.

I have a somewhat ugly patch for this I'll try to push.