1 package com
.wha
.modsynth
;
3 import scala
.collection
.mutable
._
6 var modules
:Map
[String
, Module
] = new HashMap
[String
, Module
]
8 def add(module
: Module
) {
9 modules
+= module
.name
-> module
12 def get(name
: String
): Module
= modules(name
)
14 def set(modName
: String
, controlName
: String
, v
: Double
) {
15 println(modName
+ ":" + controlName
+ ":" + v
)
16 if (modules contains modName
) {
17 get(modName
) ! new ControlSig(controlName
, v
)