Even with smokeless barrels, the longer the barrel, the higher the velocity. 22LR's are a bit different. In .22's and past about 26" of barrel, there will actually start to be a drop in velocity as there isn't enough gas produced by that little case to keep expanding in the tube over the friction of the bullet. Modern smokeless centrefires will gain speed to as long a barrel as you can purchase for them - about 30" in .33cal and smaller. The larger .50's for benchrest shooting are longer, of course. The greater the capacity of the case,the longer the barrel can be and still gain speed.
In muzzleloaders, much the same situation is evident. The more powder you put in, the higher the speed. Now, if you restricted your charge to say 30gr. in a .50, there would be a point where increased barrel length would decrease velocity. If you reverse this to say a 26" barrel, each increase in powder charge will increase speed until you don't want to put any more in - slightly. A 50" barrel will give higher speed than will a 30" or 26" barrel - absolutely - if you feed it appropriately.
My own .69 rifle, with a 30" barrel proved higher speed with increased charges all the way from 82gr. to 365gr. Increasing the charge from 225gr.(1,700fps) to 365gr. (1,770fps) increased the speed only 70fps, but it did increase it. This is due to the increased 'load' (pressure) causing more of the charge to burn which produces more gas which propells the ball faster. Had I increased the charge further, I am certain that with every increasing charges, there would come a charge which would cause a reduced velocity, but that would not be a feasible charge to shoot.