constructor()

in charts/shared/sonic.js [327:376]


  constructor(settings, data, x, y, colors, keys = []) {

      console.log("settings", settings)
      this.settings = settings
      this.data = data
      this.synthLoaded = false
      this.x = x
      this.y = y
      this.colors = colors
      this.synth = null
      // this.synth2 = null
      this.isPlaying = false
      this.hasRun = false
      this.currentKey = null
      this.currentIndex = 0
      this.note = 0.2
      this.sonicData = {}
      this.interval = null
      this.timeSettings = null
      this.domainX = null
      this.domainY = null
      this.xVar = null
      this.isPlaying = false
      this.inProgress = false
      this.scale = null
      this.dataKeys = null
      this.speech = window.speechSynthesis
      this.furniturePlaying = false
      this.furniturePaused = false
      this.usedCursor = false
      this.audioRendering = 'discrete'
      this.resolveExternal
      this.keys = keys
      this.interactionAdded = false

      let xBand = checkNull(this.x, 'bandwidth')
      if (xBand) {
        xBand = xBand()
      }

      let yBand = checkNull(this.y, 'bandwidth')
      if (yBand) {
        yBand = yBand()
      }

      this.xBand = xBand
      this.yBand = yBand

      // console.log("xBand", xBand, "yBand", yBand)
  }