Create basic scaffolding for MIDI sequencing module

This commit is contained in:
2020-03-14 12:22:21 +01:00
parent a0a09ecb55
commit c7f251cbce
11 changed files with 210 additions and 13 deletions

View File

@@ -30,6 +30,7 @@ class DefaultEnvironment : Environment {
private fun loadModule(moduleProvider: ModuleProvider, consumer: (ModuleProvider) -> Unit = {}) {
if (!loadedModules.contains(moduleProvider.path)) {
rootModule.addSubmodule(moduleProvider.provideModule(LanguageModuleInterpreter()))
moduleProvider.onModuleLoad(this)
loadedModules.add(moduleProvider.path)
consumer(moduleProvider)
}