scamp_extensions.pitch package¶
Subpackage containing pitchrelated extensions. These include abstractions for intervals and scales, as well as utilities for unit conversions.
Modules:
Module containing classes for flexibly representing musical scales. 

Module containing pitchrelated utility functions, such as those that convert between midi and hertz. 
PublicFacing API (result of import *):

Represents an interval between two pitches. 

Class representing a scale starting on a specific pitch. 

A ScaleType represents the intervallic relationships in a scale without specifying a specific starting point. 

Converts a Bark number to its corresponding frequency in hertz. 

Given a number of cents, convert it to a corresponding frequency ratio. 

Converts a frequency in hertz to a (floating point) Bark number according to the psychoacoustic Bark scale (https://en.wikipedia.org/wiki/Bark_scale). 

Given a frequency in hertz, returns the corresponding (floating point) MIDI pitch. 
Given a list of microtonal (floatingpoint) MIDI pitches, finds an efficient map from keyboardfriendly (integer) pitches to the original microtonal pitches. 


Given a MIDI pitch, returns the corresponding frequency in hertz. 

Given a frequency ratio, convert it to a corresponding number of cents. 