This textbook is a first introduction to mathematics for music theorists, covering basic topics such as sets and functions, universal properties, numbers and recursion, graphs, groups, rings, matrices and modules, continuity, calculus, and gestures. It approaches these abstract themes in a new way: Every concept or theorem is motivated and illustrated by examples from music theory (such as harmony, counterpoint, tuning), composition (e.g., classical combinatorics, dodecaphonic composition), and gestural performance. The book includes many illustrations, and exercises with solutions.