HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. VeryHuman
    V
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 3
    • Groups 0

    VeryHuman

    @VeryHuman

    2
    Reputation
    1
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    VeryHuman Unfollow Follow

    Best posts made by VeryHuman

    • RE: Webview Midi Mac

      Update!
      I worked it out without using WebViews Midi.
      It was as simple as calling a javascript function from onController.

      function onController()
      {
      	WebView1.callFunction("updateCC", {
      	"cc":Message.getControllerNumber(),
      	"value": Message.getControllerValue()
      	});
      }
       
      
      posted in General Questions
      V
      VeryHuman

    Latest posts made by VeryHuman

    • RE: Webview Midi Mac

      Update!
      I worked it out without using WebViews Midi.
      It was as simple as calling a javascript function from onController.

      function onController()
      {
      	WebView1.callFunction("updateCC", {
      	"cc":Message.getControllerNumber(),
      	"value": Message.getControllerValue()
      	});
      }
       
      
      posted in General Questions
      V
      VeryHuman
    • Webview Midi Mac

      So I have been working on a Webview GUI (I know React well so it makes my life easier) however I have hit a snag. It appears that the embedded webview on Mac uses Safari and Safari doesn't support the Midi protocol meaning no Midi control of knobs.

      I could possibly create a work around by passing Midi info from Hise back to the webView but was wondering if there was any other way to do this?

      posted in General Questions
      V
      VeryHuman
    • Replacing Sample in Sampler

      I am trying to replace a sample with another sample but I can't for the life of me get it working. I suspect it has something to do with asynchronous functions such as the clearSampleMap. Any ideas?

      const var Sample1 = Content.getComponent("Sample1");
      const var Sampler1 = Synth.getChildSynth("Sampler1");
      
      Sample1.setMouseCallback(function(event)
      {
          if(event.clicked){
      		FileSystem.browse("undefined", false, "*.wav", function(result)
      		{
      		    if(result){
      			
      				Sampler1.asSampler().clearSampleMap();
      				var importedSamples = Sampler1.asSampler().importSamples([result.toString("FULLPATH")], false);
      
      			    importedSamples[0].set(2, 60);
      			    importedSamples[0].set(3,60);
      			    importedSamples[0].set(4,60);
      			    Sampler1.asSampler().saveCurrentSampleMap("Module1");
      			    Sampler1.asSampler().loadSampleMap("Module1");
      			    
      
      		    }
      		    
      		});
      	}
      });
      
      
      posted in Scripting
      V
      VeryHuman