>Bladesong ends early if you use two hands to make an attack with a weapon.
>Bladework. Whenever you attack with a weapon with which you have proficiency, you can use your Intelligence modifier for the attack and damage rolls instead of using Strength or Dexterity.
>Song of Victory. After you cast a spell that has a casting time of an action, you can make one attack with a weapon as a Bonus Action.
!!! Gunslinging or Hand Crossbow Bladesinger is completely possible now! The only thing is you still can't use a ranged weapon as a Spellcasting Focus for your Wizard spells, but you could just sidearm whatever melee weapon you want when you want to cast a Material component spell.

For peak comedy- Gun-using Bladesinger Wizards who got Martial Weapons from a feat or multiclass should sidearm a Greatsword or Pike to hold in their off hand to cast with.