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?
-
R rglides marked this topic as a question
-
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);
-
R rglides has marked this topic as solved