Downloads
release
dev builds
extras
themes
Documentation
manual
wiki
device status
Support
forums
mailing lists
IRC
Development
bugs
patches
dev guide
Search
Donate
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Welcome to the Rockbox Technical Forums!
Rockbox Technical Forums
Support and General Use
Audio Playback, Database and Playlists
Crossfade settings
« previous
next »
Print
Pages: [
1
]
Author
Topic: Crossfade settings (Read 8720 times)
Chill
Member
Posts: 36
Crossfade settings
«
on:
March 26, 2006, 10:55:34 AM »
Tell me I'm stupid, but I don't understand all of the crossfade settings. I've checked previous posts and not found an explanation that clears it up completely. So, since the wiki/manual hasn't yet caught up with this feature, I thought I'd ask.
'Fade in duration' and 'Fade out duration' make sense - these must describe the time between the start of the fade and the point where either full or zero volume is reached respectively.
'Fade in delay' could be the delay between the start of fade out and the start of fade in. But if so, then what is 'Fade out delay'?
I can't see how there are more than 3 independent variables here. Wouldn't an 'Overlap' setting, together with the two 'durations' above, cover every eventuality, and be more intuitive?
What have I missed?
Chris
Logged
Mmmm
Developer
Member
Posts: 922
Re: Crossfade settings
«
Reply #1 on:
March 26, 2006, 11:48:17 AM »
Fade in delay 1
Fade out delay 0
this would mean 1 second after fade out starts, fade in starts
-----------------------------------------------------------------
Fade in delay 0
Fade out delay 1
this would mean 1 second after fade in starts, fade out starts
-------------------------------------------------------------------
Fade in delay 1
Fade out delay 1
Following the same logic this would be the same as
Fade in delay 0
Fade out delay 0
But I'm not sure....
--------------------------------------------------------------------
and if i set
Fade in duration 0
Fade out duration 0
Fade in delay 0
Fade out delay 1
then the tracks will overlap by 1 second
Which as far as I can tell leaves the crossfade mode totally redundant!
--------------------------------------------------------------------------
Apparently Slasheri is the only one to have an insight to this mystery but he keeps very quiet about it!
But I agree just having one fade in delay (which also includes -ve values) would do the same and get rid of the millions of redundant settings....unless of course I misunderstand the whole thing
«
Last Edit: March 26, 2006, 12:02:36 PM by Mmmm
»
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox
Chill
Member
Posts: 36
Re: Crossfade settings
«
Reply #2 on:
March 26, 2006, 01:46:00 PM »
Thanks Mmmm - that seems to make sense. If that's all there is to it, then I still think that both of the 'delay' options could be removed and replaced with a single 'Overlap' setting, which would specify the total time between the start of Fade In and the end of Fade Out.
Would that preclude any configurations that are possible with the current options?
Chris
Logged
dropandhop
Member
Posts: 79
Re: Crossfade settings
«
Reply #3 on:
March 26, 2006, 02:40:44 PM »
are these settings going to make their way into wiki or the manual?!
thanks for the great description on this one Mmmm
!
-a
Logged
Febs
Member
Posts: 2701
Re: Crossfade settings
«
Reply #4 on:
March 27, 2006, 12:52:57 PM »
Yes, they'll be in the next draft of the manual. As for the wiki, feel free to update it.
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way
Please do not send me support questions via PM.
Falco98
Member
Posts: 166
Re: Crossfade settings
«
Reply #5 on:
May 05, 2006, 09:11:51 AM »
Ok, I've started drawing it out on paper and it's starting to make some sense to me.
The reason for the 2 different "delay" settings might be so that someone can do one or another desired effect (well duh).. but it's more flexible than just one "overlap" setting, as far as I can tell.
By default, I assume (and would like some solid input here from a dev), Fade-out and Fade-in both start at exactly the same time. That is, whatever "duration" you've set for each, the second the old song starts fading away, the new one starts fading in. I'll assume this is true just for now...
So let's say you want a nice long (7s) fadeout on song A. But you also want a quick fadein for song B underneath that (let's say 1s). The problem is, the last 6 seconds of song A will be heard underneath a full-volume song B, which only took 1 second to fade in.
So let's use fade-in delay to help us out. Let's say we want the old song (A) to be nearly done by the time the new one (B) comes in. If we set the fade-in delay to 5, then A will fade out for 5 seconds before B fades in (starts?), and the overlap will be 2 seconds. That seems pretty reasonable (again i need confirmation from a developer).
Another scenario: We want B to fade in slowly underneath A, and then A to suddenly drop out. But if we set fade-in duration to 7 and fade-out druation to 1, the effect (devs?) will be that A suddenly fades out while we're still waiting around for B to slowly fade in. So we set the fade-out delay to, let's say, 5 again: now B will slowly pick up underneath A for ~5 seconds, wherein A will drop out just before B reaches full volume. That seems pretty acceptable.
The one thing I think others are right about is, if both delays are set to the same value, they cancel each other out. I'd even go so far as to guess that if one is 4 and the other is 2, they may as well be 2 and 0... but i'm not sure. Again it'd be nice if a dev could lend some clarification.
Logged
Mmmm
Developer
Member
Posts: 922
Re: Crossfade settings
«
Reply #6 on:
May 05, 2006, 09:41:17 AM »
Yep...I think you've pretty much got it there!
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox
Chill
Member
Posts: 36
Re: Crossfade settings
«
Reply #7 on:
May 05, 2006, 01:34:34 PM »
Falco98
There's nothing like a diagram, or some examples like that, to make a clear explanation - thanks.
I still maintain that crossfade only requires 3 parameters to fully describe it, and therefore that one of the four we have now is redundant. All we need to specify is how long song A takes to fade out, how long song B takes to fade in, and how much they should overlap.
So in your scenario A, we could uniquely describe the desired effect with:
Fade Out Duration = 7s
Fade In Duration = 1s
Overlap = 2s
Equally, scenario B could be uniquely described with:
Fade Out Duration = 1s
Fade In Duration = 7s
Overlap = 6s
I can't think of a scenario where the intended effect could not be specified with these three parameters - anyone?
Personally, even though I understand the current options now, I still think they are not intuitive - the option of 4 parameters leads to confusion, like your final example for instance. My own preference would be for a three parameter setup in the GUI. I can well imagine that the 4 parameters might be useful/necessary in the crossfade code, but if that is the case, then there must be a simple algorithm that could calculate Fade In Delay and Fade Out Delay given these three parameters. I know - if I'm so keen on this, why don't I write a patch?! Well that's another good question...
EDIT:
Actually, the relationship between Fade Out Delay (call it FODe) and Fade In Delay (FIDe) is simple:
FODe = -1 * FIDe. If one is negative, multiply it by -1 and call it the other one.
The algorithm to calculate them from the Overlap (OL), Fade In Duration (FIDu) and Fade Out Duration (FODu) is also simple (in fact, only the OL and *EITHER* FIDu or FODu are needed to calculate both of the delays). In terms of OL and FODu, the algorithms for FIDe and FODe are:
FIDe = FODu - OL
and therefore FODe = OL - FODu
I've tried this on both of your examples Falco98, as well as a couple of other examples: one where there is a silent gap between the tracks (OL = -ve) and one where the OL is greater than the sum of the durations (ie the both tracks are at full volume for a period). It works in all cases (until someone shows me the case that I've overlooked of course!)
«
Last Edit: May 05, 2006, 01:45:30 PM by Chill
»
Logged
Falco98
Member
Posts: 166
Re: Crossfade settings
«
Reply #8 on:
May 06, 2006, 09:01:33 PM »
I suppose you're right, though just having a "negative" overlap might be confusing to users (and may be very difficult to program, but also maybe not). But all that would do in the program is convert back to the FIDe and FODe values, so from the programmers' point of view, there's no real good reason to do so :-P
Logged
hhannah
Guest
Re: Crossfade settings
«
Reply #9 on:
December 06, 2007, 08:55:04 PM »
Man all this REALLY did help me out! THANKS!!! Falco98's post (Posted on: May 05, 2006, 09:11:51 AM) really puts it clear. The manual still doesn't explain much, and the subject is not trivial at all, so it would be great if somebody would put a nice explanation like this on it, and (I totally agree Chill)... A diagram and a few examples... please!
Logged
Print
Pages: [
1
]
« previous
next »
Rockbox Technical Forums
Support and General Use
Audio Playback, Database and Playlists
Crossfade settings
SMF 2.0.19
|
SMF © 2021
,
Simple Machines
Rockbox Privacy Policy
XHTML
RSS
WAP2
Page created in 0.072 seconds with 21 queries.