HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. dev2222
    3. Posts
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 34
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: How can i get table X or Y poistion (from index) in script and then print it to console?

      @d-healey said in How can i get table X or Y poistion (from index) in script and then print it to console?:

      @dev2222 Attack time of what?

      the table is long 1 bar
      so i need it to count it from bpm how many ms is the first point in table far from the begining of the bar

      posted in General Questions
      D
      dev2222
    • RE: How can i get table X or Y poistion (from index) in script and then print it to console?

      @d-healey no, i mean there would be label showing the attack time

      posted in General Questions
      D
      dev2222
    • RE: How can i get table X or Y poistion (from index) in script and then print it to console?

      @d-healey ed3fb940-44cb-4025-8697-b84c02bc1902-obrazek.png it suposed to count attack time

      posted in General Questions
      D
      dev2222
    • RE: How can i get table X or Y poistion (from index) in script and then print it to console?

      @dev2222 also setting the point if it is possible, i tried look trough docs and i cant find anything that fits my needs

      posted in General Questions
      D
      dev2222
    • How can i get table X or Y poistion (from index) in script and then print it to console?

      How can i get table X or Y poistion (from index) in script and then print it to console?

      posted in General Questions
      D
      dev2222
    • RE: How do i get current project time?

      @Christoph-Hart do you know how i can implement the shape of the tables constrols gain in scriptnode without code?

      posted in General Questions
      D
      dev2222
    • RE: How do i get current project time?

      @Christoph-Hart oh god thanks so much! exectly what i need!!! 😁

      posted in General Questions
      D
      dev2222
    • RE: loadFontAs Error file not found

      @Christoph-Hart damn thats weird, thanks

      posted in General Questions
      D
      dev2222
    • loadFontAs Error file not found

      okay so

      Engine.loadFontAs("{PROJECT_FOLDER}Fonts/Montserrat-Black.ttf", "Montserrat-Black");
      

      f7e08f41-2832-4b02-bb47-78de69541634-obrazek.png
      what is the problem? im not sure, this is weird

      posted in General Questions
      D
      dev2222
    • RE: How do i get current project time?

      Okay thanks, iil wait for his answer here

      posted in General Questions
      D
      dev2222
    • RE: How do i get current project time?

      @d-healey i really need this to be fixed, i could pay

      posted in General Questions
      D
      dev2222
    • RE: How do i get current project time?

      @d-healey is there any other way how to do the thing i need?

      posted in General Questions
      D
      dev2222
    • RE: How do i get current project time?

      @d-healey

      Content.makeFrontInterface(383, 326);
      const var t = Content.getComponent("Table1");
      const var transportHandler = Engine.createTransportHandler();
      
      inline function updateTableValue(gridIndex, timestamp, firstGridInPlayback) {
          local BPM = Engine.getHostBpm();
          local secondsPerBar = 60 / BPM * 4;
          local currentBars = (gridIndex * secondsPerBar) / 8;  // Assuming 8 divisions in the grid
          local fractionalPart = currentBars - Math.floor(currentBars);
          t.setTableValue(0, Math.round(fractionalPart * 10) / 10);
          Console.print("Current Bar Fraction: " + (Math.round(fractionalPart * 10) / 10));
      }
      
      inline function onGridChange(gridIndex, timestamp, firstGridInPlayback) {
          updateTableValue(gridIndex, timestamp, firstGridInPlayback);
      }
      
      transportHandler.setOnGridChange(function(gridIndex, timestamp, firstGridInPlayback) {
          onGridChange(gridIndex, timestamp, firstGridInPlayback);
      });
      
      transportHandler.setEnableGrid(true, 8); // 8 divisions per bar
      

      i dont understand this, sometime it says 3 argumentss expected and now argument amount mismatch: 1, Expected: 2? i have no idea how to do this

      posted in General Questions
      D
      dev2222
    • RE: How do i get current project time?

      @dev2222 the thing is i cant find anyhing related to grid callback

      posted in General Questions
      D
      dev2222
    • RE: How do i get current project time?

      @Christoph-Hart can you please help me with these 2? now main thing for me is to get the table1 show the 1bar position.
      thanks

      posted in General Questions
      D
      dev2222
    • RE: How do i get current project time?

      @Christoph-Hart hey i think there is little missunderstanding
      i need it get the current postion in one bar
      2d8f64d7-81a4-44c5-ae50-4098535d3322-obrazek.png

      posted in General Questions
      D
      dev2222
    • RE: How do i get current project time?

      @dev2222 the things i wrote doesnt exist, they are made up so iil finish them later, and thanks for answer :)

      posted in General Questions
      D
      dev2222
    • How do i get current project time?
      Content.makeFrontInterface(383, 326);
      const var t = Content.getComponent("Table1");
      
      function updateTableValue() {
          const var currentTime = //get current time
          const var BPM = Engine.getHostBpm();
          const var secondsPerBar = 60 / BPM * 4;
          const var currentBars = currentTime / secondsPerBar;
          const var fractionalPart = currentBars - Math.floor(currentBars);
          t.setTableValue(0, Math.round(fractionalPart * 10) / 10);
          print("Current Bar Fraction: " + (Math.round(fractionalPart * 10) / 10));
      }
      
      function onTimer() {
          updateTableValue();
      }
      
      Engine.addTimerCallback(onTimer);
      

      I need to get project time to determine the 1bar

      posted in General Questions
      D
      dev2222
    • RE: Lock specified (index) point in table

      okay thanks im gonna watch now

      posted in General Questions
      D
      dev2222