HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. Rognvald
    3. Posts
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 37
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Possible to receive CC control data from ScriptFX midichain to --> Knob ?

      @ustk I am testing whether rnbo in scriptFX can output midi to Hise to use for the UI display and modulation. At the moment Rnbo in Hise only allows one dedicated modulation output..
      The patch above is Hise controller script sending cc messages to Rnbo Script FX, but then its being picked up by the Global Cable again, back to the Ui.

      posted in ScriptNode
      R
      Rognvald
    • RE: Possible to receive CC control data from ScriptFX midichain to --> Knob ?

      @ustk I am sure when using rnbo in Script FX there is no midi output, only input.
      I was just getting a loop from the midi cc's setup in the interface..

      Thanks again for all your help here :)

      posted in ScriptNode
      R
      Rognvald
    • RE: Possible to receive CC control data from ScriptFX midichain to --> Knob ?

      @ustk Thanks for your time on this :)
      would think there was a way to set the receiving midi channel somewhere, either in script FX or the Interface. I will keep digging

      posted in ScriptNode
      R
      Rognvald
    • RE: Possible to receive CC control data from ScriptFX midichain to --> Knob ?

      @ustk This is working if I create all these nodes for each CC.
      There does not seem to be any node for setting the receive channel..
      so that the incoming CC's on channel 2 will not effect the other CC's on the UI on channel 1.

      CleanShot 2025-11-10 at 6 .54.36.gif

      posted in ScriptNode
      R
      Rognvald
    • RE: Possible to receive CC control data from ScriptFX midichain to --> Knob ?

      @ustk Thanks for the info!
      This seems to work for only one CC control? I am looking for up to 32 CC controls to Ui or more.

      posted in ScriptNode
      R
      Rognvald
    • Possible to receive CC control data from ScriptFX midichain to --> Knob ?

      I can send midi CC control data to ScriptFX midichain, but can not seem to work out the opposite.. :(

      ScriptFX to UI cc.png

      Hope you can help

      posted in ScriptNode
      R
      Rognvald
    • RE: Control velocity from each incoming midi note with a Knob / Slider?

      @d-healey I am currently using this code for buttons to midi. Is there any way to insert this velocity function or would I also need to put this code on the second Midi Processor? Little confused but I am sure it can work.

      onInt

      const Buttons = Content.getAllComponents("Button");
      
      //	this list will save the played note eventIds
      reg eventIds = Engine.createMidiList();
      
      //	this played keys will trigger the buttons
      reg keysThatTrigger = [48, 49, 50, 51];
      
      //	this notes will sound 
      reg triggeredNotes = [48, 49, 50, 51];
      
      inline function onButtonsControl(component, value)
      {
      	local index = Buttons.indexOf(component);
      	
      	if (value)
      		eventIds.setValue(triggeredNotes[index], Synth.playNote(triggeredNotes[index], 60));
      	else
      		Synth.noteOffByEventId(eventIds.getValue(triggeredNotes[index]));
      };
      
      for (b in Buttons)
      	b.setControlCallback(onButtonsControl);
      

      onNoteOn

      function onNoteOn()
      {
      	Message.ignoreEvent(true);
      	
      	if (keysThatTrigger.contains(Message.getNoteNumber()))
      	{
      		local index = keysThatTrigger.indexOf(Message.getNoteNumber());
      		Buttons[index].setValue(true);
      		Buttons[index].changed();
      	}
      }
      

      onNoteOff

      function onNoteOff()
      {
      	if (keysThatTrigger.contains(Message.getNoteNumber()))
      	{
      		local index = keysThatTrigger.indexOf(Message.getNoteNumber());
      		Buttons[index].setValue(false);
      		Buttons[index].changed();
      	}
      }
      
      posted in Scripting
      R
      Rognvald
    • RE: Control velocity from each incoming midi note with a Knob / Slider?

      @d-healey Ok thanks for all this info, I will have a blast and see what comes out :)

      posted in Scripting
      R
      Rognvald
    • RE: Control velocity from each incoming midi note with a Knob / Slider?

      @d-healey Ahh, the Knob to control the Velocity

      posted in Scripting
      R
      Rognvald
    • Control velocity from each incoming midi note with a Knob / Slider?

      I know it is possible to link a button to incoming each midi note.
      Can the same be accomplished with a Knob for each note?
      ( controlling the velocity while the note is being pressed )
      I often do this in Max/Msp, PureData.

      Thanks I hope :)

      posted in Scripting
      R
      Rognvald
    • RE: random float 0. - 1. how to?

      @iamlamprey yes I got it thanks again for your time :) Still learning and enjoying HISE.

      This is working for me*

      inline function onButton6Control(component, value)
      {
      	  if (value)
          {
              local Knob1_value = Math.randInt(20, 20000);
              local Knob3_value = Math.range(Math.random(), 0.0, 1.0);
              Knob1.setValue(Knob1_value);
              Knob1.changed();
              Knob3.setValue(Knob3_value);
              Knob3.changed();
              
              SimpleGain1.setAttribute(SimpleGain1.Gain, Knob1_value);
              SimpleGain2.setAttribute(SimpleGain2.Gain, Knob3_value);
          }
      };
      
      Content.getComponent("Button6").setControlCallback(onButton6Control);
      
      posted in Scripting
      R
      Rognvald
    • RE: random float 0. - 1. how to?

      @iamlamprey Thanks for your speedy reply!

      i get this error.. Too many arguments in API call Math.random(). Expected: 0

      inline function onButton6Control(component, value)
      {
      	  if (value)
          {
              local Knob1_value = Math.randInt(20, 20000);
              local Knob3_value = Math.random(0.0, 1.0)
              Knob1.setValue(Knob1_value);
              Knob1.changed();
              Knob3.setValue(Knob3_value);
              Knob3.changed();
              
              SimpleGain1.setAttribute(SimpleGain1.Gain, Knob1_value);
              SimpleGain2.setAttribute(SimpleGain2.Gain, Knob3_value);
          }
      };
      
      posted in Scripting
      R
      Rognvald
    • random float 0. - 1. how to?

      How to convert "randInt" to float?
      This compiles but does not seem to work..

      inline function onButton1Control(component, value)
      {
      	  if (value)
          {
              local Knob1_value = Math.randInt(20, 20000);
              local Knob2_value = Math.randInt(0, 100 * 0.01);
              
              Knob1.setValue(Knob1_value);
              Knob2.setValue(Knob2_value);
          }
      };
      
      Content.getComponent("Button1").setControlCallback(onButton1Control);
      
      posted in Scripting
      R
      Rognvald
    • Is there a Parameter limit within RNBO & Scriptnode?

      These top 5 Parameters do not seem to be functioning.
      Does anyone have any ideas or any links to using RNBO Data~ object with HISE SliderPack?

      been at this for a few days now trying all kinds..

      params.png

      posted in ScriptNode
      R
      Rognvald
    • RE: Help with Button to ramp a Knob value up and down 0.- 1. > 1. - 0.

      @Rognvald I found this as a starting point.. :)

      const var Knob = Content.getComponent("Knob");
      
      
      const TH = Engine.createTransportHandler();
      
      //	18 = tempo factor = 1/64T
      TH.setEnableGrid(true, 18);
      
      
      //	Set sync mode Internal or External
      TH.setSyncMode(TH.PreferExternal);
      
      //	ON GRID CHANGE FUNCTION
      //	You start and stop this using "TH.startInternalClock" & TH.stopInternalClock
      inline function GridChange(clock, arg2, arg3)
      {
      	local v = (clock % 200) / 100;
      	
      	local value = v < 1.0 ? v : 2 - v;
      	
      	//	Trigger the knob
      	Knob.setValue(value);
      	Knob.changed();
      };
      
      TH.setOnGridChange(true, GridChange);
      
      
      inline function onKnobControl(component, value)
      {
      	Console.print(value);
      };
      
      Content.getComponent("Knob").setControlCallback(onKnobControl);
      
      
      //	START STOP INTERNAL CLOCK
      inline function onStartInternalClockControl(component, value)
      {
      	if (value)
      		TH.startInternalClock(0);
      	else
      		TH.stopInternalClock(0);
      };
      
      Content.getComponent("StartInternalClock").setControlCallback(onStartInternalClockControl);
      
      
      
      posted in Scripting
      R
      Rognvald
    • Help with Button to ramp a Knob value up and down 0.- 1. > 1. - 0.

      Is there any simple function for this, or using Timer?
      Can anyone provide an example? :)

      posted in Scripting
      R
      Rognvald
    • RE: Help with loading 4x file_players from Ui button/Knob

      Good morning Sir and thank you! yes "loadFile" not "setFile" and "slots[]"
      Maybe I will sleep now :)

      inline function onKnS2Control(component, value)
      {
          slots[1].loadFile("{PROJECT_FOLDER}"+inst2[value]);
      };
      Content.getComponent("KnS2").setControlCallback(onKnS2Control);
      
      posted in ScriptNode
      R
      Rognvald
    • RE: Help with loading 4x file_players from Ui button/Knob

      @Chazrox the code i posted above is functioning swapping samples from both array but only to one file_player slot#

      posted in ScriptNode
      R
      Rognvald
    • RE: Help with loading 4x file_players from Ui button/Knob

      @Chazrox This info really helps me understand tho :) thanks
      Here is a snippet with 2x file_players and the controls

      HiseSnippet 2985.3oc6a07babaEeWIsxVJwNezzON0fQsGnpMk4BRJRFmVS8YhhkjYHUURFWOxPbAEQ0xEa2ETVrY7L9RmoG80bnyj+L5w7WRmbuWxgzC8TJ.1c4hkeJQaIl1oalIl.38v6g2u26gOUEOZcruO0SSewC53h0zeSiZcbXM2nIh3nsylZ5+biG5POF1fXiqYSYoq4PbcwLs063h78wVZ55y9QBh0WXNM4228f0Q1Hm533pzzNjRp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ihkJtR1rkxrJLeOR6FF4xcoFXIsl+LQ6YJE7Unvp43actHL7QlKTjphXxHE4mvotT.0EJsZ9RkLyOjAe7IynooDIbaU+XyIJTnmt30erPlKXrvmz9Dah+Z0os8Yj59GUrDOd3n0xNxXgvim8+GHLgABqtZoUJXloT1BS0.gQMbUc8Uw4DsH+a8PThuLvYBlYZG+CEsVGYGIE9DiqSom1BImRdhN+S00.9tQqAayNNnVbW1vQWTQyd96Bhg2Rd.bVp9RhpOnoG1uIesm81vZLF2ITcg3hZqx2Q.xWwi7KJKhJ8jpUeh36dPbiCTPwMG.IAM80e0W8uU3Lgl7h+4mNihHSpOf+v6+zxx+3lvdCX7F1x.0jv15eTG1PeC7eshVrG5Tba2Azc82f9r+2zxIuNjQKTcO5Qc2iIO6grF931QNIwBF6IJCFvcmzhXQNpd8jcUeLBmTFyNoLlaRYL+jx3pSJiElTFKNdFE+g1sVaFsUvFI3aLnxVAyCq2M5TeVs+S0TKY+
      
      posted in ScriptNode
      R
      Rognvald
    • RE: Help with loading 4x file_players from Ui button/Knob

      @Chazrox Yes, I am not sure how to call inst more than once.. i keep getting error - Duplicate const var declaration.

      // PLAYER 1 Array Samples in AudioFiles-Folder----------------------------------------------------------------------
      const var inst[0]  = ["Wi_trap808-1.wav","Wi_trap808-2.wav","Wi_trap808-3.wav","Wi_trap808-4.wav","Wi_trap808-5.wav","Wi_trap808-6.wav"];
      //--------------------------------------------------------------------------------------------------------
      
      // PLAYER 2 Array Samples in AudioFiles-Folder----------------------------------------------------------------------
      const var inst[1]  = ["Wi_Kick-1.wav","Wi_Kick-2.wav","Wi_Kick-3.wav","Wi_Kick-4.wav","Wi_Kick-5.wav","Wi_Kick-6.wav"];
      //--------------------------------------------------------------------------------------------------------
      
      posted in ScriptNode
      R
      Rognvald