Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 1.29 KB

File metadata and controls

21 lines (18 loc) · 1.29 KB

Integrating ABC Notation into Unity Piano 2.0

Based on reference from https://github.com/matthewcpp/ABCUnity

  • Add downloded repo extracted zip into Assets folder
  • TextMeshPro TMP has been added
  • Checkout SampleScene
  • Checkout BasicLayout.cs in Samples folder
  • Have an area with rectransform such as ABCLayout to contain the sprites. This RectTransform area will be filled by the sprites.
  • add whitebackground
  • make the whitebackground work with the rendered sprites
  • provide function that updtes the fie

Recreating Sample Scene

  • Add gameobject ABCLayout Prefab into the scene just below camera.
  • ABCLayout has Layout script attached as a component. Set its recttransform as you wish it to be
  • check the following: NoteAtlas as sprite atlas, Note as Note material, staff line pdding defaults etc
  • some equivalent of gameobject Sample where Basic Layout script is attached. Resource name is the notation of the file we use. In this way ABCNotationHandler is added.
  • Check out MainCamera configurations so far
  • find a way to subsitute the stringname here depending on the user choice and what is loaded
  • In the same folder as the scene, the BasicLayout script is there and the Resources folder which has the abc notation files.