melodia free implementation