asiekierka / nitrotracker

A Fasttracker II style tracker for the Nintendo DS
71 stars 5 forks source link

Crossfade option for sample editor (0xtob/#45) #66

Open asiekierka opened 1 year ago

asiekierka commented 1 year ago

When you highlight over one of the loop points, a button appears to let you smoothly fade the selection over the other loop point to get a seamless loop. I think this feature was included in the original FastTracker II...

There is a function called x-fade in FT2 sample editor. It mixes wave data around loop points so that you could achieve a click-free looping. However I don't know the more precise rules of the algorithm.

You can for example load a sample, create 'forward' loop, select a small area around the first loop point and press 'x-fade', and see how it mixes the wave data around loop points.

deadpahn commented 1 year ago

"so that you could achieve a click-free looping"

This depends on the zero crossing, a simple fade in at the beginning of the sample and fade out on the end (but very small) is a good work around to this (did it all the time in FT2 back in the day). Not to invalidate the persons suggestion, more of a "just in case you didn't know how to stop loops from clicking". You gotta make sure the star and end of the loop touch at the same points, usually a simply fade in/out makes it 0 creating seamless looping (typically).