The second argument is a similar string giving note metadata. For example, a rest followed by a sequence of notes might be given by notes = "r a2 c3 f3 d3 a3 f3". Integers are appended to indicate the octave number so that the pitch is unique. For chords, just remove spaces to indicate simultaneous notes. The first argument to phrase is a string describing notes of a specific pitch (or rests: “r”), separated in time by spaces. Think of it as the smallest piece of musical structure you intend to string together.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |