Add delay test. Debug delay and get it working.
[ModSynth.git] / com / wha / modsynth / Canvas.scala
blob71f1d5cfb7c187c8752a72d5fb14b55ccd1eb064
1 package com.wha.modsynth;
3 import scala.collection.mutable._
5 class Canvas {
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)