Saves a BMX to memory or file.
plugins is an array of ints containing the plugin ids to save in the song. If plugins is NULL, everything in the running graph is saved. Optionally without waves, when save_waves is zero.