How to retrieve a sample file length [Solved]

Post topics about HALion scripting.
Post Reply
misohoza
Member
Posts: 834
Joined: Sun Oct 05, 2014 12:18 am
Contact:

How to retrieve a sample file length [Solved]

Post by misohoza » Thu Mar 16, 2017 12:03 pm

Hi.

Is there a way to retrieve a sample file length of the currently loaded sample of a sample zone?

I'm trying to create a script to replace sample by changing the "SampleOsc.Filename" parameter and I'd like to set the SampleEnd parameter to the full length of the sample.

Any ideas?

Edit: https://developer.steinberg.help/display/HSD/AudioFile

Thanks Matthias.
Win 10 Home, 64 bit, 8 gb ram,
Cubase Pro 9, Wavelab Pro 9, Halion 6, Dorico,
NI Komplete 10 Ultimate, Ozone 7,
UR 44

Post Reply

Return to “Halion Scripting”

Who is online

Users browsing this forum: No registered users and 1 guest