olaviinha / MusicWithChatGPT

Tips and tools for writing music with the aid of ChatGPT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Writing music with ChatGPT

Tips and tools for experimenting with writing music with the aid of ChatGPT, and getting its notations as MIDI files.

See video of example usage here.

If you have tips, please share!

Additions to Message ("prompt")

These tips work as addition to your freely formed message to ChatGPT, where you ask for any musical notation. These tips usually result in notation only, meaning the converted MIDI file will be piano-only. Asking ChatGPT to produce notation with different instruments (such as drums) that would translate to MIDI seems hard and prone to failure so far.

Example message: Can you write an emotional sci-fi theme ...

  • in ABC notation?
    Produces a copyable ABC notation block that can be copy-pasted to abc2midi notebook, which will convert it to a MIDI file and provide an instant download. So far this is the best method.

  • chord progression? Please do not add further explanations about the progressions.
    Produces textual chord progression that can be copy-pasted to chords2midi notebook, which will convert it to a MIDI file and provide an instant download. Asking ChatGPT not to add further explanations will prevent having to manually edit the copy-pasted text when using the notebook, as ChatGPT will often mention chords in the explanations, and those chords will also end up in the MIDI files (messing up the intended progression).
    You may also quickly preview and edit provided chord progressions by copy-pasting them to Chords Guru Turbo 100a Deluxe instead (midi export currently offline).

  • to a MIDI file using Python Mido?
    Produces a copyable code block that can be copy-pasted directly to mido2midi notebook and executed, saving a MIDI file (providing ChatGPT did it right).
    Note: you don't have to understand any of the code, all you need to do is copy-paste it.
    Fair warning: this method is prone to failures (sour code from ChatGPT) and generally sounds like more random notation.

You may also want to make your request more specific by adding further instructions to your prompt, such as ...It should be in 110 BPM tempo and A major key. It should have a verse, a bridge and a chorus.

Tools

About

Tips and tools for writing music with the aid of ChatGPT


Languages

Language:Jupyter Notebook 93.3%Language:Python 6.7%