HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. ulrik
    3. Posts
    • Profile
    • Following 1
    • Followers 13
    • Topics 294
    • Posts 3,114
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: So close to Rubberband-ing

      @iamlamprey Nice work!

      posted in General Questions
      ulrikU
      ulrik
    • RE: HISE Bootcamp - Full Course for Beginners

      @d-healey Nice work David!

      posted in General Questions
      ulrikU
      ulrik
    • RE: MIDIPlayer || Need Note Events .

      @Chazrox try this

      for (e in messageList)
          Console.print(e.dump());
      
      posted in Scripting
      ulrikU
      ulrik
    • RE: Is it possible to link parameters between plugins?

      @Bicrome I made an attempt long ago, had several "client plugins" listening to the main plugin, It worked using osc.
      I stopped working on it but I don't remember why.

      Here I wrote about it:
      https://forum.hise.audio/topic/6612/possible-to-communicate-between-plugins/24?page=2

      posted in General Questions
      ulrikU
      ulrik
    • RE: Turn a unit on/off

      @Sampletekk

      PU.setBypassed(true);
      
      posted in General Questions
      ulrikU
      ulrik
    • RE: How can I link a pitch parameter to a knob?

      @lijas90 set the slider min -1.0 and max 1.0 and stepSize to 0.01, the connection you've made is correct

      If you want the slider to go from -12 to 12 you have to script it like this:

      inline function onPitchAmountControl(component, value)
      {
          AHDSREnvelope1.setIntensity(value/12);
      }
      
      Content.getComponent("PitchAmount").setControlCallback(onPitchAmountControl);
      

      pitchenvelope.gif

      posted in General Questions
      ulrikU
      ulrik
    • Stretch player questions

      Is it possible to make the stretch player to play oneshot (disable looping)?
      Is it possible to make it compile so we could use it in a Hardcoded slot?

      posted in Scripting
      ulrikU
      ulrik
    • RE: How to use KeySwitch to trigger sampling?

      @CatABC I guess that's how the eventData Envelopes work, if you trigger a key switch the fade will not be applied until you play next key
      It seems to work flawlessly when playing legato but as soon as you release a playing key, and the fade has not worked its way through, it will continue the fade as soon as you start playing a key again.
      It would be nice if the smoothing time will elapse even if no playing key is pressed

      posted in General Questions
      ulrikU
      ulrik
    • get playback position from waveform component

      It would be nice to have a "displayCallback" for the waveform component.
      To be able to get the playback position when it's connected to a sampler.

      posted in Feature Requests
      ulrikU
      ulrik
    • RE: How to use KeySwitch to trigger sampling?

      @CatABC I fiddled some more, this is a better solution, using eventData envelopes, it's easier to set the smoothing in the fades

      And I don't think it will consume much cpu, it's only the extra voices

      HiseSnippet 2368.3oc6a0uaajaDeW6r4hT9n45kC28mDF8Oj6YnSe4OTSSshskuXj3OpkSRKBRSo2kRhvqHWrjxItAAsnuH8UIOB8QnOB4MncH4tRbkj84X3fbNUBAQZGx4CNyvY9MRI6Ey8IBAO1wM+AmDQbbukWqSXxtq2ESYNasgi6238XxIhWSk9cQswADAphyZmDgEBRfiq6r+jZit4tli90GVcMbHl4SFRxw4YbpO4IzdT4Pp603wzvvMAAd.sm0tq0XKeNacdHuOXTy5UxIB6eDtCYGrZay347Hrnqi6u0awJU8qErbPkJKVeIe7Rj5swsaWtZPsZKsR8xUqiqsxRjRK53d8lATIOtkDKIBG2qsFO3jVc4ulYTvynB5ggD0CkcZAZ1PdSdXf5Hpn5rdWZXvdodKgiiq2dC8cyZ7c2yaaZ.c.8g9v6pW.MjCaGn6LYMuYyXdksMuRVl2DLIWKS5ZFS5q8Z4GSijCWQYO2zaKljD2FCwIaSwrWG226sNG1.SVrG9HxlwvCCXnvRkJs.pRoRye+18Y9RJmg3rc3RxtrBym+s4yk+c4QitT61SbMkZh4ggj3ItrJ0H9rXr.qeuCIwKfNFG1mLXivwOqO06z8o1gbeyo1Zib1VLpb2HB6zRDbRbUJ+ehUAaUp892Iw62JjFPhcnfSNu2fbdsMOHyuweugyS2ZCrDmJIPnfhhHwRp5L3tA4X3djItlyaCh3HIOBz057dQblxDbyaz6sSz6SvGRB0p8N1TJ67F6qmmX+vqoAxtCH79+YitDZmtVWb+yMjj2.Oui2lObiln0Zdvya1bGTUTqce5Nan968WuYKzY9pufx5ff5JnV5BKvwqMbfaQ+aVUB9CM50OTRCorj3DABo3A2DbrN12Rlb+ybH2LjikfFNfBaVc5+1Irvo5DZ7W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LV6hx3hWTFW5hx3xWTFW4mmQEhpG1Wx6Yt+AHK2qo9eKCttFPk5qhN+O.G6L2qA
      
      posted in General Questions
      ulrikU
      ulrik
    • RE: How to use KeySwitch to trigger sampling?

      @CatABC if I understand you right, you want to fade between several sound sources.

      This snippet will show you one way to do it, however keeping several sound sources activated will produce 3 voices when pressing just 1 key (one is sounding, the other 2 has a gain of -100dB)
      I don't know if it will give you any problem doing that, I suppose it depends on how demanding you project is on the cpu?

      HiseSnippet 2419.3oc6a01aSjjDdljLrXytHX0dZWcepk08AmEiW+Rdc41EGRbfHHIdwA3PHDamYZa2Ji6dtYZmPNDRmteY7o6y2Og6mv9OfqptmwdlDmPHh2OGgbltppqt5ppt5mZhoUnzkEEICsryuygALK6u1o8gBUuU6Q4BqMVyx9pN2kcXzAbkaORGpGKx5VGFPihXdV11SeaTL6byXo+4Ot4sn9TgKaDIKqGJ4tr6w6yUin1pwc499qCpaGd+TROWiMbkhUk9xAfIMsSEq.p6dztrsnnXS4XcGZTOK6ezY9Z0cmyaQuZ0le4EboKvVtCsSmp08latEVZ4p0WlN2RKvpLuk8EZ5wUxv1JpBLd6Ytkz6v18jGHLKvC4Q7c8Y3fpVsgU1PdcouGtEQpVq1i660JwWEYYY6zZjmaZim66b1j6wGRejG7JZFjQyHsCzdprl2zYLupoMuJoLuwXR1oLoYLlzUcZ6FxCTi3f1ykb1PnXgcnPbJsoXj0x9UNqJAADpx8o6wVODFLbBEWnRkRjZUpL6M5LP3p3RAQJ1RpXaKJNa9WjOW9WlmbTVc5LVd3xDJ88YgikMlZDdZSrnXP+cYgkH6S8GvFJHr8y5ScNYeZ5PtqYWmRPoXCAWsc.SbRIBVwtJ3oGrwZTEECDwz.4BXgJNZB1qw1GNFXBK4bViEsmRF.YzqJ6GHEnFryqzb+l3f18n6x7s3Pn4xooT054oOccX5AGv8T8FR3U+qF8X7t8Rct6wMTrmCi2xY8UVqI4VM24QMatEoNo81OXq0vOu+pMaSN0eFDwEcIPQARacUAX60A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IOcRaqA9QL8wwpom3Hx0RS9NzPOH3499+kMdgInQ+PhFs9DznSPi9kEZz5SPiNAM5DznedfF8L6F..NeZGo9dG.nUMhtPM4iSk5uTZe3CwZzm5FJeV72BUr96E0T.eqP++kobNahiIUsze6ZRGv5CfNelqaVUcrIV67Nw5m2IN24chyedm3Bm2It34chK8lmH1SvJCTx9lyePuQsZp+pIYaaZKReTz5+ATu7FKB
      
      posted in General Questions
      ulrikU
      ulrik
    • RE: Waveform how to get playback position?

      @d-healey said in Waveform how to get playback position?:

      @ulrik Yes, if I had an audio file, but I have a waveform control linked to a sampler.

      Did you find a solution for this?

      posted in Scripting
      ulrikU
      ulrik
    • RE: Waveform how to get playback position?

      @Orvillain said in Waveform how to get playback position?:

      Surely the sampler itself should be reporting this, not the WaveForm view ???

      My brain looks at this problem more along these lines:

      • Get sampler.
      • Get currently playing file.
      • Get sample position for currently playing file.

      I'm sorry to dig in this old topic.
      As I undertand, you are using a sampler for this right?
      Could you please explain, or make a very small snippet, how to get the play position of the file?

      posted in Scripting
      ulrikU
      ulrik
    • RE: Sliders not responding to "Consumed" MIDI CCs

      @CyberGen Your snippet is working here, midi cc is received and knob is moved

      posted in Scripting
      ulrikU
      ulrik
    • Synth.addModulator(sample start, "Constant", "SampleStartMod")

      It would be nice to have the function

      Synth.addModulator(for the "Sample Start" chain,  "Constant",  "SampleStartMod")
      

      implemented

      and maybe the "Group Fade" chain as well

      As it is now, it's impossible to add a modulator in a samplers "Sample Start" chain with the Synth.addModulator function

      posted in Feature Requests
      ulrikU
      ulrik
    • RE: enable Midi select

      @d-healey thank you, good example!

      posted in Scripting
      ulrikU
      ulrik
    • RE: enable Midi select

      @d-healey Thank you David! 🙏🏻

      posted in Scripting
      ulrikU
      ulrik
    • RE: enable Midi select

      @d-healey said in enable Midi select:

      @ulrik said in enable Midi select:

      Or maybe there is an another way to create the selection?

      Yeah you can create selections using all kinds of parameters with these functions

      37f958b6-c6ad-4039-938c-d25bea8e5e98-image.png

      Yes, I use createSelection("") a lot.
      but then I need to collect LoKey and HiKey for each sample in the map and then iterate over them to find which correspond to the pressed key, it would be easier to be able to control "enable MIDI selection" since it's already a built in function.

      Maybe the "createSelectionWithFilter" is the way to go, but I don't understand how it's working and I can't find any example of it.
      Can you give an example?

      posted in Scripting
      ulrikU
      ulrik
    • enable Midi select

      I've searched for a way to control the "Enable MIDI selection" that is present in the sampler module, but I have not found anything about it

      Is it possible to enable/disable this function via scripting?

      My goal is to, in a ScriptProcessor, automatically create a selection of the played sample in a sampler.

      Or maybe there is an another way to create the selection?
      Any information is appreciated

      Skärmavbild 2025-06-18 kl. 11.15.08.png

      posted in Scripting
      ulrikU
      ulrik