tonalitytools.make_all_notes_in_ascending_and_descending_diatonic_scale

abjad.tools.tonalitytools.make_all_notes_in_ascending_and_descending_diatonic_scale.make_all_notes_in_ascending_and_descending_diatonic_scale(key_signature=None)[source]

New in version 2.0.

Construct one up-down period of scale according to key_signature:

abjad> from abjad.tools import tonalitytools
abjad> score = tonalitytools.make_all_notes_in_ascending_and_descending_diatonic_scale(contexttools.KeySignatureMark('E', 'major'))
abjad> f(score)
\new Score \with {
    tempoWholesPerMinute = #(ly:make-moment 30 1)
} <<
    \new Staff {
        \key e \major
        e'8
        fs'8
        gs'8
        a'8
        b'8
        cs''8
        ds''8
        e''8
        ds''8
        cs''8
        b'8
        a'8
        gs'8
        fs'8
        e'4
    }
>>

Changed in version 2.0: renamed construct.scale_period() to tonalitytools.make_all_notes_in_ascending_and_descending_diatonic_scale().

Changed in version 2.0: renamed leaftools.make_all_notes_in_ascending_and_descending_diatonic_scale() to tonalitytools.make_all_notes_in_ascending_and_descending_diatonic_scale().

This Page