how to pass text from note to deal record using function?

how to pass text from note to deal record using function?

Hi, 
I need to pass text from note to deal record using function? may I know how to do that ?

I need to make if a new note is added then update 'note' field in deal record