New Tool (2.7, 2.8): Track Freezing

Yes, the API for the instruments has changed radically.
sample_index has been removed so that no longer works.

Instead it is something like:
renoise.song().instruments[#song.instruments].sample_mappings[layer][index].base_note = i-1

See:
http://forum.renoise…nges-renoise-3/