andreasjansson/music-inpainting-bert 🔢📝❓ → ❓

▶️ 8.6K runs 📅 Nov 2021 ⚙️ Cog 0.3.3 🔗 GitHub ⚖️ License
midi midi-generation music-generation music-inpainting

About

Music inpainting of melody and chords

Example Output

Output

{"mp3":"https://replicate.delivery/mgxm/967ac956-4d23-4b2e-8d25-70165285ced9/out.mp3","midi":"https://replicate.delivery/mgxm/380e6ecf-b993-4e2e-9743-6efd965fca28/out.midi","score":"https://replicate.delivery/mgxm/fd0dd91d-939c-447d-b252-83d920918c22/score.png"}

Performance Metrics

7.44s Prediction Time
7.63s Total Time
All Input Parameters
{
  "seed": -1,
  "notes": "e2 f#4 | g.4 f#8 e4 | b2 b4 | b.2 | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | e.2",
  "tempo": "100",
  "chords": "Em | Em | Em | Em | Am | Am | ? | ? | ? | ? | ? | ? | B7 | B7 | Em | Em",
  "sample_width": "80",
  "time_signature": "3"
}
Input Parameters
seed Type: integerDefault: -1
Random seed, -1 for random
notes (required) Type: string
Notes in tinynotation, with each bar separated by '|'. Use '?' for bars you want in-painted.
tempo Type: integerDefault: 120Range: 60 - 200
Tempo (beats per minute)
chords (required) Type: string
Chords (one chord per bar), with each bar separated by '|'. Use '?' for bars you want in-painted.
sample_width Type: integerDefault: 10Range: 1 - 200
Number of potential predictions to sample from. The higher, the more chaotic the output.
time_signature Default: 4
Time signature
Output Schema
mp3 Type: stringFormat: uri
Mp3
midi Type: stringFormat: uri
Midi
score Type: stringFormat: uri
Score
Example Execution Logs
Using seed: 23529
0.0 80
0.0 10
0.1 12
0.1 8
0.2 9
0.2 6
0.3 7
0.3 6
0.4 6
0.4 5
0.5 5
0.5 4
0.6 4
0.6 4
0.7 3
0.7 3
0.8 3
0.8 2
0.9 2
0.9 2
0:0 (0/1 E4) Em/E 0
0:1  Em/E 0
1:2 (0/1 F#4) Em/E 0
1:0 (0/1 G4) Em/E 0
1:1 (1/2 F#4) Em/E 0
2:2 (0/1 E4) Em/E 0
2:0 (0/1 B4) Em/E 0
2:1  Em/E 0
3:2 (0/1 B4) Em/E 0
3:0 (0/1 B4) Em/E 0
3:1  Em/E 0
4:2  Em/E 0
4:0 (0/1 G4) Am/A 7
4:1 (0/1 F#4) Am/A 4
5:2 (0/1 E4) Am/A 6
5:0 (0/1 G4) Am/A 3
5:1 (0/1 F#4) Am/A 5
6:2 (0/1 E4) Am/A 1
6:0 (0/1 F#4) Em/E 7
6:1 (0/1 E4) Em/E 2
7:2 (0/1 G4) Em/E 5
7:0 (0/1 B4) Em/E 4
7:1  Em/E 8
8:2  Em/E 8
8:0 (0/1 B4) Em/E 3
8:1  Em/E 5
9:2 (0/1 B4), (1/2 B4) Em/E 6
9:0 (0/1 B4) Am/A 2
9:1 (0/1 A4) Am/A 6
10:2 (0/1 G4) Am/A 7
10:0 (0/1 B4), (1/2 G4) Em/E 1
10:1 (0/1 E4) Em/E 4
11:2  Em/E 2
11:0 (0/1 E4) Em/E 2
11:1 (0/1 E-4) Em/E 9
12:2 (0/1 D4) Em/E 1
12:0 (0/1 E-4) B7 3
12:1  B7 4
13:2 (0/1 E-4), (1/2 E-4) B7 7
13:0 (0/1 F#4) B7 5
13:1 (0/1 E-4) B7 3
14:2 (1/2 B3) B7 1
14:0 (0/1 E4) Em/E 6
14:1  Em/E 8
15:2  Em/E 8
15:0 (0/1 E4) Em/E 0
46: Invalid pattern: 0
0 pattern
ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, wav, from '/tmp/tmp_fuotcp4/out.wav':
  Duration: 00:00:29.20, bitrate: 2822 kb/s
    Stream #0:0: Audio: pcm_f64le ([3][0][0][0] / 0x0003), 44100 Hz, mono, dbl, 2822 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_f64le (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, mp3, to '/tmp/tmp_fuotcp4/out.mp3':
  Metadata:
    TSSE            : Lavf57.83.100
    Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, mono, fltp
    Metadata:
      encoder         : Lavc57.107.100 libmp3lame
size=     226kB time=00:00:28.83 bitrate=  64.1kbits/s speed=68.2x
video:0kB audio:226kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.098302%
LY output to `/tmp/tmp_fuotcp4/score.ly'...
Changing working directory to: `/tmp/tmp_fuotcp4'
Processing `/tmp/tmp_fuotcp4/score.ly'
Parsing...
Interpreting music...[8][16][16]
Preprocessing graphical objects...
Interpreting music...
MIDI output to `score.midi'...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `score.ps'...
Converting to PNG...
Success: compilation successfully completed
Version Details
Version ID
58bdc2073c9c07abcc4200fe808e15b1a555dbb1390e70f5daa6b3d81bd11fb1
Version Created
May 3, 2022
Run on Replicate →