
    3j                    ~    d dl mZ d dlZdZ G d dej                        Zedk(  rd dlZ ej                  e       yy)    )annotationsNTc                      e Zd Zd Zd Zd Zd Zd Zd Zd Z	d Z
d	 Zd
 Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Z d Z!d  Z"d! Z#d" Z$d# Z%d$ Z&d% Z'd& Z(y')(Testc                     y N selfs    F/DATA/.local/lib/python3.12/site-packages/music21/humdrum/questions.pyxtest001zTest.xtest001           c                     y)z[
        Align and display all the bass lines for all the variations concurrently.
        Nr   r	   s    r   xtest004zTest.xtest004c        	r   c                     y)zD
        Assemble syllables into words for some vocal text.
        Nr   r	   s    r   xtest011zTest.xtest011   r   r   c                     y)a   
        Calculate changes of listeners' heart-rate from physiological data.

        We'll do something different from the Humdrum example which assumes you already
        have the data in spines.  Let's suppose you have the data in a Google Spreadsheet
        that has two columns: time and heart-rate.  We load the data in from the internet.
        We then convert the heart-rate data
        to a delta value (that is, the change since the last heart-rate measurement).
        Next we add time data to each offset in our score; we then add an editorial attribute
        of "heart-rate" to the note just preceding the heart-rate measurement.
        We can then see if heart-rate is related to the dissonance level of the preceding
        10 seconds.
        Nr   r	   s    r   xtest013zTest.xtest013   s     	r   c                     y)z<
        Calculate harmonic intervals in semitones.
        Nr   r	   s    r   test016zTest.test016"  r   r   c                     y)z
        Calculate melodic intervals not including intervals
        between the last note of one phrase and the first note of the next phrase.
        Nr   r	   s    r   test017zTest.test017(      
 	r   c                     y)zU
        Calculate pitch-class sets for melodic passages segmented by rests.
        Nr   r	   s    r   test019zTest.test0195  r   r   c                     y)z]
        Calculate pitch-class sets for melodic passages segmented by slurs/phrases.
        Nr   r	   s    r   test020zTest.test020;  r   r   c                     y)ze
        Calculate the difference in duration between the recapitulation and the exposition.
        Nr   r	   s    r   test021zTest.test021A  r   r   c                     y)z=
        Calculate the interval vector for some set.
        Nr   r	   s    r   test022zTest.test022G  r   r   c                     y)z9
        Calculate the normal form for some set.
        Nr   r	   s    r   test023zTest.test023M  r   r   c                     y)z8
        Calculate the prime form for some set.
        Nr   r	   s    r   test024zTest.test024S  r   r   c                     y)zd
        Calculate the proportion of sonorities where both the oboe and bassoon are active.
        Nr   r	   s    r   test025zTest.test025Y  r   r   c                     y)z?
        Change all pizzicato marks to spiccato marks.
        Nr   r	   s    r   test026zTest.test026_  r   r   c                     y)zN
        Change all up-stems in measures 34 through 38 to down-stems.
        Nr   r	   s    r   test027zTest.test027e  r   r   c                     y)zM
        Classify cadences as either authentic, plagal or deceptive.
        Nr   r	   s    r   test028zTest.test028k  r   r   c                     y)z^
        Classify flute fingering transitions as either easy, moderate, or difficult.
        Nr   r	   s    r   test029zTest.test029q  r   r   c                     y)zY
        Classify phonemes in a vocal text as fricatives, nasals, plosives, etc.
        Nr   r	   s    r   test030zTest.test030w  r   r   c                     y r   r   r	   s    r   test031zTest.test031}  r   r   c                     y r   r   r	   s    r   test032zTest.test032  r   r   c                     y r   r   r	   s    r   test033zTest.test033  r   r   c                     y r   r   r	   s    r   test034zTest.test034  r   r   c                     y)zt
        Compare the average overall dynamic level between the
        exposition and development sections.
        Nr   r	   s    r   test035zTest.test035  r   r   c                     y)z
        Compare the estimated keys for the 2nd theme in the
        exposition versus the 2nd theme in the recapitulation.
        Nr   r	   s    r   test036zTest.test036  r   r   c                     y)zq
        Compare the first phrase of the Exposition with
        the first phrase of the Recapitulation.
        Nr   r	   s    r   test037zTest.test037  r   r   c                     y)zQ
        Compare the number of syllables in the first and second verses.
        Nr   r	   s    r   test038zTest.test038  r   r   c                     y)zv
        Contrast the sonorities that occur on the
        first versus the third beats in a waltz repertory.
        Nr   r	   s    r   test039zTest.test039  r   r   c                     y)zE
        Count how many measures contain at least one trill.
        Nr   r	   s    r   test040zTest.test040  r   r   c                     y)z}
        Count the number of ascending major sixth
        intervals that occur in phrases that end on the dominant.
        Nr   r	   s    r   test041zTest.test041  r   r   c                     y)z9
        Count the number of barlines in a work.
        Nr   r	   s    r   test042zTest.test042  r   r   c                     y)z=
        Count the number of closed-position chords.
        Nr   r	   s    r   test043zTest.test043  r   r   c                     y)zH
        Count the number of harmonic functions in each phrase.
        Nr   r	   s    r   test044zTest.test044  r   r   c                     y)ze
        Count the number of notes in a work that
        belong to the same whole-tone set.
        Nr   r	   s    r   test045zTest.test045  r   r   c                     y)z@
        Count the number of notes in measures 8 to 16.
        Nr   r	   s    r   test046zTest.test046  r   r   c                     y)z>
        Count the number of notes in the exposition.
        Nr   r	   s    r   test047zTest.test047  r   r   c                     y)z9
        Count the number of phrases in a score.
        Nr   r	   s    r   test048zTest.test048  r   r   c                     y)zR
        Count the number of phrases that begin on the subdominant pitch.
        Nr   r	   s    r   test049zTest.test049  r   r   c                     y)zA
        Count the number of phrases in the development.
        Nr   r	   s    r   test050zTest.test050  r   r   N))__name__
__module____qualname__r   r   r   r   r   r   r   r   r    r"   r$   r&   r(   r*   r,   r.   r0   r2   r4   r6   r8   r:   r<   r>   r@   rB   rD   rF   rH   rJ   rL   rN   rP   rR   rT   rV   rX   rZ   r   r   r   r   r      s    dXNr   r   __main__)	
__future__r   unittest_DOC_IGNORE_MODULE_OR_PACKAGETestCaser   r[   music21mainTestr   r   r   <module>re      sH    "  $ ^8 ^b zGT r   