Tessitura¶
tessitura
¶
Calculate the tessitura based on the standard deviation of pitch height.
In Von Hippel's original paper, tessitura was defined as the pitch distance from the mean, scaled to number of standard deviations. Note that the mean and standard deviation here are defined over all the notes in the score.
The paper analyzes the tessitura constraint through "scrambled twins," i.e. randomly generated melodies that have the same pitch distribution (and number of notes) as the original melody. This is done for two following reasons: (1) The set of all scrambled twins as a sample space is agnostic to the original melody's temporal pitch structure (i.e. features that are perceived specific to the original melody's sequence and tempo alignment). (2) The sample space of interval distributions mapped from the sample space of scrambled twins is correlated to the pitch distribution extracted from the original melody. Thus, by measuring the interval distribution from scrambled twins, we can measure the effect of the tessitura constraint on the original melody.
This function ports the 'tessitura' function from miditoolbox. However, the original tessitura implementation in miditoolbox only takes a metric proportional to the median of the currently seen portion of the score and the currently accumulating standard deviation. If miditoolbox behavior is desired, just set the miditoolbox_compatible boolean to true.
(1) The annotation for the notes in the score on the paper version is "tessitura" (2) The annotation for the backwards compatible version is "tessitura_mtb"
Parameters:
-
score(Score) –A monophonic and non-empty Score object.
-
miditoolbox_compatible(bool, default:True) –A boolean indicating whether miditoolbox compatible behavior is desired.
Returns:
-
Score | None–An annotated score where each note is annotated with the given tessitura values. Or None if the score does not satisfy the preconditions.
References
[1] von Hippel, P. (2000). Redefining pitch proximity: Tessitura and mobility as constraints on melodic interval size. Music Perception, 17 (3), 315-327.
Source code in amads/melody/tessitura.py
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 | |