Skip to content

caseywescott/MIDI-2-Text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MIDI-2-Text

A Musical Prompt Generator and Re-Orchestrator for the MIDI Standard Specification.

MIDI-2-Text library enables the generation and musical variation of prompts derived from MIDI files.

Re-Orchestration is facilitated by switching instruments within the same General MIDI InstrumentGroups as well as modulating tempo and dynamics.

getSongPrompt has the following modes and parameters:

1. Re-Orchestration Mode: If == 1, then re-orchestrate the song's instruments to similar instruments.

2. Tempo-Scalar: Modulates the song prompt's tempo description.

3. Dynamic-Scalar: Modulates the description of the song's dynamics.

Example:

let song = new MIDISongProperties("/url/Firelight.mid")

song.getSongPrompt(1,1,1) ====>

"A baroque forte song named 'Firelight' in the key of A major played by loud Shakuhachi, Violin and Acoustic Grand Piano at a moderate speed, 120 BPM in 4/4 time."

song.getSongPrompt(1, 0.31, 0.71) ====>

"A baroque mezzopiano song named 'Firelight' in the key of A major played by moderately quiet Whistle, Viola and Acoustic Grand Piano very slow and solemn at 37 BPM in 4/4 time."

song.getSongPrompt(1, 0.71, 0.21) ====>

"A baroque pianissimo song named 'Firelight in the key of A major played by very quiet Flute, Contrabass and Harpsichord at a walking pace, moderately slow at 97 BPM in 4/4 time."

MidJourney Prompt Example:

song.getMidJourneySongPrompt(1, 0.31, 0.71) ====>

"Double exposure, with fantasy landscape. Black background. "A baroque mezzopiano song named 'Firelight' in the key of A major played by moderately quiet Whistle, Viola and Acoustic Grand Piano very slow and solemn at 37 BPM in 4/4 time." --v 4"

Screen Shot 2023-02-20 at 3 12 00 PM

Screen Shot 2023-02-20 at 3 09 58 PM

About

Musical Prompt Generator & Re-Orchestrator for MIDI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published