curves resolve waves tutorial