Optimize controller
Optimize note to frequency convert
Optimization vector -> array