• Sample switching with presets in Audio Loop Player

    12
    0 Votes
    12 Posts
    1k Views
    callybeatC

    I thought I would paste the solution of the theme here in case someone needs it ..
    😁

    // Load Audiofiles into pool ---------------------------------------------------------------------------------------------- Engine.loadAudioFilesIntoPool(); //-------------------------------------------------------------------------------------------------------- // const vars---------------------------------------------------------------------------------------------- const var AudioLoopPlayer = Synth.getChildSynth("Sampler"); const var Random = Content.getComponent("Random"); const var Knob62 = Content.getComponent("Knob62"); const var Next = Content.getComponent("Next"); const var Prev = Content.getComponent("Prev"); //-------------------------------------------------------------------------------------------------------- // Array Samples in AudioFiles-Folder---------------------------------------------------------------------- const var inst = ["sample01.wav","sample02.wav","sample03.wav","sample04.wav","sample05.wav","sample06.wav","sample07.wav","CBsample2.wav"]; //-------------------------------------------------------------------------------------------------------- //Knob1 Sample selection--------------------------------------------------------------------------------- inline function onKnob62Control(component, value) { Synth.getAudioSampleProcessor("Sampler").setFile("{PROJECT_FOLDER}"+inst[value]); }; Content.getComponent("Knob62").setControlCallback(onKnob62Control); //-------------------------------------------------------------------------------------------------------- // Random Button------------------------------------------------------------------------------------------ Random.setControlCallback(onRandom_Control); inline function onRandom_Control(component, value) { if (value) { Knob62.setValue((Math.randInt(0, 5))); Knob62.changed(); } }; //-------------------------------------------------------------------------------------------------------- // Prev-Button---------------------------------------------------------------------------------------------- inline function onPrevControl(component, value) { if (value) { Knob62.getValue() > Knob62.get("min") ? Knob62.setValue(Knob62.getValue() - 1) : Knob62.setValue(Knob62.get("max")); Knob62.changed(); } }; Content.getComponent("Prev").setControlCallback(onPrevControl); //-------------------------------------------------------------------------------------------------------- // Next-Button ---------------------------------------------------------------------------------------------- inline function onNextControl(component, value) { if (value) { Knob62.getValue() < Knob62.get("max") ? Knob62.setValue(Knob62.getValue() + 1) : Knob62.setValue(Knob62.get("min")); Knob62.changed(); } }; Content.getComponent("Next").setControlCallback(onNextControl); //--------------------------------------------------------------------------------------------------------
  • Copy protection

    22
    0 Votes
    22 Posts
    1k Views
    Y

    @nesta99 when you open the snippet i sent you it doesn't work? on condition of having put the serial file in script of course.

  • slider pack reset

    3
    0 Votes
    3 Posts
    186 Views
    Y

    @iamlamprey I was almost there ^^ thank you

  • Create UI factory

    23
    0 Votes
    23 Posts
    1k Views
    MikeBM

    @ustk @ulrik

    Great - that's exactly it

    So, like from a library, you can add a new panel at any time without changing
    the position and functionality of the already placed .

    Great - you should definitely publish this in the snippets category if you want.
    I'm sure it will help others too.

    Thank you very much! Guys

  • MidiPlayer Drag to DAW

    6
    0 Votes
    6 Posts
    365 Views
    ?

    Ok seems like the range for the midiplayer is 0-0.95, unless I'm doing something incredibly stupid:

    3e403bd3-ac08-4d61-8329-3822d338adbd-image.png

    Taking a squiz into the paintroutine for it

    Edit: I think I should add I believe this just affects the display of it, not the actual MIDI data as that works on the grid in a DAW just fine

  • How’s everyone’s Sunday going?!

    20
    5 Votes
    20 Posts
    3k Views
    David HealeyD

    @DanH said in How’s everyone’s Sunday going?!:

    @d-healey You? Yorkshire?

    Close enough, Middlesbrough-ish.

  • LAF for MidiSource

    3
    0 Votes
    3 Posts
    172 Views
    MikeBM

    Thanks David - you know now at the beginning I still need an example to understand this :-)

  • Understanding Crash reports

    5
    0 Votes
    5 Posts
    224 Views
    DanHD

    @d-healey 😆

  • Copy & paste from arp

    2
    0 Votes
    2 Posts
    168 Views
    MikeBM

    I'm also experimenting with the Arp right now.

    I think the idea is not bad to copy the arp from track one and use it in track two.

    I think it works either:

    if the arp was created by random in which the array is copied and then used as array for arp 2 by button.

    or

    if the user creates the sliderpack himself - basically the same thing happens.
    The array will be copied and inserted by button into another SliderPack (of Arp2) again.

    So at least theoretically :-)

    I will try it

  • FX Modulation

    34
    0 Votes
    34 Posts
    4k Views
    LindonL

    @Natan hmm, I think I can get what I want out of the FrontEndMacroPanel...

  • Cursed note 89

    3
    0 Votes
    3 Posts
    446 Views
    ?

    @ustk I'm on windows but I'll shop around ;) thanks

  • Sustain Pedal + Arpeggiator Hold: Momentary or no?

    3
    0 Votes
    3 Posts
    163 Views
    ?

    @d-healey Sweet thank you :)

  • JUCE colour chart

    5
    1 Votes
    5 Posts
    1k Views
    Tania GhoshT

    @d-healy :) .. Message sent to @Rudra-Ghosh

  • snex :)

    32
    2 Votes
    32 Posts
    2k Views
    ustkU

    @Christoph-Hart Just to inform you that today's commit - fix compilation on macOS 43a4f872b neither compiles Hise nor Workbench

    Untitled.png

  • Sample export problem

    2
    0 Votes
    2 Posts
    130 Views
    Y

    If ever this problem happens to one of you, I have found the solution.
    tools / update Sample map ids based on file names.

    I had a few examples of cards that didn't have the same name as the sample. stupid error

  • Funny question about buffer Size/Preload Size,

    3
    0 Votes
    3 Posts
    465 Views
    ?

    @Christoph-Hart said in Funny question about buffer Size/Preload Size,:

    Advantage: no crashes anymore, sample maps with high static pitch ratios are not capped

    Thanks! @Christoph-Hart. That answers my question and clarifies a lot of things.
    I did bring the buffer up and the number of voices down, and it seems like it has fixed the problem, no more crashing for now.

    What would be the disadvantage of having something like Sampler.setMaxDynamicPitchRatio()?

  • How to add support for mono tracks in an FX plugin?

    6
    0 Votes
    6 Posts
    229 Views
    Tania GhoshT

    @tomekslesicki It is the Auto generated Plugin Projucer File.
    Or you can do it from HISE what @Christoph-Hart says.

  • Clearing MIDI Learn Panel

    3
    0 Votes
    3 Posts
    141 Views
    David HealeyD

    There's also a button in the custom settings panel to clear all MIDI learn assignments.

  • Some questions about the effects

    10
    0 Votes
    10 Posts
    1k Views
    A

    @Lindon Thanks for the info!

  • Change Sample map via Prev-Next Button

    37
    0 Votes
    37 Posts
    4k Views
    MikeBM

    Great thank you very much.
    I have found the error.
    The slider was not from 0-5 but from 1-6 so HISE crashed every time.
    Probably because there is no "sample07".

    And here is the finished snippet - Prev/Next/Random load sample in AudioLoopPlayer

    I make a copy in the category Snippets

    HiseSnippet 1533.3oc4XstaaaCEVJNJq1qYncq+X+jvXCPFsNwt21v15pyEmgrF2XDmVTfhhLFIZahJQJPQmVut.rGk9nr2f8JrGg8FrwKRVRt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