ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Best way to replicate this custom MIDI visualiser?

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Projectile Creative
Best way to replicate this custom MIDI visualiser?
on Jan 24, 2017 at 8:44:06 pm
Last Edited By Projectile Creative on Jan 24, 2017 at 8:52:23 pm

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







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).







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.


Return to posts index

Walter Soyka
Re: Best way to replicate this custom MIDI visualiser?
on Jan 24, 2017 at 8:54:21 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 [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

Projectile Creative
Re: Best way to replicate this custom MIDI visualiser?
on Jan 24, 2017 at 9:20:50 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! 😣


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]