add fade in, fade out and smooth edges in sample editor