HISE Logo Forum
    • Categories
    • Register
    • Login

    Mic mixdown

    Scheduled Pinned Locked Moved Feature Requests
    20 Posts 3 Posters 892 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.
    • d.healeyD
      d.healey
      last edited by d.healey

      Feature suggestion Export user's selected mic channel mix as a new set of samples that are then reloaded into HISE - like the same feature in OT's SINE player.

      For effects plugin it would also be useful to be able to mixdown multiple impulse responses into a single IR, so instead of loading up several convo reverb FX only one would be required, saving CPU.

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

      ? 1 Reply Last reply Reply Quote 2
      • ?
        A Former User @d.healey
        last edited by A Former User

        @d-healey That SINE player feature is amazing indeed!

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

          I was playing earlier with the writeAudioFile function and it seems with a little modification that what I'm asking for (with the IR mix) would be doable. I was able to merge two mono files into a stereo file with the above function. What I'd like to be able to do is combine two mono (or stereo) files into a new file with the same number of channels and mix the two input files at different levels.

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

          ustkU 1 Reply Last reply Reply Quote 0
          • ustkU
            ustk @d.healey
            last edited by ustk

            @d-healey loadIntoBufferArray and replaceAudioFile are your friends if you use sample.

            loadAudioFileIntoBuffer array for working with audio files.

            If you already know how to merge in two separate channels, it shouldn't be hard to sum files together.
            Not so long ago I wrote my own samples from a script algorithm signal.
            A way to go in your case might be to use/create a blank target and sum the two files in it using a weight factor (level)

            Can't help pressing F5 in the forum...

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

              @ustk said in Mic mixdown:

              If you already know how to merge in two separate channels,

              This is with scripting, you just combine the buffer arrays and it outputs the merged file. I don't see anyway to mix the files though.

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

              ustkU 1 Reply Last reply Reply Quote 0
              • ustkU
                ustk @d.healey
                last edited by

                @d-healey Let's go semantic. by merge do you mean sum? by mix do you mean with a certain level for each?

                Can't help pressing F5 in the forum...

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

                  @ustk By merge I mean take two mono and output a stereo. By mix I mean take two mono and output a mono.

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

                  ustkU 1 Reply Last reply Reply Quote 1
                  • ustkU
                    ustk @d.healey
                    last edited by ustk

                    @d-healey Working on an example... Are you using external files or samples?

                    Can't help pressing F5 in the forum...

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

                      @ustk Audio Files - impulse responses. But I also want to do it for samples if it can mix multiple samples, but with this I think more work would be needed to create a new sample map, etc.

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

                      ustkU 1 Reply Last reply Reply Quote 0
                      • ustkU
                        ustk @d.healey
                        last edited by

                        @d-healey I do it for samples. It's a project I put aside for the moment but I remember I inserted an empty sample in the samplemap, then duplicate and write new content in it. or something like this...

                        Can't help pressing F5 in the forum...

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

                          @ustk That sounds promising. Does it work with monoliths?

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

                          ustkU 1 Reply Last reply Reply Quote 0
                          • ustkU
                            ustk @d.healey
                            last edited by

                            @d-healey I paused before exporting monolith, but it should work...
                            I need to wrap my head a bit into this tomorrow ;)

                            Can't help pressing F5 in the forum...

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

                              @ustk Thanks :D

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

                              ustkU 1 Reply Last reply Reply Quote 0
                              • ustkU
                                ustk @d.healey
                                last edited by ustk

                                @d-healey This is a very basic example, mono only (but stereo should be easy to support)
                                you need a samplemap with 3 samples, two sources, and a target sample.
                                I had a hard time figuring out some glitches, in fact, I just had to resave the sample map...
                                Be aware that the target should be at least the size of the biggest source. I don't know if it's possible to dynamically resize a buffer. My first sample was shortest than the second and the target, thus the if statement inside the loop to prevent iterating outside of the buffer length...

                                HiseSnippet 1622.3oc4X0saSbDEd23L.1kPKHtn2ToUQ8BmBMXa9qRATbhiCMhXhU1DTqnT5jcGaOh0yXM6rALHj30f65iPe.5EbQuoOF8Mf2f1yL6tdGu33Xh.Jp0QIJmemu4bNybNiaK3djvPtvxt3dCGPrrOKxcHS1qQOLkYs0FV1eNxMp+ZQ9T9lz.Rn05CGfCCI9V11EtiRI6hyao+7lUWGGfYdjLVVV2mS8HaS6SkYbaW+tzffMw9j8n8Mz9Z02xiyZvC3Q.fJfpXM.68XbWx8vJ0lCYYepl9TIW3JwR.K1yuN2enaO9SXw5eeZH8f.hhnpkK3nX1axC7UHVw0pQOZfe6zMdnkkMpcVXnPbX3hnVTe5H9YgiuPKvIyBy3g8bSCdUMgWkYGd1Fv6Twv67HWOAcfLShBaeFZKljH5fgTfIrt2XIPajsMDrAlaPCGDfGtdTmNDwHAwd1ZteGgZvA+wjK2G+XxlBfXj+KeiJUtry0qTYoUVnDnVHOfrrW.AKJq3rPIHQFJcNDKbbw8GDPDUctsitzZ4tDYBuxKlJbw7VEpEDpLJQkk8DDHr5RBHdRJmUdw2xnCz6DWn7winVuDm7fJOb4.N1GPOOdytlPfGpQ5jMtlgwUOZiMMWhEvFyvtZObBteuTshUeJdVP55DFuS1lbHIXESV0RYo94JWwANhtPIJKfxHNchX53iCmsdjTxYUUoQAOnrGu+.NCRnWFPTPDYoEJ87EJUj1wobJcQEihc3BmxzaWYEG5sLwsNPR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mHy3bw56BuvEGZbl9qquMLCLVL9I82oXQ0YOVLs70Whhgqi5VNm+aznrv+6aTNsP24RZS5.qtP9Idd9rH8E6Np9v+aA0c4QRn2QZONDzHL96Uvrc3bpVrwzUTzJ.4RX9Zh+F9jHr5nuTNPX0TgVdotB1aI+u90K1EHLUqC87eApG+ZVRGBiXnfDzu6iBJ6i8D7G4E+tLEVOilCfRl96ysHpkh1YzywPnJKWQ8VC5i77TGD9VHBOYapcBr4pm.at1IvlqeBr4Fm.at4Ivluap1nFSXsHIue7kj.i1MiKrraNpvpf0+fsgbtM
                                

                                I also made a test where I search for the longest of two samples and duplicate it to make it the target. But then the file is the same and I don't know if it's possible to export as a new audioFile so you don't overwrite one of the sources. Maybe using the file system...

                                Can't help pressing F5 in the forum...

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

                                  @ustk Thanks, this looks like it will point me in the right direction for mixing IRs. But will it work for sampler mic positions?

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

                                  ustkU 1 Reply Last reply Reply Quote 0
                                  • ustkU
                                    ustk @d.healey
                                    last edited by ustk

                                    @d-healey Since all samples are in the list (tableView), you should be able to make your selection between mic positions and place the target where you want as it is just a sample too finally. So it shouldn't be different.

                                    The only thing, (I'm not sampler guru as you are) is that a sample map using mic position should have the same number of positions for all samples I reckon. Meaning having a target sample wandering alone might not work. But if you have 4 mic pos, I imagine you can have 4 target samples, 3 dummy ones and 1 sum sample. Or even better, you can sum to all 4 target samples identically, so they can be heard whatever the mic pos you're at. These are just suppositions as I never did such a thing, but I have good hope :)

                                    Can't help pressing F5 in the forum...

                                    ustkU d.healeyD 2 Replies Last reply Reply Quote 0
                                    • ustkU
                                      ustk @ustk
                                      last edited by ustk

                                      @ustk Rectification:
                                      Not summing equally to the 4 targets, but summing each position to its "associated" target position ;)

                                      Can't help pressing F5 in the forum...

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

                                        @ustk said in Mic mixdown:

                                        Since all samples are in the list (tableView)

                                        Not with mic positions. They are merged into a single pseudo sample so you only see one of the mics in the table view.

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

                                        ustkU 1 Reply Last reply Reply Quote 0
                                        • ustkU
                                          ustk @d.healey
                                          last edited by

                                          @d-healey Oh sh.. I thought they were showing. Do they appear in the result of a script sample selection? Well I don't think so...

                                          Can't help pressing F5 in the forum...

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

                                            @ustk Nope :(

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

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

                                            29

                                            Online

                                            1.8k

                                            Users

                                            12.1k

                                            Topics

                                            104.9k

                                            Posts