How can I create an interface for Start-/EndLoop of Audio Loop Player?



  • Hi, it looks like only the basic parameterIds like LoopEnabled is mappable for an Audio Loop Player.

    I´ve tried:

    var looper = Synth.getChildSynth('Noise_Loop_00'); looper.asSampler().setSoundPropertyForAllSamples(Sampler.SampleStart, 4000);

    How can I add controls for LoopStart and LoopEnd in the interface?



  • Looper.asSampler() is like Car.asShip() 🙂

    There are two ways:

    1. Create a AudioWaveform, connect it to the looper module and drag the sample edges to set the range.
    2. Create a AudioSampleProcessor reference to a looper using Synth.getAudioSampleProcessor("LooperID") and use its method setSampleRange(startSample, endSample).

    Check this example (you need to load an audio file in the looper to see how it works):

    HiseSnippet 1212.3oc4V0zaaTDFdV6rkZCthJJRbbUDGbPoQ1k1Rj.DNwIAYQRZT1PnmZ0jcGaOJyNypYGmVSUk3X+Cv+KNvYtf5Qj3Bmg2Ylc8tKdyGNT.IXOsyLue7LOy6WGHEAjjDgD4z3nowDjy635OkqF2eLlxQC1B4bK28vIJhzyt0lSiwIIjPjiS8uTugSikPlue8K1Dyv7.R9VHzwBZ.YWZDUkuabuuhxX6fCIGQiJH886MHPv6KXhI.dp61AEiCNEOhrOVKVMWji61gTkP5qvJRBxYoMEgS8GKdF2J+wzD5ILhdQWjOXH616HXgZDq+G0eLkEdP18NAAF8fbVntkEti6dzP5r8yYi20bfWtFE4CmZWD75dMgmSA3sjEd210OPRiU4mnw1a6NfCOTCwvSPQXYkEU6mp41W.RvUqEgOkriDVLSi1OrSmU8dPmNq7osZ1pI7Pjn7NCK81UHhgW+O2yDWr1HhZiIgTgONJlQlAf1KakaYs51eWKgnrRcHlOhzFL+5qeu4cv17Pv5YHCreeQTrfCKZuLblwh4RCbqTctxaNEz3IOQ6CJmQ4DugS3AJpf6I3f8zJJEr1AYZsJXW1DxJsZ9hVMaTM1M1U6qi0h1dkLc.n8Ry04Bfu1VoNsOlwNAhoaWDIV9XdrZ740BsFIVUSrEf7kg0TpqZzVDKZCU.l6KTjGwauRyWzrQyWN2ICGV0QolhQjUcptrf7BTqMeRzIDYFUjJGjcTN86FWszu.KcTPPAe.mpdTLIccdBZ2JRPQo7IjpVOEffuUlD02OMQ0jx7M3yHCExHDMTWHozdcQl6RwRmR8aog3gRTNy1AdU0qe0icPCor7ZinY9tt022J029LZHQZb5a4Zs2b95pnrqq10kT86d0u0C80C1Bqv5BUoDAPNPPohpeCb1hbFzAvV1pg6VjjSUhXCSkF4AnZg4pmqYfOB.vT8O2U2SI6AY.H+Mcs4EnmQCUi0h7i.+MlPGM1vkSs23Y.3FWJgYb3mk4veF9AZIF6S+VhlW5tVGTD944rxq6gl+9ctTpw3sbRM9uTkwKzm86ecuR9BdAluAAzlRDNggUk6coaXmd.jPUpIgtQ.OgplVrg9BzPqSkMzpLe4JB2a6d.UELtZ7VqB7Bgf+ci2zwCZ4t8vgj.UNXWxcmGecmE35Ak2KCJlbiz.dMTlE8e9ip8Cu4GUClNH.dpHECeLueGIgVHT9nhtRCvs4X39GVb6CEBktoQ9dGzy1WyjEBlujzjyHxjxVXmhUDMYM1JmlLFaQSF36RUUYFvDlszo90ZHtxoVEjuhI5V5egANeyme9WubR8qFbujYhajgQepNTYa9YDFD+mVCYKxP7DlZ1tEA4dBtHdrfSCJGWojzQiHxhPux6yFJEDamuyc5cHgQvIEBf+vd6Bi0gk+4TiEfJ5d0ohK545Cbsv0SmI68eit.0++YWfCESTPE08vPfptt19Sh7gBwAD.IbNgknqkUSOiiccmrZa9DdnYwuCeoG1Uu1I8vtYG9OhOhvARwSCridpikuoYG3dyM0va3tmds2rgi0bSDTN7oAAZx9tcQnp03dKrFe7Bqw8WXMdvBqwCWXM9jEVi0u.Mz8d1XhRDYS8Pn+.vKqk91
    


  • Thanks for your example Christoph!

    I´ll dive into it tomorrow with this:
    https://de.wikipedia.org/wiki/Datei:LARC-V_(Iceland_-_Jokulsarlon_5).jpg

    : )


 

0
Online

357
Users

1.1k
Topics

7.6k
Posts