Comments (3)
Hmm I assume that contained line breaks. It seems to be missing some fields, as also indicated by the error. ChatGPT does mistakes sometimes, but it's also pretty good at fixing its own errors: just continue discussion saying that you "tried to convert it to MIDI but got the following error: [paste error here]" βΒ very likely ChatGPT will give you a fixed version.
I just asked an ABC notation example with a simple melody and got this (note more fields):
X:1
T:Twinkle Twinkle Little Star
M:4/4
L:1/4
Q:1/4=120
K:C
G2 G2 A2 A2 | B2 B2 G2 |
F2 F2 E2 E2 | D2 D2 C2 |
G2 G2 F2 F2 | E2 E2 D2 |
G2 G2 F2 F2 | E2 E2 D2 |
G2 G2 A2 A2 | B2 B2 G2 |
F2 F2 E2 E2 | D2 D2 C2 |
from musicwithchatgpt.
I tried it again but the it could not download as midi file. So the ABC notation i was using was
X:1
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 :|
i get the following
2023-04-11 23:37:59 No song title found, using: noldeb
4.84 January 20 2023 abc2midi
voice mapping:
1
writing MIDI file /content/tmp/noldebmid
Warning in line-char 5-10 : Track 0 Bar 1 has 1 time units while the time signature has 4
Warning in line-char 5-16 : Track 0 Bar 2 has 1 time units while the time signature has 4
Warning in line-char 5-22 : Track 0 Bar 3 has 1 time units while the time signature has 4
Warning in line-char 6-4 : Track 0 Bar 4 has 1 time units while the time signature has 4
Warning in line-char 6-10 : Track 0 Bar 5 has 1 time units while the time signature has 4
Warning in line-char 6-16 : Track 0 Bar 6 has 1 time units while the time signature has 4
Warning in line-char 6-22 : Track 0 Bar 7 has 1 time units while the time signature has 4
2023-04-11 23:37:59 MIDI saved as noldebmid
2023-04-11 23:37:59 Downloading...
However the downloaded file doesnt have .midi extension . I am wondering why so ?
from musicwithchatgpt.
It was because of a typo: file_out = dir_tmp+uniq_id+'mid'
(full stop missing between filename and its extension)
Usually the ABC notation from ChatGPT has a title, in which case the file is named a little differently (no typo), is probably why I never noticed this. Thanks for reporting! This has been fixed now.
You can rename that file from noldebmid
to noldeb.mid
and it should work.
from musicwithchatgpt.
Related Issues (2)
- How to Start it? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from musicwithchatgpt.