The Dance Music Manual and this book are two of the best. This book is a bit dated in the technology it covers but is still a great starting point, working through the creation of some simple beats.