Skip to main content


Ok. I've fixed up the #Python #Music arpeggiation and am testing it with github.com/ology/Music/blob/ma…

Here is the transcription of the zany whole-tone wackiness:

1/2

in reply to Gene Boggs

how many things do I have to click on in order to hear sounds instead of seeing this thing which I can almost, but not really, read
in reply to Glyph

@glyph Hmmmm. I will try this on my Windows and Linux boxes to see what happens. I've been developing on my Mac...

The `s.show()` code opens in MuseScore on my Mac by default. If that is changed to `s.show('midi')`, it opens in GarageBand. This can be set to Lillypond and Logic Pro, with the music21 configuration, which I forget but will find out about again.

in reply to Gene Boggs

I'm on a mac, but I get `ModuleNotFoundError: No module named 'chord_progression_network'` when running this
in reply to Glyph

Ohhhhhh. It is a script and requires that the imported packages are installed.

In a virtual environment, or system-wide, do this:
```
pip install chord_progression_network music_melodicdevice music21 pychord

python arpeggiate.py
```

This entry was edited (1 month ago)
in reply to Gene Boggs

you should stick that in a requirements.txt, maybe a pyproject.toml, mabye with some pins 😀
in reply to Glyph

@glyph A reqs or toml file for each script? Hmm I have to learn what that entails. Not sure what "pins" are yet.
in reply to Gene Boggs

I created a file called requirements.in that contains

```
chord_progression_network
music_melodicdevice
music21
pychord
```

and then to "pin" these, I ran `pip-compile --strip-extras --upgrade --no-emit-index-url`, and got this:

gist.github.com/glyph/8c2ac800…

so if I ever `pip install` these again, I will get the *exact* same versions that I got this time. also known as a "lockfile"

in reply to Gene Boggs

uh-oh:

The application /Applications/MuseScore 3.app/Contents/MacOS/mscore cannot be opened for an unexpected reason, error=Error Domain=NSCocoaErrorDomain Code=260 "The file “mscore” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///Applications/MuseScore%203.app/Contents/MacOS/mscore, NSFilePath=/Applications/MuseScore 3.app/Contents/MacOS/mscore, NSUnderlyingError=0x89ac40210 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

Unknown parent

mastodon - Link to source
Gene Boggs
@glyph MuseScore 4 gave me trouble somwhow. So I also installed MuseScore 3. Not sure why now, though. YMMV
in reply to Gene Boggs

@glyph I remember now: music21 wouldn't easily open 4. Maybe I'm a dork...