• 0 Votes
    2 Posts
    391 Views
    trillbillyT

    I dug the forum again and found a little trick about naming the Sampler for instances of 2 const var calls.

    Im horrible with scripting and new to this so excuse the shitty code, but hey, it did the job! Here is the code if anybody wants to try it out. It allows you to control the editing functions of the sampler (Loop Enable, Reverse, Loop Start/Stop, etc).

    HISE SNIPPET:

    HiseSnippet 2171.3oc4Z0sbaabEFPRPIj1owIStn2jYvvoWPkQVgT1wtM+TSQJoLbhjLCorSlwMSxRfkjvFbWLKVpeZGOSeD56Pauu8MvOB8t9Z365ktm8G.rfBjBRwIwSKuQd28bN624Cm8bNXg6wnd33XJyxtxwmGgsruoyfyI7IclfBHVc20xtpyQ3Sc6P8wVsOOBEGi8srsW8KEqaWYMK4uW9f1nPDwCmMkk0ioAd3CBlFvylsWquJHLbejO93foFRe2Vc8njNzP5L.Kq5zvJB48LzX7QHgXq3XYu9d9AbJa.GwwwV1q0l5e9fIzSIJ4ebPbvvPrXPSqAfgTSuOMzWfXwrVclDD52Kwmisrrc5kw.qpXfOv4v.+fz4yXhaIWvMSCS9vdk7va0bvqoI7ZX.uBfjsAjVSAo2yYfGKHhmsh.O2voKgiYiPd4eznj0Zk+dUmNTPBBeqonmg2mACR0ndysazXS262nwFeV0pe7GOXmC6cvd8ca5t+iNpywce3QCpVEdjDycOAwbGflFEhYMc+BWY7wViwb8b0qkrXMsoTCAScasdt.qv3teEgNrZ.ILffcGMi3wCnDWJQIiTDAdYzv5dzoQTBf7MgcObFdip+optvuQTV8X2.RJd1xigABe.NDKMW8Za8Q01XCovJUD+BodnP2P.7QHVLFHg5wBOnt1Lao96dD+M.WHQq3shufHRTpAk6G4FpE+4UeN35IrMX4NINPB6HUr1FBSpcxNnvvgPPd8hXfExj.FWNOBB7FOKBhjwgau8u6N2+dklHAcWNMlQ.WjDOfRiVdvnPhKMTrhfAQWWFjYxfnKmAQ4XvT.lwfrRPdopsHxadGeAj2Rh+Dq+lczmFgWsyuZkVFucogbeqnh2x3Mo.ugybRLd04NoZKi8L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yLyM9D8A8JIxaEkzaPWeQRmjNzrfl7gfCNVOuVb+b3oRoqTsH770sztdx44enUh6mLymmlPDLoqvlkCyURfvxx7un5hK.uV+dMXVWJbIS5aVu7LyjtETzJIY5xS7ewqG8VNGR8mEh34usVwUTqW.REk6JREWCJbRketokm+JbWqbWg6xug4xB22yoW.2aRw3ckBvKzjwO03Ueg3uiydiFAucbFXWyY+uco298qcn7gJn79NC3P1roPNIcfu9aTjdL30v2nHpzeiBnDq7k4B9iFh8hVsmA7EK+r+iVxsZmoPtub6kF48wQXD+PwmYIcw2tU+9eIiNKZdsd4CjAKGyfW3CnByERN2a3icXz33Qf6HsUr4R8lwFK3prYRy0YLmn10DDgfCEudlsHw7ihEMhxC7NDwYA45IQtKMNFIeduhiZby4Fu8biuybiu6bi+j4Feu4Fe+rwouZsHxHoiq4eIyJk6kLAqzCA9sgjsCFmtCpYLihS4ZIdL97TeCzrzHJapgkFf4h15hMlpfOGz5+T8Ep9YM81O9rwud9fZURv3f.UUoSfSvvLBL99vqjIq4jLa9rIGRIznITRfW9yKP7+3wXlI1Kzg1gygiqYy7As5C8YhhMNv+aZcP.A5gJeZfqDWz7J+wEK740u1QAWWQJP2+2nJ5p+eeUzkQcyciAuY+b9lNxr9tx2U+WHn1mNSj9No.nCTkb.zYfG1rV4Jh5upwMDiE.Z.l3KG7J3mdwlIEVEK1LYQKuDSA9l9eKeOb6UwpOjfn4vPnjcnYHcLz+g.RPwveVP4TjGi98dpKOSf02VNCfRh7+8FUbNTL1sYxMl43zXqFVSgZUeumm3fvsAFtXc19ZnyctF5b2qgNex0Pm6cMz49WCc9sKUGQaB6LiSmpRRBSzaOUfk8doAVqZ8eY0VljD

    SCRIPT:

    Content.makeFrontInterface(1200, 700); //SAMPLER 1 FUNCTIONS const var Sampler1 = Synth.getSampler("Sampler1"); //Sampler 1 - Sample Start Knob inline function onSampleStartControl(component, value) { for(s in Sampler1.createSelection(".*")) { local l = parseInt(s.get(Sampler.SampleEnd)); s.set(Sampler.SampleStart, value * l); } }; Content.getComponent("SampleStart").setControlCallback(onSampleStartControl); //Sampler 1 - Sample End Knob inline function onSampleEndControl(component, value) { for(s in Sampler1.createSelection(".*")) { local l = parseInt(s.get(Sampler.SampleEnd)); s.set(Sampler.SampleEnd, value * 229376); } }; Content.getComponent("SampleEnd").setControlCallback(onSampleEndControl); //Sampler 1 - Loop Start Knob inline function onLoopStartControl(component, value) { for(a in Sampler1.createSelection(".*")) { local r = parseInt(a.get(Sampler.SampleEnd)); a.set(Sampler.LoopStart, value * r); } }; Content.getComponent("LoopStart").setControlCallback(onLoopStartControl); //Sampler 1 - Loop End Knob inline function onLoopEndControl(component, value) { for(s in Sampler1.createSelection(".*")) { local l = parseInt(s.get(Sampler.SampleEnd)); s.set(Sampler.LoopEnd, value * l); } }; Content.getComponent("LoopEnd").setControlCallback(onLoopEndControl); //Sampler 1 - Loop XFade Knob inline function onLoopXFadeControl(component, value) { for(s in Sampler1.createSelection(".*")) { local l = parseInt(s.get(Sampler.SampleEnd)); s.set(Sampler.LoopXFade, value * l); } }; Content.getComponent("LoopXFade").setControlCallback(onLoopXFadeControl); //Sampler 1 - Loop Enabled Button inline function onLoopButtonControl(component, value) { for(s in Sampler1.createSelection(".*")) { local l = parseInt(s.get(Sampler.SampleEnd)); s.set(Sampler1.LoopEnabled, value * l); } }; Content.getComponent("LoopButton").setControlCallback(onLoopButtonControl); //Call "wrong" Sampler for SampleMaps const var Sampler11 = Synth.getChildSynth("Sampler1"); //samplemaps const var sampleMaps = Sampler.getSampleMapList(); //combobox note: cmb = name of combobox const var Samplescmb = Content.getComponent("Samplescmb"); Samplescmb.set("items", sampleMaps.join("\n")); //Note: Sampler = name of Sampler inline function onSamplescmbControl(component, value) { Sampler1.loadSampleMap(sampleMaps[value-1]); }; Content.getComponent("Samplescmb").setControlCallback(onSamplescmbControl);
  • JUCE 7

    8
    0 Votes
    8 Posts
    535 Views
    ?

    @Christoph-Hart said in JUCE 7:

    @harris-rosendahl Nonononono. The Projucer 6.1.3 that was in the HISE repo was just compiled in GPL mode so that it doesn't complain everytime you use it, so you didn't see this message, but you definitely need a JUCE 6 license for using JUCE 6

    The GPL mode is "Enable Splash Screen" mode, right? Ok now I see it :) Thank you for the notification.

  • Near instant crash with today's commit

    17
    1 Votes
    17 Posts
    610 Views
    Christoph HartC

    @DanH Yes, I'm currently busy with other stuff, but I'll restore the analyser soon.

    If you want you can work on a good set of default values that mimic the old behavior: Just add a analyse.fft node, click on Edit Properties (like the screenshot in the other post shows) and when you come up with a magic JSON that looks super nice, post it here and I'll put it as default.

  • Compiler out of heap space

    5
    0 Votes
    5 Posts
    306 Views
    LindonL

    @ustk possibly..

  • OpenGL ComboBox, And "NO" By Default

    43
    0 Votes
    43 Posts
    2k Views
    Dan KorneffD

    @Christoph-Hart Thanks! confirmed

  • Setting the link to a Global Modulator

    21
    0 Votes
    21 Posts
    939 Views
    LindonL

    @d-healey Okay thanks.

  • Scriptnode Gain Bug?

    5
    0 Votes
    5 Posts
    289 Views
    pluginboiP

    @Christoph-Hart That worked!!! thank you so much!!

  • Switching Images and {PROJECT_FOLDER}

    5
    0 Votes
    5 Posts
    280 Views
    CyberGenC

    YES!!

    That works. 🤘

    Thank you sooooo much!
    :folded_hands_light_skin_tone:

    Best Regards.

  • Error: Could not inspect the application package.

    5
    0 Votes
    5 Posts
    351 Views
    CyberGenC

    @Soundavid Hi!

    Yes, to the best of my knowledge (very limited), I am signing the app before the build. I've also tried different ways of signing it. Also tried different versions of iOS but nada. It builds fine in the sim though.

    I got totally discourage when Lindon and David shared that the iOS platform was all but abandoned. Haven't tried since.

    I remain very interested in developing music/audio apps specifically for mobil devices.

    I would definitely like to solve the problem and I appreciate any tips and suggestions.

    Thank You.

  • Strange window

    3
    0 Votes
    3 Posts
    143 Views
    MikeBM

    @ustk Hi ustk - thank you - I thought something like that - but since I had run this before without these windows I ruled it out for now.
    :thumbs_up:

  • Connecting AudioWaveForm to Convolution Reverb

    9
    0 Votes
    9 Posts
    356 Views
    FortuneF

    @orange that's it thank you! 🎆
    changing the sampleIndex to 0 makes it work!

  • back again - maybe?!

    5
    0 Votes
    5 Posts
    229 Views
    d.healeyD

    @MikeB said in back again - maybe?!:

    for my small drum machine, it is important that the arp continues to run without stopping even when changing presets - as well as with all the drumvst I have like this (which is almost all of them).

    Changing preset will stop the arp playback. You'd need to roll your own solution to get around this.

  • Call to member function 'pow' is ambiguous

    3
    0 Votes
    3 Posts
    167 Views
    ?

    @Christoph-Hart Thank you so much for the clarification. Now Understood :)

  • Engine.showYesNoWindow lose focus in Logic

    5
    0 Votes
    5 Posts
    182 Views
    d.healeyD

    @ulrik said in Engine.showYesNoWindow lose focus in Logic:

    @d-healey Ok, and you have become a c++ guru right? 😛

    No I'm still just a hack :)

  • Notarizing issues today?

    9
    0 Votes
    9 Posts
    317 Views
    Dan KorneffD

    @d-healey Figures.. ahaahhh

  • Example Pre-built Project

    3
    1 Votes
    3 Posts
    147 Views
    S

    @Sonder
    Many thanks, that's what I was looking for!

    Cheers

  • This topic is deleted!

    3
    0 Votes
    3 Posts
    12 Views
  • How to Control Velocity Via Knob

    5
    0 Votes
    5 Posts
    254 Views
    DabDabD

    Excellent. Thank you so much guys @ulrik @ustk

  • Execution timeout value

    6
    0 Votes
    6 Posts
    407 Views
    ustkU

    @Christoph-Hart Oh, I forgot this one acted as timeout security...

  • Expansion ComboBox + Populate with Weblink

    11
    0 Votes
    11 Posts
    586 Views
    Adam_GA

    @d-healey youre a rockstar David thank you

40

Online

1.7k

Users

11.7k

Topics

101.5k

Posts