HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. observantsound
    O
    • Profile
    • Following 0
    • Followers 0
    • Topics 13
    • Posts 37
    • Groups 0

    observantsound

    @observantsound

    1
    Reputation
    10
    Profile views
    37
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    observantsound Unfollow Follow

    Best posts made by observantsound

    • Can't use projucer at all on M1 Big Sur MacBook

      2nd time I'm trying to get Hise to work on my MacBook.

      1st time I followed David Healeys instruction video by downloading release 2.0.
      Back then I could open projucer but the project would build with tons of errors and warnings.
      Asked in the forum and was told that I needed to download the current build and not the last stable one.

      Ok, tried that and now I can't even open projucer.

      • Current build download: "projucer is damaged and can not be opened"
      • 2.0 build download: "you do not have permission to open this file"
        Hise.pkg: Sure... it installs, but I have no idea what to do afterwards since none of the tutorials talk about the pkg installer.

      What do I need to do to get this to work on my MacBook?

      I'm willing to learn but this is all very new to me and without the proper, up-to-date tutorials I have no idea what I need to do.....

      posted in General Questions
      O
      observantsound

    Latest posts made by observantsound

    • RE: Laf function triggers twice for each setLocalLookAndFeel ?

      @d-healey Using the txt property seems like a nice idea.
      The video was also helpful. Thx!

      posted in Scripting
      O
      observantsound
    • RE: Laf function triggers twice for each setLocalLookAndFeel ?

      @d-healey What if I know that I'll definitely re-use this for other buttons?

      One pair might be called "btnPreviousSample" or "btnPreviousFX" etc.

      posted in Scripting
      O
      observantsound
    • RE: Laf function triggers twice for each setLocalLookAndFeel ?

      @Christoph-Hart I just caught my own mistake.

      The wrong line was...

      if (Console.print(obj.text) == "btnPrevious"){
      

      When it should have been...

      if (obj.text == "btnPrevious"){
      

      Is there a way to make this more fool proof though?
      To not make it dependent on exact button names?

      posted in Scripting
      O
      observantsound
    • Laf function triggers twice for each setLocalLookAndFeel ?

      I'm trying to draw 2 triangles for "previous" and "next" buttons.
      In my Laf I have a condition to check the object.text name to either rotate it to the left or the right.
      But it's not working and print returns this when I run it

      Interface: btnPrevious
      Interface: btnPrevious
      Interface: false
      Interface: btnNext
      Interface: btnNext
      Interface: false
      

      Here's my code for it

      // Select Buttons
      const var btnPrevious = Content.addButton("btnPrevious", a[0] + 15, a[1] + 5);
      const var btnNext = Content.addButton("btnNext", a[0] + 45, a[1] + 5);
      
      const LafButton = Content.createLocalLookAndFeel();
      LafButton.registerFunction("drawToggleButton", function(g, obj){ 	
      	 //Console.print(trace(obj)); // trace converts contents of object into a string
      	 var area = obj.area; 	// get "area" property from obj and save into a var for quick access
      	 var border = 3; 
      	
      	g.setColour(Colours.withAlpha(obj.itemColour1, alpha)); 
      	
      	Console.print(obj.text);
      	if (Console.print(obj.text) == "btnPrevious"){
      		g.fillTriangle([0, 0, 20, 20], Math.toRadians(270));
      		Console.print("true");
      	}
      	else{
      		g.fillTriangle([0, 0, 20, 20], Math.toRadians(90));	
      		Console.print("false");
      	}
      });
      
      btnPrevious.setLocalLookAndFeel(LafButton);
      btnNext.setLocalLookAndFeel(LafButton);
      
      posted in Scripting
      O
      observantsound
    • RE: Mapping samples for a sample selector??

      @observantsound
      What about automatically setting the root for factory samples though?
      It seems like I can either do set root automatically OR use the token parser but not both... : / ?

      Maybe I do it like this?
      Drop everything in, detect root note automatically, export sample map as xml, then process the file to set each sample in its own group?

      posted in General Questions
      O
      observantsound
    • RE: Possible to fold all indented code in script editor?

      @d-healey Thanks for the tips!
      I might need to adjust my workflow then.

      I was following some of your tutorials for interface design and I quickly lost track of what is where.

      This is how I like to structure my code. I use fold on indent level x many times to quickly find what I'm looking for.
      I also don't feel comfrotable with using the { } yet.
      Sure it might make some things easy to read but it also makes the vertical space code needs very long.

      Is it possible to have one file for all my Lafs, one file for my PaintRoutines, one file for declarations etc. ?

      // ------------------------------------------------
      // SET PAINT ROUTINES
      // ------------------------------------------------
      inline function A_PaintRoutine(g){ 	
      
      inline function B_PaintRoutine(g){ 	
      
      inline function C_PaintRoutine(g){ 	
       	
      
      posted in General Questions
      O
      observantsound
    • RE: Mapping samples for a sample selector??

      @d-healey Thx. I'll give it a try

      posted in General Questions
      O
      observantsound
    • RE: Mapping samples for a sample selector??

      @d-healey How would I trigger notes via the ID though?
      I didn't find any suitable commands in the API list.
      there is a sampler.play_note but that only asks for note number and velocity

      posted in General Questions
      O
      observantsound
    • RE: Mapping samples for a sample selector??

      @d-healey Thanks! I'll have a look at that.
      And for factory samples? Should I just treat the RR groups as if they were Kontakt groups?
      I was wondering if it's possible to trigger samples via their IDs and have them all inside one group, and then apply velocity and note scaling manually.
      Might be way more work now that I think about it though...

      posted in General Questions
      O
      observantsound
    • RE: Mapping samples for a sample selector??

      @d-healey I'd like to learn how to do both ideally

      In Kontakt I had x num of factory samples, and then x num of empty user zones in user groups.

      posted in General Questions
      O
      observantsound