HISE Logo Forum
    • Categories
    • Register
    • Login

    Dynamically switching processorId of an AudioWaveform Tile.

    Scheduled Pinned Locked Moved Scripting
    9 Posts 2 Posters 303 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.
    • CyberGenC
      CyberGen
      last edited by

      Hi,

      As stated in the title, I'm trying to dynamically switch the processor ID on an audiowaveform. I'm scripting a very basic property change, but it's not working. It shows the change in the property window, but not in the audiowaveform tile. Can you help me figure out what I'm missing?

      Thank you.

      const var AudioWaveform1 = Content.getComponent("AudioWaveform1");
      
      inline function onKnob1Control(component, value)
      {
      	switch (value)
      	{
      		case 0:
      			AudioWaveform1.set("processorId", "Sampler1");
      			AudioWaveform1.changed();
      			break;
      		
      		case 1:
      			AudioWaveform1.set("processorId", "Sampler2");
      			AudioWaveform1.changed();
      			break;
      	}
      };
      
      Content.getComponent("Knob1").setControlCallback(onKnob1Control);
      
      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @CyberGen
        last edited by

        @CyberGen Probably safer to use two waveforms and hide/show the one you want.

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

        CyberGenC 1 Reply Last reply Reply Quote 0
        • CyberGenC
          CyberGen @d.healey
          last edited by

          @d-healey I'm not a big fan of that. I try to avoid it whenever possible. I've pretty much set everything up so that one set of components works for other in the same category, this keeps my component count manageable. Is processorId a property that must be left alone after initialization?

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

            @CyberGen said in Dynamically switching processorId of an AudioWaveform Tile.:

            Is processorId a property that must be left alone after initialization?

            I think it depends on the component. Can you make a minimal snippet to demonstrate your use case and issue?

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

            CyberGenC 1 Reply Last reply Reply Quote 0
            • CyberGenC
              CyberGen @d.healey
              last edited by

              @d-healey yes, so basically to simplify things I'm just using a knob to switch waveform that is being displayed between the two samplers. It's a bit more complex in my actual project but this should recreate the issue at a basic level.

              HiseSnippet 1365.3oc6YszaaaDDdojWmH0zflfTfdo.DF8fbQfgn76VTDYKamZjHGAKmzdKXE4JoElbWhkKchZQ9O0eB4+Q+S368P6r7gHorrisZp6K4CFblcmY914Mr6HE1zf.gDYT8jQ9Tjw8vcGwUCaMjv3nC2CYbebaRfhJMiYs6HeRP.0AYXT9oZFFUV.E8y4OYWhKgaSyXgPuRvroOm4wTYb6z7YLW2CHNzSXd4t8ZMOzVvaIbEg.dJiqi7I1mRFPOhnuVIL56IACQFeMtQ+d1M5u4paYss01at11VVquUu0p2v1Y8sWc0MV0oeisHarEHzh66vTBYWEQQCPFKrqvYT2gh2viMvqXArdtTMgEpKX4X1GHbczOQ82nVCYtNcRcTAHPocxbakicaOB2l4vFyOy88YQGXlIQdGnQohvqbA3YcYvaJPxHGjVHFRO.20Vx7UYmnwymfOjCQy9DHNkGJw2EUhVB2R.2fqVwibJ8.IPLVhZaTu9iMges72VsJDqBTlmQjl6D5vD+.4LZegzyx76LS0v.ppkvyWvAhZKU7ZKo0QUF2kwol8C41JlfaJ3OiK5YoUfT3VyNU5GCFxMjtb0etZkf2vT1CMqkvoBvphMIfZV+afupTzLqDPAS6m5CNzYoGatTWhmuKUFggKJg8PBe.0oV7g8jTxo5uRsh0MzJMtIV4cUqTUaq2ANmo6Ei7OKsr1hIdoVDW2dPkRshNOPw4bqGITzWvqE4.q9tplSdT+9S8rDcAOiodrt.VdUBViG50iJyG9zWDRRKl4u30Ky2N1kj6hB9gbl5E9zD5rRWqoTmfR7oPESoDDBWUEUu74I0KEhSHlitFtXrCE8Xx2lCMoxtehx55xbnxHsbGbTzYRgO+InWd3dDEQWEm.O.x9Toho8LF6QOC5gFWSWAuGM3TkvOB+I4DHC7M9E71w.388ZNJCMG0LWRLLT.mlDqehSZuq3QB5Ga7qfBGo+32fOfYH9cY+DHFFasBzD6hcrfdkBmPWhpXCT8XljCfbqBcszcl3AL0n79yI6ptvkmaUepM8mZly0DtO.2Q2cZ53szTvqNU7uX7lLi5Sw62uO0VkA1EvG7iW4.oO5P4KigxCwcUPGOOFePRBVDdFmtY8wXOC+q8dFcjTWAwIN8L8Zuu4tgf+RVj6uzLxT63IB4ErUBxOl5SIJH7mSl6173iepTD5OoTm+jnjkSjP2avUj+fWvofeWk+M1RJBB5COmHcEj+nNgxAZeUFmiomQkAE4cTnGD64bpaftpz.X8x.pNVyraSTR1aye6HqT+DRT7FV9Jh1ZB5FSPu5DzqMA85SPuwDzalQG6PaS7iWaw1kHg1LdhKL63NWuYGfl5Pf2dtatKavXqDyoXulbWcryOBf4Vg71b+va0NY+4a7V95A2Ov5rURwXWlNTsO+LnXE3nw3Cg4g8IgtpTtEabzVvE9CEblcwRCHUev.pLO1m5CZGkBpLy37nlGScovRfYr9plOGVfkHKVwei7E27U6mZ75Kvwv0T2sy7+FCLK++9AlWkq69IiKMAqKU+CONeObTCdS873+tf5whPELmMcVGFFH1EVBvllerXI8n1X55ZZMf5R4NQD+N7SxgVoyP0GZkdHxNUUvaK46ns6MJS45QGQ6A5BSmcymRG.qZngDL2aFVWpw70klutT90kVD6PBbluoz7MktzMkZLeSo4aJMeSo4aJ8u3MktMPoGwVJdsc7eeWMVuaDG.k7n+sTUvs0zlS4uJrGLu5011EU0EDrwrJ3pypfqMqBt9rJ3FypfaNqBt0GVP85D6DpDdwMSQn1c1ONAzX+wIfkQ+AvxNeLy
              
              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @CyberGen
                last edited by

                @CyberGen Yep doesn't seem to work. You might be able to create an audio file object, load the sample into that based on the knob value, and connect the waveform view to the object using referToData. I don't know if that will work and if you only have two samples it's much simpler to use two waveform views.

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

                CyberGenC 2 Replies Last reply Reply Quote 1
                • CyberGenC
                  CyberGen @d.healey
                  last edited by

                  @d-healey alright, I'll give it a try. thank you.

                  1 Reply Last reply Reply Quote 0
                  • CyberGenC
                    CyberGen @d.healey
                    last edited by

                    @d-healey should I add this to the gitHub issue list?

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

                      @CyberGen said in Dynamically switching processorId of an AudioWaveform Tile.:

                      should I add this to the gitHub issue list?

                      Can do

                      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

                      10

                      Online

                      1.7k

                      Users

                      11.8k

                      Topics

                      103.2k

                      Posts