Here is a quick example that uses a neural network (regression) to generate a MIDI note to frequency in Hertz converter.