Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Best way to replicate this custom MIDI visualiser?

  • Best way to replicate this custom MIDI visualiser?

    Posted by Shahid Raza on January 24, 2017 at 8:44 pm

    I’m looking to build something like this for myself which visualises MIDI data for a piano:

    https://www.youtube.com/watch?v=4y33h81phKU

    I’m new to After Effects but know a bit of Javascript as a web developer. I’ve gotten this far (which a heck tonne of loose planning and coding):

    So far I’ve done the following:

    – Created a background graphic with piano keys laid out on it.
    – Created separate .ai file with piano keys in blue (for left hand). This file is imported into my project as a Comp called Bass Clef with Footage Dimensions as Layer Size.
    – Created separate .ai file with piano keys in pink (for right hand) same as the blue one. Named Comp Treble Clef.
    – Split the MIDI file into Bass Clef and Treble Clef, imported the MIDI data into each Bass and Treble comp.

    Each of the Bass and Treble Clef has this expression per layer from the .ai files:

    The expression isn’t doing a good job because it can’t work out chords from the MIDI layer. It only picks the value of the Slider Control. This is how the render came out with the expressions per layer above (notice how the chords aren’t being shown but only the peak value per Bass and Clef comps).

    https://www.youtube.com/watch?v=S9vpuVJTKaE

    How can I correct this and can I clean up the code for the layers so there’s only one or two places to control all the functions from?

    Here’s the chord data in dots but the values are always the peak values at that time:

    Also, how do I go about creating the falling notes with the little flashing sparks and particles coming off as sprinkles like in the video above?

    Any help would be more than appreciated!

    Thanks.

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

    Shahid Raza replied 9 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Walter Soyka

    January 24, 2017 at 8:54 pm

    You’re going to need to parse the MIDI note on/off data to know when each key presses down and when it releases.

    Once you’ve done that, you can simulate the piano-roll/Rock-Band-style falling notes by precomping the whole thing, squeezing it down to a single pixel in height, duplicating it a bunch of times and stacking them on top of each other to fill the top half of the screen, then offsetting them in time.

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

  • Shahid Raza

    January 24, 2017 at 9:20 pm

    Thanks for the reply Walter.

    I’ve already imported the MIDI file using Omino MIDI script (would this be the right way of parsing the data?).

    I’m new to After Effects so may need a bit more detail on what you’ve explained if you don’t mind. Sorry! ????

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy