Melody Maker · GPT 작업
Music GPT API
This API generates sheet music and midi from abc notation.
POST /convert-to-sheet-music/Convert To Sheet MusicEndpoint to convert LilyPond notation to sheet music in image format. Args: lilypond_notation (str): The LilyPond notation for the music piece. Returns: JSON response with the URL to the generated sheet music image.
POST /convert-to-midi/Convert To MidiEndpoint to convert ABC notation to a MIDI file. Args: abc_notation (ABCNotation): The ABC notation for the music piece. Returns: JSON response with the URL to the generated MIDI file.
원본 API 스키마
{
"openapi": "3.1.0",
"info": {
"title": "Music GPT API",
"description": "This API generates sheet music and midi from abc notation.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://cybrix.ai/music",
"description": "Music GPT API"
}
],
"paths": {
"/convert-to-sheet-music/": {
"post": {
"summary": "Convert To Sheet Music",
"description": "Endpoint to convert LilyPond notation to sheet music in image format.\n\nArgs:\n lilypond_notation (str): The LilyPond notation for the music piece.\n\nReturns:\n JSON response with the URL to the generated sheet music image.",
"operationId": "convert_to_sheet_music_convert_to_sheet_music__post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LilyPondNotation"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "URL to the generated sheet music image",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/convert-to-midi/": {
"post": {
"summary": "Convert To Midi",
"description": "Endpoint to convert ABC notation to a MIDI file.\n\nArgs:\n abc_notation (ABCNotation): The ABC notation for the music piece.\n\nReturns:\n JSON response with the URL to the generated MIDI file.",
"operationId": "convert_to_midi_convert_to_midi__post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ABCNotation"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "URL to the generated MIDI file",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"ABCNotation": {
"properties": {
"abc": {
"type": "string",
"title": "Abc"
}
},
"type": "object",
"required": [
"abc"
],
"title": "ABCNotation"
},
"HTTPValidationError": {
"properties": {
"detail": {
"items": {
"$ref": "#/components/schemas/ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
},
"LilyPondNotation": {
"properties": {
"notation": {
"type": "string",
"title": "Notation"
}
},
"type": "object",
"required": [
"notation"
],
"title": "LilyPondNotation"
},
"ValidationError": {
"properties": {
"loc": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"type": "array",
"title": "Location"
},
"msg": {
"type": "string",
"title": "Message"
},
"type": {
"type": "string",
"title": "Error Type"
}
},
"type": "object",
"required": [
"loc",
"msg",
"type"
],
"title": "ValidationError"
}
}
}
}Music GPT API
This API generates sheet music and midi from abc notation.
POST /convert-to-sheet-music/Convert To Sheet MusicEndpoint to convert LilyPond notation to sheet music in image format. Args: lilypond_notation (str): The LilyPond notation for the music piece. Returns: JSON response with the URL to the generated sheet music image.
POST /convert-to-midi/Convert To MidiEndpoint to convert ABC notation to a MIDI file. Args: abc_notation (ABCNotation): The ABC notation for the music piece. Returns: JSON response with the URL to the generated MIDI file.
원본 API 스키마
{
"openapi": "3.1.0",
"info": {
"title": "Music GPT API",
"description": "This API generates sheet music and midi from abc notation.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://cybrix.ai/music",
"description": "Music GPT API"
}
],
"paths": {
"/convert-to-sheet-music/": {
"post": {
"summary": "Convert To Sheet Music",
"description": "Endpoint to convert LilyPond notation to sheet music in image format.\n\nArgs:\n lilypond_notation (str): The LilyPond notation for the music piece.\n\nReturns:\n JSON response with the URL to the generated sheet music image.",
"operationId": "convert_to_sheet_music_convert_to_sheet_music__post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LilyPondNotation"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "URL to the generated sheet music image",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/convert-to-midi/": {
"post": {
"summary": "Convert To Midi",
"description": "Endpoint to convert ABC notation to a MIDI file.\n\nArgs:\n abc_notation (ABCNotation): The ABC notation for the music piece.\n\nReturns:\n JSON response with the URL to the generated MIDI file.",
"operationId": "convert_to_midi_convert_to_midi__post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ABCNotation"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "URL to the generated MIDI file",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"ABCNotation": {
"properties": {
"abc": {
"type": "string",
"title": "Abc"
}
},
"type": "object",
"required": [
"abc"
],
"title": "ABCNotation"
},
"HTTPValidationError": {
"properties": {
"detail": {
"items": {
"$ref": "#/components/schemas/ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
},
"LilyPondNotation": {
"properties": {
"notation": {
"type": "string",
"title": "Notation"
}
},
"type": "object",
"required": [
"notation"
],
"title": "LilyPondNotation"
},
"ValidationError": {
"properties": {
"loc": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"type": "array",
"title": "Location"
},
"msg": {
"type": "string",
"title": "Message"
},
"type": {
"type": "string",
"title": "Error Type"
}
},
"type": "object",
"required": [
"loc",
"msg",
"type"
],
"title": "ValidationError"
}
}
}
}