Rockbox Technical Forums

Support and General Use => Audio Playback, Database and Playlists => Topic started by: nieroster on September 27, 2006, 02:06:14 PM

Title: Crossfade setting "Fade In Delay"?
Post by: nieroster on September 27, 2006, 02:06:14 PM
I was playing with the crossfade feature and stumbled over two settings:

Fade In Delay
Fade Out Delay

I went to the manual pages and looked what this could be, but there is no explanation either. It just states:

>>The “fade in delay” is the length of time between when the crossfade process begins and when the new track begins to fade in. <<

What actually triggers the crossfade process to start and how can I influence this? Can I leave the values at 0s? Does it prebuffer some data when set to something else than 0s?

most likely this should be moved to the forum:
User Interface and Voice

sorry...
Title: Re: Crossfade setting "Fade In Delay"?
Post by: Mmmm on September 27, 2006, 04:13:04 PM
You may find this thread helpful:
http://forums.rockbox.org/index.php?topic=3178.0
Title: Re: Crossfade setting "Fade In Delay"?
Post by: nieroster on September 28, 2006, 02:20:55 AM
Thanks!

If I understood correctly then it is as follows:


--------------
                      -
        Song A        -
                            -
                               --------------------------------
                   
                                          ---------------------------
                                     -
                                -          Song B
                           -
-----------------

<----1------>|<--2->|
<-------3------>|<----4---->|

Where:
1 is Fade Out Delay
2 is Fade Out Duration
3 is Fade In delay
4 is Fade In Duration

The effect would be the same if you set Fade Out Delay (1) to Zero and Fade In Delay to what above is Fade In delay(3) - Fade Out Delay(1)
Title: Re: Crossfade setting "Fade In Delay"?
Post by: Mmmm on September 28, 2006, 03:34:46 AM
Sounds right to me! :)
Title: Re: Crossfade setting "Fade In Delay"?
Post by: fml2 on September 28, 2006, 03:51:11 AM
The effect would be the same if you set Fade Out Delay (1) to Zero and Fade In Delay to what above is Fade In delay(3) - Fade Out Delay(1)
Yes. But the situation can not alwys be 'normalized' to fade_out_delay=0 since you can have fade_out_delay > fade_in_delay. But the crossfade settings can be converted to a 'canonical' form. By 'canonical' I mean:

        min(fade_out_delay, fade_in_delay) = 0

A picture in the manual would really help to understand the settings.
Title: Re: Crossfade setting "Fade In Delay"?
Post by: Febs on September 29, 2006, 10:57:38 PM
A picture in the manual would really help to understand the settings.
We await your patch!

In all seriousness, the reason this is not well explained in the manual is because at the time I wrote the crossfade section of the manual, (1) I didn't understand those settings, and (2) there was talk of simplying the settings so I didn't spend much time trying to understand them.  The simplification of the settings never happened, and I agree that the description in the manual is inadequate.   I have had virtually no time recently to devote to Rockbox (don't you hate it when RealLife gets in the way?) so if anyone would like to take a stab at re-writing this section or providing an appropriate picture, that would be great.
Title: Re: Crossfade setting "Fade In Delay"?
Post by: pabouk on September 30, 2006, 05:41:45 AM
Unfortunately I did not read the mentioned thread http://forums.rockbox.org/index.php?topic=3178.0 in May because I do not use crossfading but I would like to say that the current way of configuring it with four parameters is really too complicated and confusing.

I have independently thought of the same idea like the one mentioned in the thread. The three parameters:
* fade in duration
* fade out duration
* overlap
would be much more easy to understand and configure. What do you think? In addition - negative overlap could easily be used for setting pause between tracks (when implemented).