Previous topic

music21.tempo

Next topic

music21.test.mptCurses

Table Of Contents

Table Of Contents

This Page

music21.test.dedent

Functions

music21.test.dedent.dedent(string)
>>> from music21.test.dedent import dedent
>>> msg = '    Hello\n    There\n        My friend\n    Hi!'
>>> print(msg)
    Hello
    There
        My friend
    Hi!
>>> out = dedent(msg)
>>> print(out)
Hello
There
    My friend
Hi!