Python music21.duration.Duration()

사용 버전: Python 3.6.8
사용 프로그램: Atom 1.38.1 x64


파이썬 music21.duration.Duration()에 대해서 알아보겠습니다.

괄호 안에는 'type', 'dots' 속성이 들어갑니다.

music21.duration.Duration()은 음의 박을 나타냅니다.
기준은 4/4박입니다.


type 속성에는 'duplex-maxima', 'maxima', 'longa', 'breve', 'whole', 'half', 'quarter', 'eighth', '16th', '32nd', '64th', '128th', '256th', ..., '2048th'까지 들어갈 수 있습니다.

dots 속성에는 보통 4까지 쓸 수 있습니다.


type 속성에 온음표인 'whole'을 보겠습니다.








4 박으로 나옵니다.




dots 속성을 사용해보겠습니다.





점4분음표로 1.5 박이 나옵니다.



바로 숫자를 사용할 수도 있습니다.








끝.


카테고리: Python, music21

댓글

이 블로그의 인기 게시물

Python urllib.parse.quote()

KiCad 시작하기 4 (기존 회로도 수정 및 추가)

Android Compose Coil library

KiCad 시작하기 1 (회로도 만들기)

Forensics .pyc 파일 .py로 복구하기

Android Notification with Full Screen

iOS Swift callAsFunction

iOS Error Undefined symbol Testing.Trait

황전 휴게소(순천 방향) 추천 메뉴

Android Compose automation for getting localized images to use on Play Store app image