If you're interested in using Python for music, whether that's algorithmic composition, computational music theory, or musicology, you've doubtless encountered music21. It's great, but can be a bit prickly. MIT has a great Open Courseware course with music21's creator, Michael Scott Asato Cuthbert, and it's really great! (Yes, that was the third time I said 'great' and that was the fourth.)

#python #algorithmicComposition #musicTheory #music21 #great #fifth

https://ocw.mit.edu/courses/21m-383-computational-music-theory-and-analysis-spring-2023/

Computational Music Theory and Analysis | Music and Theater Arts | MIT OpenCourseWare

This course presents major approaches to computational music theory and musicology in the symbolic (score-based) domain. It covers algorithms for music theory, encoding, corpus studies, musical search and similarity, feature extraction and machine learning, music generation, and computational music perception. Other topics include repertory access and computational bias. Programming assignments are in {{% resource_link "df43b258-7896-415a-a0f3-2ee18c498fa8" "Python" %}} using the MIT-created {{% resource_link "078ed66c-bf67-4c1b-adcd-caf5cc0c4c0e" "music21 toolkit." %}}

MIT OpenCourseWare

I've been using and refining my ear training app, and here is the lasted version and what I've learned.

The good news is my interval recognition now sucks somewhat less. 💪 #python #jupyter #music21

https://naomiceder.substack.com/p/diy-ear-training-with-python-and-2d5

https://www.naomiceder.tech/posts/ear_training2/

DIY Ear training with Python and Music21, part 2

Having a basic ear training app (as described in part 1) working, I started to use it.

Notes and Stories

I've just lost half an afternoon playing with #Music21, a #Python toolkit from #MIT for Computational Musicology. I've barely scratched the surface so far: I had a vague notion of doing something like this, but Music21 is way beyond what I imagined. You can analyse and manipulate existing music, or create whole structured pieces from scratch as calculated objects (notes, chords etc.) and export the score. Keys and scales are next on the agenda.

https://web.mit.edu/music21/

music21: a Toolkit for Computer-Aided Musicology

I coded a melody generator (right hand) and an accompaniment generator (left hand) that can create nice random music pieces. For instance, this random sample in C major https://soundcloud.com/user-512016957-418252282/arvo-ensemble-009 #MastoArt #GenerativeMusic #music21 #Python
Arvo ensemble 009

A very loose random walk composed in Python and music21. Let's call it a silly walk. ;)

SoundCloud
🎶 Poursuite entre les conteneurs
Moi pieds nus
Qui te traquait
Moi tout de nerfs
Traqué
Qui regarde la nacre
Au centre de ta terreur
Ma main dans ta pince
#music21 #MastoArt
https://soundcloud.com/user-512016957-418252282/arvo-ensemble-004
Arvo ensemble 004

Listen to Arvo ensemble 004 by motife #np on #SoundCloud

SoundCloud
Have you used MIT's #music21? Want to share what you thought of it?