Code Monkey home page Code Monkey logo

musicwithchatgpt's Introduction

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

musicwithchatgpt's People

Contributors

olaviinha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

musicwithchatgpt's Issues

Issues converting ABC notation to midi file

Hi, first of all great work and interesting workflow you have mentioned here. I have a question. I tried to download the midi file from .abc to .midi notebook but it resulted in an error . The .abc notation is here

M:4/4 L:1/16 K:Gm G,4 | G,4 | G,4 | G,4 | G,4 | G,4 | G,4 | G,4 | |: B,2B,2B,2B,2 G,2G,2G,2G,2 | B,2B,2B,2B,2 G,2G,2G,2G,2 | B,2B,2B,2B,2 G,2G,2G,2G,2 | B,2B,2B,2B,2 G,2G,2G,2G,2 :|
However it lead to the following issue -

2023-04-09 00:12:09 No song title found, using: nixman
4.84 January 20 2023 abc2midi
Error in line-char 8-0 : No tune processed. Possible missing X: field

2023-04-09 00:12:10 Error saving MIDI.

Do you know why it happened so ?

How to Start it?

Hello, how i can start this code in cmd?
i have try with ./ezchords (notes) but not work

thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.