The idea was to make ethyl butyrate, which smells like pineapple. The process is called 'transesterfication'.
Procedure:
Put 1 g of the fat (which I first thought was nearly pure glyceryl tributyrate, but is actually a little of that plus many other fats) into a flask.
Add 10 ml pentane, and swirl to dissolve all the fat. Add 0.5 ml of 2 m KOH in dry EtOH. Mix for 8 minutes, venting the flask periodically to release pressure, being careful to avoid caustic splashing. I just swirled the flask, but shaking it might have resulted in better mixing and hence better yield. (But much better chances of getting KOH on my hands.) Then, add 2 m HCl dropwise until the water layer was acidic. I then removed the organic layer and washed it with water, then poured the organic layer into a beaker and let the pentane evaporate.
Result was a yellow liquid which smells like pineapple.
Perhaps the bigger fatty acids (most of the butterfat) didn't participate much in the reaction, and so stayed as fat. (There was some fat-like stuff coating the flask when I was done.) Probably I got significant amounts of ethyl caproate, which is just a little bigger than the butyrate. I don't have any means to analyze my product, other than smelling it.