HISE Logo Forum
    • Categories
    • Register
    • Login

    SFZ import - on the fly...

    Scheduled Pinned Locked Moved General Questions
    9 Posts 4 Posters 393 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.
    • LindonL
      Lindon
      last edited by

      OK so we all know HISE will support importing SFZ files to some extent as part of the build process but....

      I have a potential client who would like his end users to be able to load their own SFZ files into the sampler...

      So it occurred to me I could:

      1. read the SFZ file and parse it into a sample map...
      2. Save the sample map as part of an expansion in (say) an expansion called: UserSounds
      3. Move the wav files to the {PROJECT FOLDER}
      4. Do something to let my app know theres a new sound/expansion/map (this I think I have sorted..)

      So next time the app loads it will find a new expansion(or a new map in the expansion) and load and play it correctly.

      Can anyone think why this wouldn't work?

      ..and if not...HISE already has the code to do step 1. all I'd want/need/ask for is the ability to call this code in my HISE Script...oh and some way to bulk copy wav files around, which I think is "a very good idea" anyway...

      OK have at it - comment away....

      HISE Development for hire.
      www.channelrobot.com

      Christoph HartC 1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @Lindon
        last edited by

        https://docs.hise.audio/scripting/scripting-api/sampler/index.html#loadsfzfile

        LindonL 1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @Christoph Hart
          last edited by

          @Christoph-Hart oh wow....(slaps head) great!

          HISE Development for hire.
          www.channelrobot.com

          1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey
            last edited by

            You'll be mixing file based and encoded expansions. I don't think that will work.

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            LindonL 1 Reply Last reply Reply Quote 0
            • LindonL
              Lindon @d.healey
              last edited by

              @d-healey said in SFZ import - on the fly...:

              You'll be mixing file based and encoded expansions. I don't think that will work.

              -- well Christoph points me at an easier solution - but whilst we are here: why not? encoded/not encoded? The sample map itself includes if its a wav file or a ch1 file it needs to use no?

              HISE Development for hire.
              www.channelrobot.com

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @Lindon
                last edited by

                @Lindon I didn't think it was possible to mix and match expansion types. You can only select one in project preferences.

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                LindonL 1 Reply Last reply Reply Quote 0
                • LindonL
                  Lindon @d.healey
                  last edited by

                  @d-healey said in SFZ import - on the fly...:

                  @Lindon I didn't think it was possible to mix and match expansion types. You can only select one in project preferences.

                  you are probably right - but Im using "Files Only" - I never actually use any of the expansion- focused calls or objects e.g. I never make an expansion handler - I dont need it...

                  HISE Development for hire.
                  www.channelrobot.com

                  d.healeyD 1 Reply Last reply Reply Quote 0
                  • d.healeyD
                    d.healey @Lindon
                    last edited by

                    @Lindon In that case you'll be fine.

                    Libre Wave - Freedom respecting instruments and effects
                    My Patreon - HISE tutorials
                    YouTube Channel - Public HISE tutorials

                    Y 1 Reply Last reply Reply Quote 1
                    • Y
                      yall @d.healey
                      last edited by

                      @Lindon the problem is that after a hundred tests on sfz and sample Maps created manually, the sfz integrates well but once compiled, there is a big problem with the note being held when reading in the daw. I imported my sfz and converted to sample map and compressed to ch1. I tried with 2 sample maps of the same samples. one import sfz and the other manually. in the exported plugin only my impors manuals work correctly

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      19

                      Online

                      1.8k

                      Users

                      11.9k

                      Topics

                      103.8k

                      Posts