An open-source MIDI note visualizing webpage.
Converts a midi file into piano roll presentation, with customly uploaded audio.
- Roll down the WEBPAGE and click 'Upload MIDI', and choose the midi file you want to upload.
- (Optional) click 'Upload Audio' and choose the audio you want to play along with the MIDI presentation.
- Click 'Load' to start loading.
- When it's ready (Currently, the status can only be seen in console.log (F12)), Click the video to start.
- Enjoy the music and video!
- pixi.js
v4.8.5 - howler.js
v2.1.1 - scaleToWindow.js (modified)
bc43fe7 - midi-file (modified)
3490136
index.htmlstructure.cssindex.css
general.js( Custom defined selector alias )pixi.min.jshowler.min.jsscaleToWindow.jsmidi2json.jsscaleToWindow.jsconfig.js( Configuration )
-
demo (default midi and audio source) ( Music source )
demo.middemo.mp3
-
images ( from Musescore.com )
whiteOn.svgwhiteOff.svgblackOn.svgblackOff.svg
-
PIXI function and constructor aliases
-
Pianoroll()
- Parameters
states(object)setup()gameLoop(delta)switchState(st)idle()log()rescale()loadConfig()initParams()initKeys()loadData()loadAudio()getColor(track, channel)colorFilter(hex,dim)dimFilter(v)isWhiteKey(i)isBlackKey(i)getWhiteKeyIndex(i)getLeftPos(i)addKey(i)addAllKeys()modifyJson(data)noteAreaInit()toggleRender(obj)renderNotes(x)updateNoteArea()audioPlaybackListener()updateKeys()
- Run! Call
PianoRoll()
