HISE Logo Forum
    • Categories
    • Register
    • Login

    Console.print "drawThumbnailRange" start and end

    Scheduled Pinned Locked Moved Solved Scripting
    2 Posts 1 Posters 26 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • rglidesR
      rglides
      last edited by

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

      1 Reply Last reply Reply Quote 0
      • rglidesR rglides marked this topic as a question
      • rglidesR
        rglides
        last edited by rglides

        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);
        
        1 Reply Last reply Reply Quote 1
        • rglidesR rglides has marked this topic as solved
        • First post
          Last post

        13

        Online

        1.8k

        Users

        12.2k

        Topics

        106.2k

        Posts