mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
clip recording: shrink fade in/out to 1msec
This commit is contained in:
parent
0a70bf9ed0
commit
5e9331bb73
1 changed files with 2 additions and 1 deletions
|
|
@ -1878,7 +1878,8 @@ AudioTrigger::captured (SlotArmInfo& ai, BufferSet&)
|
|||
using Amp::apply_gain() possible.
|
||||
*/
|
||||
AudioBuffer buf (0);
|
||||
const samplecnt_t fade_duration = std::min (_box.session().sample_rate()/4, data.length/2);
|
||||
const samplecnt_t fade_duration = std::min (_box.session().sample_rate()/1000, data.length/2);
|
||||
|
||||
DEBUG_TRACE (DEBUG::Triggers, string_compose ("apply fade in/out over %1\n", fade_duration));
|
||||
|
||||
for (auto & s : ai.audio_buf) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue