Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove abjad.play() #739

Closed
trevorbaca opened this issue Jul 9, 2016 · 4 comments
Closed

Remove abjad.play() #739

trevorbaca opened this issue Jul 9, 2016 · 4 comments
Assignees

Comments

@trevorbaca
Copy link
Member

Modern version of OS X no longer play MIDI files. That is, modern versions of neither iTunes nor QuickTime Player support MIDI playback. This probably reflects Apple's decision to move away from MIDI altogether. However, MIDI playback will always be important for a portion of our user base.

What's the recommended solution for MIDI playback on Modern Macs? Through a GUI it's probably Garage Band. And Timidity is a good option from the Terminal. Homebrew makes Timidity installation easy:

brew install timidity

Commandline MIDI playback is then as easy as timidity test.midi.

All of this works fine. But there appears to be a problem on our side because play(note) seems always to open QuickTime Player. Even when ~/.abjad/abjad.cfg contains a setting like midi = /usr/local/bin/timidity.

So the purpose of this ticket is to debug ~/.abjad/abjad.cfg MIDI settings and make sure that play() continues to work.

@trevorbaca
Copy link
Member Author

Still valid in June 2017.

@trevorbaca
Copy link
Member Author

Leaving open in January 2019.

@trevorbaca trevorbaca self-assigned this Mar 2, 2021
@trevorbaca trevorbaca changed the title Check abjad.cfg MIDI settings Remove abjad.midi() Oct 17, 2021
@trevorbaca
Copy link
Member Author

My preferred way of going forward is to remove abjad.play(). Users who want MIDI output can easily build an abjad.LilyPondFile object with an abjad.Block("midi") inserted in the location LilyPond requires.

@trevorbaca trevorbaca changed the title Remove abjad.midi() Remove abjad.play() Oct 17, 2021
@jgarte
Copy link
Contributor

jgarte commented Dec 14, 2021

My preferred way of going forward is to remove abjad.play(). Users who want MIDI output can easily build an abjad.LilyPondFile object with an abjad.Block("midi") inserted in the location LilyPond requires.

Anything that reduces the lines of code sounds good to me :)

I also wouldn't mind using abjad.Block("midi") instead of abjad.play(). That sounds like an elegant solution.

trevorbaca added a commit that referenced this issue Feb 21, 2022
trevorbaca added a commit that referenced this issue Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants