// Sets default values for this component's properties UMMLComponent::UMMLComponent() : isLoaded(false) { // Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features // off to improve performance if you don't need them. PrimaryComponentTick.bCanEverTick = true; PrimaryComponentTick.TickInterval = 0.01f; /* * Initialize the MML module. */ mml_init(&mml, mml_callback, this); MML_OPTION_INITIALIZER_DEFAULT(&mml_opt); /* * Initialize the chord module. */ int tempo_default = 120; chord_init(&chord, tempo_default, mml_opt.bticks); }
MMLReader::MMLReader() : chordSize(0) { mml_init(&mml, mml_callback, this); MML_OPTION_INITIALIZER_DEFAULT(&mmlopt); }