top of page

Functions

In this section we will walk through each function with a short explanation of what it does.

Piano

In this section we will walk through each function used in BP_Piano.

pianocircle.png
mpfunctions.png

Update Key Animation: Checks which keys are currently in animation and flags those keys for a position update.

Find Sound: Finds the corresponding sound with the played key.

Add Text: Adds one text instance to the piano for the input labels.

Play Note: Initiates all logic when a note is played.

Remove Text Instance: Removes one text instance from the input labels.

Set Piano Instance: Sets the currently targeted piano for a player.

Calculate Transform: Calculates the transform of the specific key corresponding to the position in the animation curve.

Add White Key: Adds a white key to the piano.

Add Black Key: Adds a black key to the piano.

Calculate Rotation: Calculates the rotation of a text instance when added to the piano.

Remove Piano Instance: Clears the currently targeted piano for a player.

bottom of page