@devs: Sample selector questions

Post topics about HALion scripting.
Post Reply
Fantacyzer
Junior Member
Posts: 92
Joined: Thu Feb 16, 2012 12:07 am
Contact:

@devs: Sample selector questions

Post by Fantacyzer » Wed Apr 12, 2017 4:19 pm

I am building a custom library with a sample selector, that lets me step thru all single samples (not zones!) stored within the library. I realized this by connecting the Preset Browser Custom template to a script, changing the sample assignment of a zone. It works wonderfully and comfortably.

BUT! Since the sample selector is only connected to SampleOsc.Filename, all sample header parameters like root key, loop data, etc. are being ignored. Not even the sample length is being set. Is there a way to read out these parameters from the samples and to connect them to the SampleOsc parameters? And if it is not possible at the moment, is there a plan to implement this in future?

At the meantime I'm setting the SampleEnd parameter to 0, as this seems to play the samples by their whole length. But is that by design and therefore safe?

Fantacyzer
Junior Member
Posts: 92
Joined: Thu Feb 16, 2012 12:07 am
Contact:

Re: @devs: Sample selector questions

Post by Fantacyzer » Fri Apr 28, 2017 10:37 am

Why is this getting ignored?

Matthias Klag
Steinberg Employee
Posts: 32
Joined: Sat Feb 23, 2013 9:33 am

Re: @devs: Sample selector questions

Post by Matthias Klag » Wed May 03, 2017 5:24 pm

Hi Fantacyzer,

the HALion 6 script language has an AudioFile class that allows you to read the length of a sample.

The pages that document this feature just went online. You find them here:

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

I hope, you appreciate.

Cheers,

Matthias
Matthias Klag - HALion Developer
Steinberg Media Technologies GmbH
Hamburg, Germany
Checkout Steinberg on YouTube, Twitter and Facebook!

Fantacyzer
Junior Member
Posts: 92
Joined: Thu Feb 16, 2012 12:07 am
Contact:

Re: @devs: Sample selector questions

Post by Fantacyzer » Thu May 04, 2017 3:09 pm

Oh man, this is brilliant! AudioFile Class... this is it! And like every aspect of HALion features: not just "somehow" implemented, but in technical perfection.
Matthias Klag wrote:I hope, you appreciate.
Yes, I greatly appreciate your efforts and creativity. Matthias, thank you veryvery much! You do things in a big way. I really wish you and the whole dev team, that HALion 6 becomes a big success - deservedly so.

Cheers from Vienna
Alexander

Post Reply

Return to “Halion Scripting”

Who is online

Users browsing this forum: No registered users and 1 guest