The first thing you need to do is import the necessary classes from Ringtone Creator library:
import com.unwiredtec.rtcreator.*;
Let's assume that you already have an IMelody ringtone in some byte[] variable called imelody. Your task is to convert this tone into the Nokia Smart Messaging format. Your code will look like this:
Now you can do anything with the nokia byte array: save it to a file, write it to a stream, split, combine, etc.