HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. Aries
    3. Posts
    A
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 7
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: UI controls in design disappear when loading file with callback function that causes error.

      Okay, thank you for trying, David.

      It seems it is time to get hands dirty with HISE compilation. :)

      posted in Bug Reports
      A
      Aries
    • RE: UI controls in design disappear when loading file with callback function that causes error.

      Ah, there is Compile button. I did not see it hidden in 50 shades of grey. Thank you, David, this should help. :)

      I have tried to recreate code from file that cannot be loaded and managed to get HISE crashing when clicking Compile button.

      Steps to reproduce:

      • Create new Sampler instance, rename it to Sampler0
      • Click Frontend Panels, then confirm switching to designer mode. Switch to first workspace and edit interface under Midi Processor -> Interface.
      • Under call Content.makeFrontInterface enter following code and click Compile:

      const var MAX_VOICES = 1;

      const var knNumVoices = Content.addKnob("knNumVoices", 5, 6);
      // [JSON knNumVoices]
      Content.setPropertiesFromJSON("knNumVoices", {
      "text": "# Voices",
      "min": 1,
      "max": 51,
      "macroControl": "Macro 1",
      "stepSize": "1",
      "defaultValue": "1"
      });
      // [/JSON knNumVoices]

      inline function onknNumVoicesControl(component, value)
      {
      //Add your custom logic here...
      for (i = 0; i < NUM_VOICES; i++) {
      sampler = Synth.getSampler("Sampler" + 1);
      if (i < value) {
      sampler.setAttribute('bypassed', 0);
      } else {
      sampler.setAttribute('bypassed', 1);
      }
      }
      };

      knNumVoices.setControlCallback(onknNumVoicesControl);

      Actual result: HISE crashes, also happens when entering this code
      Expected result: Compilation is performed and problems shown

      Would you have any idea on what could be causing this crash?

      posted in Bug Reports
      A
      Aries
    • RE: UI controls in design disappear when loading file with callback function that causes error.

      Hi David,
      thank you for getting back to me.

      I should have add more context. This was minimal case which caused the UI not being shown in HISE.
      I had more elaborate example, however HISE crashes when I try to load it (in HISE project from first post it is the Preset.hip file).

      You are seeing those JS errors in console - Do you mean the Console panel? If so, I might be missing some setting, because there are no messages about JS code shown in my HISE. Just messages like
      Master Chain:! RELEASE_RESOURCES_CALLED
      TestBug: Save TestBug to /Users/whatever/Documents/HISE-UltraBass/Presets
      What is the HISE version / build you use, please? I would like to see those errors as well, I could do so much more with them. :)
      I have to admit, I haven't touch JavaScript for Long time, being Java developer myself.

      To the use case: I was thinking of creating instrument from mono synth, which would use 50-voice unison (each note sampled individually from analogue synth, 50 times) with selectable number of voices and (random) panning of each voice.

      As I understood from Note panning thread, it is not possible to change pan of individual note (= all samples being triggered by one note).
      However, in Sample editor, there is setting for Pan for individual sample.

      Controls for this instrument would be:

      • number of voices (samplers playing)
      • auto panning amount
      • maybe something else

      So I planned to use 50 samplers called Sampler0 - Sampler 49, mute / unmute them according to number of voices configured and generate random can setting for each note in sampler (each note has separate sample).
      Not sure, if it would be possible to randomize pan settings for each sample in 50 samplers for each note (due to performance) or just when enabling sampler.

      The part of code I have posted was intended to retrieve those sampler instances and then perform operations on them - muting and random panning.

      I suppose being able to see errors in console and being able to load the problematic file would help a lot.

      posted in Bug Reports
      A
      Aries
    • UI controls in design disappear when loading file with callback function that causes error.

      When creating UI control (e.g. knob) and adding callback function, when opening file again the UI is not visible in Midi Processor -≥ Interface. Additionally, I was also able to create file with JS callback code that makes HISE crash on load and sadly was not able to edit it back in preset file (seems like serialized format, maybe there is consistency check).

      Attaching file with HISE project (without samples) to demonstrate the problem. Problematic files are TestBug.hip (GUI not shown) and Preset.hip (loading this file crashes HISE). https://drive.google.com/file/d/0B3Nkp-y-UjAsM080aVZHazAtSW8/view?usp=sharing

      System details:

      • HISE Standalone 1.0.0 build 649
      • Mac OS 10.11.6 (El Capitan)

      Reproduction steps:

      • Click Frontend Panels, select dimensions, confirm to switch to Designer mode
      • Unlock panel, right-click on it, select Create Slider
      • Right-click on newly created control, select Add custom callback for knob
      • Enter following into function body:
        for (int i = 0; i < 2; i++) {
        smp = Synth.getSampler('test' + i)
        }
      • Save preset and quit HISE
      • Start HISE and load preset

      Expected result: GUI for design is shown

      Actual result: GUI for design is not shown

      posted in Bug Reports
      A
      Aries
    • Note panning

      Hello,
      would you know if this is possible or push me to the right direction: Is it possible to change pan of currently played note?

      I am thinking of randomized pan for each played note. It should also work with same sample stretched across multiple notes.

      posted in General Questions
      A
      Aries
    • RE: Action Collect external files into Project folder does not update sample paths

      Hi Christoph,
      thank you for the reply. I will have look at HISE project system to be sure where to put samples in order to be portable to another computer. Also sample maps need more studying on my side.

      Redirect Sample Folder seems interesting, thank you. On Mac I sometimes place sample libraries on different hard drive and then create filesystem link. Being able to do that from sampler is very comfortable.

      I discovered HISE several days ago and it has impressive set of features while being easy to use for common scenarios. I especially appreciate mapping samples automatically by file name and round robins are breeze. Thank you for this nice piece of software!

      posted in Bug Reports
      A
      Aries
    • Action Collect external files into Project folder does not update sample paths

      When using action Collect external files into Project folder and selecting to copy samples to project folder, samples files are copied, but paths are not updated in Sampler configuration. When removing original files, Sampler cannot find samples and has to be reconfigured.

      Steps to reproduce:

      1. In HISE, Create new Sampler instance and load new sample file e.g. C:\test\test.wav
      2. Select Tools -> Collect external files into Project folder, in dialog select Copy everything (including samples)
      3. Save instrument and close HISE
      4. Rename original sample file to e.g. C:\test\test2.wav
      5. Load previously created instrument

      Expected result: Instrument loads correctly
      Actual result: Instrument is missing sample file

      Environment: Mac OS El Capitan, HISE standalone

      posted in Bug Reports
      A
      Aries