Skip to content

A very simple web service to provide the unique prime forms of Pitch-Class Sets as listed in Appendix 1 of Allen Forte's The Structure Of Atonal Music as a REST api.

Notifications You must be signed in to change notification settings

somecho/all-the-sets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

All The Sets

A very simple web service to provide the unique prime forms of Pitch-Class Sets as listed in Appendix 1 of Allen Forte's The Structure Of Atonal Music as a REST api.

Usage

This service is hosted on Render: https://all-the-sets.onrender.com and can be queried using http GET requests.

API

route
/ returns the complete list of prime forms
/set/:name Where name is the classification that Allen Forte uses, for example 3-3 or 5-1
/size/:size Returns all the prime forms of Pitch-Class sets with a given size
/pcs/:pcs Returns the name of the matching prime form. Example /pcs/0,1,2,3,4,7 will return 6-z36
/interval-vector/:vector Returns every PC set matching the given interval vector. Example: /interval-vector/111000 will return 3-2

Running locally

After cloning this repo

npm install && node server.js

About

A very simple web service to provide the unique prime forms of Pitch-Class Sets as listed in Appendix 1 of Allen Forte's The Structure Of Atonal Music as a REST api.

Topics

Resources

Stars

Watchers

Forks