HISE Logo Forum
    • Categories
    • Register
    • Login

    Synth.sendController() crash

    Scheduled Pinned Locked Moved Bug Reports
    2 Posts 2 Posters 660 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • d.healeyD
      d.healey
      last edited by

      This code causes a crash. I'm not sure if I'm meant to have called something like getSampler() first and used the sampler variable instead of Synth. if so how should I send a controller message to all samplers - would it be another use case for the new helper function perhaps?

      Content.setHeight(150);
      
      const var Knob = Content.addKnob("Knob", 277, 34);
      // [JSON Knob]
      Content.setPropertiesFromJSON("Knob", {
        "text": "Mod-Wheel",
        "max": 127,
        "stepSize": "1",
        "middlePosition": 64
      });
      // [/JSON Knob]
      
      function onNoteOn()
      {
      	
      }
      function onNoteOff()
      {
      	
      }
      function onController()
      {
      	
      }
      function onTimer()
      {
      	
      }
      function onControl(number, value)
      {
      	if (number == Knob)
      	{
      		Synth.sendController(1, value);
      	}
      }
      

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart
        last edited by

        Ah yes, I forgot a safe check... It's fixed now (Synth.addVolumeFade() was also crashing).

        1 Reply Last reply Reply Quote 1
        • First post
          Last post

        12

        Online

        1.7k

        Users

        11.8k

        Topics

        102.6k

        Posts