If you already know how to sign the transaction given your input keys, you only need a library that can do BIP32 derivation from the master private key. Several exist, what's your programming language preference?
JavaScript:
bitcoinjs,
bip32.orgJava:
bitcoinjObjective-C:
WaSPV,
CoreBitcoin