HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. rglides
    3. Posts
    • Profile
    • Following 2
    • Followers 3
    • Topics 20
    • Posts 237
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Sample stops playing when key is released

      @rglides and false if you want Normal mode

      posted in Scripting
      rglidesR
      rglides
    • RE: Sample stops playing when key is released

      David is of course right, but if you do want to script this, perhaps to be able to let the user switch between one shot and normal you can easily use this

      Sampler1AsChild.setAttribute(Sampler1AsChild.OneShot, true);
      

      just make sure to use the as child refence

      posted in Scripting
      rglidesR
      rglides
    • RE: Sampler question

      @d-healey oh wow, so simple thanks David!

      posted in General Questions
      rglidesR
      rglides
    • Sampler question

      I have 8 sampler with a file loading mechanic and 8 audioWaveform components - Originally I was using a single folder to load the samples in any of the audioWaveforms, until I noticed that changing the range in one then changed the range in all the others, if the same sample was loaded in more than one or all of the samplers. I suppose each sampler is manipulating the same wav file, so now I have 8 folders all with the same set of samples, with each sampler/audioWaveform loading from their respective folder. This works fine, but before I scale up I should ask, is this really the only method for handling a situation like this? I'm looking at ending up with 8 folders all with the same hundreds, potentially thousands of samples in each

      posted in General Questions
      rglidesR
      rglides
    • RE: Extract information from .midi files? || Midi file dropper tile?

      I haven't tried to parse info from MIDI but my first thought would be to use a setFileDropCallback a bit like David's recent video, along with loadasMidiFile. But I might be completely barking up the wrong tree

      posted in Scripting
      rglidesR
      rglides
    • RE: Buttons

      @SBKZ setControlCallback

      posted in Scripting
      rglidesR
      rglides
    • RE: how do I change the order of the processors in the master chain on the left of the screen? silly but I cannot find it...

      @gryphonsegg ah yeah, that's part of what I mean by behaving oddly. you can only move to the bottom, so you need to decide the order first and then figure out how to get there

      posted in General Questions
      rglidesR
      rglides
    • RE: how do I change the order of the processors in the master chain on the left of the screen? silly but I cannot find it...

      @gryphonsegg you can just drag them, although it does behave a little strangely, drag one from above on top of the one below so the one below turns green and just drop it. make sure you're in edit mode

      posted in General Questions
      rglidesR
      rglides
    • RE: AudioWaveform visuals

      @DanH ah yeah, but pushing data when changing the range via an audioWaveform would be nice, if that could be done

      posted in General Questions
      rglidesR
      rglides
    • RE: AudioWaveform visuals

      @DanH does that work with other stuff, besides the loop or load? I'm working with the range but not the loop range

      posted in General Questions
      rglidesR
      rglides
    • RE: AudioWaveform visuals

      Might not even need to use a panel actually, I might have a think about this

      posted in General Questions
      rglidesR
      rglides
    • RE: AudioWaveform visuals

      @DanH it should be possible if drawing the waveform in a panel and using the sample start and end data, but I haven't found a way to push the data by adjusting the start and end in real-time, perhaps with a timer

      posted in General Questions
      rglidesR
      rglides
    • RE: Console.print "drawThumbnailRange" start and end

      Solved. Thanks to an old post from @Lindon , thanks!

      inline function onbtn_GET_SAMPLE_LENGTHControl(component, value)
      {
          if (value)
          {
              local selection = SP_1.createSelection(".*");
              local sampleStart = selection[0].get(SP_1.SampleStart);
              local sampleEnd = selection[0].get(SP_1.SampleEnd);
              
              Console.print("Sample Start: " + sampleStart + ", Sample End: " + sampleEnd);
          }
      };
      Content.getComponent("btn_GET_SAMPLE_LENGTH").setControlCallback(onbtn_GET_SAMPLE_LENGTHControl);
      
      posted in Scripting
      rglidesR
      rglides
    • Console.print "drawThumbnailRange" start and end

      I'd like to print the start and end points of the thumbnail range of an audioWaveform when they're changed, any advice?

      posted in Scripting
      rglidesR
      rglides
    • RE: AudioWaveform visuals

      There is also a good zoom example for waveforms in the example browser

      posted in General Questions
      rglidesR
      rglides
    • RE: AudioWaveform visuals

      @WannaBeGUD This snippet is plenty. You can do most if not all that you could do in a paintRoutine with lookAndFeel, @d-healey videos on youtube have everything you need. In terms of showing a single channel, I just put the waveform in a panel and set the height to double. No performance issues

      HiseSnippet 1498.3oc2W80aaTDDeu3bU0lVDEJRg2VYQEtfw3yIkF.gvtI1UVDmZYmVPJMpZycqOuj618zcqcrUUkPpeA3IDeb3i.eT3AdOL68mb203z5ZQQTNYY6c1Yl827mcl456KLoAABejVwCl6QQZWSe3btb7NiILNp6tHs2UuGIPR8wQjt2bORP.0BooU39JBZ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+2.MKqALOcwtMOkYIGqfxungPioJbqV0G17X6jdxEuxYmcVn.LI0MkZhFSo1HKYIT.6hpHGzu1qc7XV1AGxXJG76dIA+tVpN4gxgg6Gd39Nj4TeCTrwFKxOOsYhAmnDqlKFy4M6M1XiPpAP5HTsKdNEsBYcX25V2JTTO3hNWlwhOOlftXudXJCg0DGhL+nGp4sh2.tjkqeupmNGpHMO67X+iMOxxBwan2mIMGuXLt1BvHjE7l.iwSwcc81iFAEbSA355c9w2Lirk83+fjiOL0Sk4QilVagIiW9D0+wxNQs2ROQMLbuIDdnYSSBiYG3CyZy31YOJELayIf8akk7.gPp5Yjch9gDWOmn5af5ywMcJ0OHuFRurrrkOcU9kn5ltjYIkLc..lqlpSHhOujpVgW16KXrhuuv5+m68EdKnDRtWooXBFGxToMs4SoNvkjPL99PusQjINxDp4ugzSvEdiEblY9jLoOy1l5mE6KzfZIkPhdJka1b.0gRBxjM+wMUS4S7ew6IuF9BiW6WuagwqMzifKVcsF+1ao+B++tz+.wDIT5rGARBU0l1eh6PnhqIENcNziWMeq1ZpIQiVWWsV4AFR4VgKf4KNKdSC0Zs3MMR17ekyvkX5KdhYzLxp7zqFRAradXw5h58TqwKXXXWnJ2SLMyqpKHXiUUvMWUA2ZUE7Nqpfe4pJ3cWUA29UKnpITqIRgazUSDpW+1gurgl14M30Jf9a.sbDehB
      
      posted in General Questions
      rglidesR
      rglides
    • RE: How can I link a pitch parameter to a knob?

      @lijas90 Edit; I have an issue where I don't always fully read the post hehe, I saw the arrows and thought that was the problem. So you have got it linked but the range is not working. what is your step size and range set to in the Property Editor? try 0.12 instead of 1.2

      posted in General Questions
      rglidesR
      rglides
    • RE: How can I link a pitch parameter to a knob?

      @lijas90 there a little double arrow in the pitch module at the top. click on it to make it a single arrow pointing up

      posted in General Questions
      rglidesR
      rglides
    • RE: AudioWaveform visuals

      @rglides Sorry, the drawTumbnailPath here is misleading. I'm using a null because I'm drawing the path data in a panel in my own project and 'forgot' when writing. Here is the right way

      LAF.registerFunction("drawThumbnailPath", function(g, obj) 
      {
         var a = obj.area;
         g.setColour(Colours.orangered);
         g.fillPath(obj.path, a);
      });
      
      Content.getComponent("WAVE_SP1").setLocalLookAndFeel(LAF);
      
      posted in General Questions
      rglidesR
      rglides
    • RE: AudioWaveform visuals

      @WannaBeGUD

      create a local LAF for the waveform component then use (here I name the laf LAF, you can name it how you want)

      
      const var LAF = Content.createLocalLookAndFeel();
      
      reg waveformPath = null;
      
      LAF.registerFunction("drawThumbnailRange", function(g, obj)
      {
          var a = obj.area;
      });
      
      LAF.registerFunction("drawThumbnailPath", function(g, obj) 
      {
         var a = obj.area;
          waveformPath = obj.path;
      });
      
      LAF.registerFunction("drawThumbnailRuler", function(g, obj)
      {
          var x = obj.xPosition;
      });
      Content.getComponent("AudioWaveform1").setLocalLookAndFeel(LAF);
      
      posted in General Questions
      rglidesR
      rglides