Skip to content

juanstiza/forte.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forte.js

Version 0.0.4

API

Pitch Class

var pc = forte.PitchClass.withInt(7);

pc.toString();
//returns '7';
pc.toString('latin');
//returns 'Sol'
pc.toString('american');
//returns 'g'

pc.getIntValue();
//returns 7

Pitch Class Set

Create new Pitch Class Set

var pcs = forte.PitchClassSet.withArray([0,4,7,8]);

Get prime form

pcs.getPrimeForm().toString();
//returns '(0,1,4,8)'

Get prime inversion

pcs.getPrimeInversion().toString();
//returns '[0,3,4,8]'

Get interval vector

pcs.getIv().toString();
//returns '<101310>'

About

Javascript API depicting Allen Forte's theory

Resources

Stars

Watchers

Forks

Packages

No packages published