Text-midi Daten konvertieren in Midi Dateien Typ 1

• Jun 20, 2023 - 17:01

ChatGPT 4 is able to generate appealing, high-quality musical compositions.

ChatGPT 4 easily outputs an entire orchestral composition for all instruments in the text form below. Only this text midi data has to be converted into a multi-track midi file type 1.

melody_pitch_duration_data = [
(63, 0.5), (63, 0.25), (65, 0.25), (63, 0.25), (60, 0.25), (63, 0.5), (63, 0.25), (65, 0.25), (63 , 0.25), (60, 0.25), (58, 0.5), (58, 0.25),
(55, 0.25), (58, 0.25), (53, 0.5), (53, 0.25), (55, 0.25), (53, 0.25), (50, 0.25), (53, 0.5), (53 , 0.25), (55, 0.25), (53, 0.25), (50, 0.25),
(58, 0.5), (60, 0.25), (63, 0.25), (60, 0.25), (63, 0.25), (65, 0.25), (65, 0.25), (65, 0.25), (65 , 0.25), (63, 0.25), (60, 0.25), (63, 0.25),
(65, 0.25), (63, 0.25), (60, 0.25), (58, 0.25), (58, 0.25), (58, 0.25), (58, 0.25), (55, 0.25), (58 , 0.25), (53, 0.25), (53, 0.25), (53, 0.25),
(53, 0.25), (50, 0.25), (53, 0.25), (55, 0.25), (55, 0.25), (55, 0.25), (55, 0.25), (53, 0.25), (50 , 0.25), (53, 0.25), (58, 0.25), (58, 0.25),
(60, 0.25), (63, 0.25), (63, 0.25), (63, 0.25), (63, 0.25), (60, 0.25), (63, 0.25), (65, 0.25), (65 , 0.25), (65, 0.25), (65, 0.25), (63, 0.25),
(60, 0.25), (63, 0.25), (65, 0.25), (65, 0.25), (65, 0.25), (65, 0.25), (63, 0.25), (60, 0.25), (58 , 0.25), (58, 0.25), (58, 0.25), (58, 0.25),
(55, 0.25), (58, 0.25), (53, 0.25), (53, 0.25), (53, 0.25), (53, 0.25), (50, 0.25), (53, 0.25), (55 , 0.25), (55, 0.25), (55, 0.25), (55, 0.25),
(53, 0.25), (50, 0.25), (53, 0.25), (58, 0.25), (58, 0.25), (60, 0.25), (63, 0.25), (63, 0.25), (63 , 0.25), (63, 0.25), (60, 0.25), (63, 0.25),
(65, 0.25), (65, 0.25), (65, 0.25), (65, 0.25), (63, 0.25), (60, 0.25), (63, 0.25), (65, 0.25), (65 , 0.25), (65, 0.25), (65, 0.25), (63, 0.25),
(60, 0.25), (58, 0.25), (58, 0.25), (58, 0.25), (58, 0.25), (55, 0.25), (58, 0.25), (53, 0.25), (53 , 0.25), (53, 0.25), (53, 0.25), (50, 0.25),
(53, 0.25), (55, 0.25), (55, 0.25), (55, 0.25), (55, 0.25), (53, 0.25), (50, 0.25), (53, 0.25)
]

Please implement such a conversion tool in musescore 4 based on the official midi specification 2.

At a prompt for a new composition, chatGPT users would then have to refer to Midi specification 2 with all functions and that the individual instruments are output with Midi track (1-16) and Midi instrument no. and number (1-128).

Libraries for converting Midi text to Midi file are available on the Internet (Github etc.).

!pip install numpy
!pip install mido
!pip install midiutil
!pip install music21

A feature that should be of interest to Musescore users as chatGPT's capabilities increase.


Comments

If this is a standard format, then someone has written a converter for it already. If not,. maybe ChatGPT could write one :-). But MuseScore is unlikely to implement its own converters for non-standard formats.

In reply to by Marc Sabatella

Hello,
it's about the standard midi format, if it's in the latest version 2.0.
There is currently no software available separately for converting Text Midi to Type 1 Midi files.
Me and some people who write good music programs themselves, at least have not found any current program.
If you know of one, I would be grateful if you could let me know where it was found.
My request to Musescore is about an extension for the standard Midi format (2.0). The extension should open a text window in which the user can copy the midi text generated by chatGPT, for example. ChatGPT must of course be instructed by the user when making the request that the midi text output must be strictly according to the standard midi definition (track no., instrument no. + name etc.).

Then in the input window there should be a button (convert entered text into a midi file type 1). Musescore can then open this converted midi file and the user can then continue working in Musescore.

This requirement should not be a problem for a professional programmer and it would be nice if this function could be implemented in Musescore as quickly as possible.

Kind regards
Josef Johann Michael

In reply to by Josef Johann Michel

If there is no program available, then probably this thing you are calling "Text MIDI" is not actually a thing - otherwise whoever invented the format or one of its users would surely have provided a converter. If you believe it is a standard in actual use, then keep looking, there would definitely be a converter if so. If it's not a standard, then better to use a format that is.

MuseScore already supports standard MIDI format, which is, again, not a text format. If some other app happens to generate a proprietary format, it's up to the developers of that app to provide converts to standard formats.

In reply to by Marc Sabatella

Hello,

Your argumentation does not take into account the current AI development and the resulting possibilities.

chatGPT is in worldwide discussion for all sorts of tasks. It is amazing that chatGPT can also generate surprisingly good musical compositions. But you have to make very structured specifications in the prompt for the request at chatGPT and make a number of statements about musical qualities.
ChatGPT 4 easily outputs an entire orchestral composition for all instruments in the text form below. Only this text midi data has to be converted into a multi-track midi file type 1.

melody_pitch_duration_data = [
(63, 0.5), (63, 0.25), (65, 0.25), (63, 0.25), (60, 0.25), (63, 0.5), (63, 0.25), (65, 0.25), (63 , 0.25), (60, 0.25), (58, 0.5), (58, 0.25),
(55, 0.25), (58, 0.25), (53, 0.5), (53, 0.25), (55, 0.25), (53, 0.25), (50,
]
In the case of a prompt for a new composition, chatGPT users would then have to refer to Midi specification 2 with all functions and that the individual instruments are output with Midi track (1-16) and Midi instrument numbers and instrument names (1-128).

It would be good if such a conversion tool, based on the official midi specification 2, would be available in musescore

The generated multi-track midi file could then be imported back into musescore so that revisions, fine-tuning, additions etc. could be made there.

After another search for up-to-date music software, there is apparently not a single program that provides such a function.

Given chatGPT's amazing musical composition abilities, it makes perfect sense to put them to good use. For this you need this conversion tool.

This development is new and there are currently initial reactions to it. The music program that reacts quickly to it also gives itself a marketing advantage.

I think it's also a bit of a misunderstanding. The point is that the chatGPT can only output text. However, this text is in a formatted form that can be converted into a standard Midi file using a conversion program.

greeting
Josef J Michel

In reply to by Josef Johann Michel

I get that new proprietary formats are being invented every day, and they also go away every day, and change every day. When one settles down into any sort of standard, the tools will appear. ChaptGTP is a very promising tool but has only been out for a few months; I'm sure standardization of its proprietary formats will happen over time.

Do you still have an unanswered question? Please log in first to post your question.