Multirank and classical theta functions