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

    Topics

    • R

      Help with Button to ramp a Knob value up and down 0.- 1. > 1. - 0.

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      2
      0 Votes
      2 Posts
      260 Views
      R

      @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);
    • R

      Help with loading 4x file_players from Ui button/Knob

      Watching Ignoring Scheduled Pinned Locked Moved ScriptNode
      30
      0 Votes
      30 Posts
      1k Views
      R

      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);
    • R

      Scale the "global_cable" from value 0. - 1. to 0. 300.

      Watching Ignoring Scheduled Pinned Locked Moved ScriptNode
      7
      0 Votes
      7 Posts
      536 Views
      R

      Thanks for your time guys!
      this is the script that got things running smooth. :)

      const var snailFader = Content.getComponent("snailFader"); snailFader.setAnimation(lottie); const lottieData = snailFader.getAnimationData(); // Snail Slider to Control Knob / hidden Content.getComponent("KNsnailFader").setControlCallback(onKNsnailFaderControl); const var KNsectionKnob1 = Content.getComponent("KNsectionKnob1"); inline function onKNsnailFaderControl(component, value) { snailFader.setAnimationFrame(value); KNsectionKnob1.setValue(value * 0.0033); KNsectionKnob1.changed(); };