SiON MML with Voice
Im trying to play an MML with any other voice but I cant, thanks in advance
/**
* Copyright Daniel.Aguilar.Fuentes ( http://wonderfl.net/user/Daniel.Aguilar.Fuentes )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/ifWY
*/
package {
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
// Im trying to play a mml string with any other instrument than default, any ideas?
/*var tono:String = tonos[stIntrumento.value];
var numtono:String = numtonos[stIntrumento.value];
instrumento = presets["valsound."+tono+numtono];
driver.setVoice(0,instrumento);
var tdata:SiONData = new SiONData();
tdata.setPCMVoice(0,instrumento);
sdata= driver.compile(txtMelodia.text,tdata);
sdata.setPCMVoice(0,instrumento);
driver.play(sdata);*/
}
}
}