• Sampler tempo sync

    General Questions
    4
    3 Votes
    4 Posts
    365 Views
    modularsamplesM

    Also worth mentioning (if only 'cos it doesn't seem to have been talked about round here) is the file players signal_in mode. When active, the sample is triggered by and derives its pitch from an incoming audio signal. For this kind of thing a clocked ramp works best.

    HiseSnippet 1478.3oc4X0raabCDlqsnRjqcaRPPQNtG5AGTWqeZ9qnGhjskZEhksfWG2dn.Fz6RIQncI2xkqsUK5SPOza84onOA8QIG581g6Od20VV1RHMoEUFvPbFNjebl4a3P0WJroAABIxnxgS7oHiUwVS3pQaOhv3nt6fL9PbORfhJMiEs0DeRP.0AYXr7WoEXToDJ5yad4VDWB2llIBgNRvro6x7XpLo8a9JlqaGhC8PlWtY+jlcsE7sEthP.OKiqg7I1iICo6QzSaILxnbaGlRHsTDEM.YTZKgyDqQhy3wy+HV.6DWpdPcjErPwh6HbczHVKEs8HlqS+zyc.BYf6m4EVN1K7PbOlC6B4Ydi6EovLyh79CikJBukK.u5WG7lBjLxAoRwP59XKaIyWkoQimO.2kCAmADvsmGJwyEY7a3sEvD3pM8HiocjvfKLX8mUq1Flv+d7WNHjaqXBtofumPQ2mu9iW4GWoxJ+zJlWV0fASUmdajBWWpbpp0QZ4rLbcdn2IT4FlmRbCoWLQ33WzmV914SsiO04lnf2kyT66SSFO6jBThaC91q6tCQQzAkDYv77oRESCGicnmBY3wgnJ3cnAiUBeHG+JwOHyQ3D5RTESmzbnDEf+nPLTGn3AL0j7br4HGq1LywtsP7939Lk8noiwklBFAO0+DXLgYtFt8fATaUF.Kg67sKJM71u8UR29XlUTQxns+QIR3BGpoVLMfEPk0mQkx+31Voz+VWoLkuuAdd3Vyrb50xsJlxla9SoPV42C0Ve6j2+djZVn7ekTLZw77cos4mRcg5OQX7APAmAjPWUpzhYc8Dbg+HAmYmOQ6.pRxFNjJyi8odfZoTvEvYRdXyCntTRPtLwOo4tLNkHA+DcA8Ey+UgSMd8HbLbM0TEy+6VRc4+2TRcVtn6haetRRp+uvnWBzZ7tDZGHBUL9vdDf5dNzw5dgdVPseaJ.KNm5BKN1XIcaKwiqoGqAgEk6DM3ufOIJqqGajnrdpxbc7rGUclPNNh8k7cjwczm8x3AL.vGQkA5zVi6fqsI7Gpkqq3r9B2IokazGuHgaK77YIY4feJdXJra4IBgcLA6eMI3PByU2VgUX.znly9bKXxQWTpyA2KpHS4NDavoNoOAtAF3R5V8fXCUto8EwnDblEgz9Us4o2YF6c.z3oOx52VniK8IR3oFP6w5N6VxXYsEZuPxNi0K8pXaWg83igY5itBTjzMyoNeFxr2ciR45pDgxJMbHQNjph6HUW++7zlQ2gE36RlrUHvciKTVPBR2alC87zvaanC.Gng2HySC44Nu5mAkNBhq8X7izMKjuFTOx4WRVilVJpuE6GJT62ZL8rXGSgaX1QmtbH0yWft7R2rUnR3AjjHOEJGPJeUf7lWdUfTaNAxp3dvslLeWFrIWZsLadC.XZdBXylK.rFtkiygBK1PNwEckE6c.BVE+ZeGvkGcy8aC.flyXvJvSWAErSoWMe.kivsVDW9XcpMflBLtGDy3xqedn7wkixwoZE5vDcfUKnvHfclvkJg+r5nhTIEt5qg98CpJY1iqtK6DIQNoZKeH2xNhAaZE56KjppdQjZY.QumAU2idlYziPkleCSMxrqh5ETUvLGJIbGhS0LzTcWgvOn5IRJY7lmQNEkEQzmxrXA13U+78PE40kxEJwYFh0ktyaJtALNKDhw0gww+BP8Ae6IPuU2btxL2f5WyFTFZ0VcCKborEtLtQwU9tffZ0RVrOBefPn5HoeeHbywjrU8S+teYqe82Gecr6axe7wZ809h3OO+4O6IunwSeQijeDF81cfNZW3P7mPM1WdoRa4qxmOLUPSTSu5QSzkwiHqcCNRq0NqZAbm4VBwXORzM0K1OSw6h9J7H1Rww1wOEUe3tajDH0kG865UA2SO1rN5z7QBO3sfGaamv4PS2lFKfMe9BXySV.ad5BXyyV.ad9BXyKloM5mgmj1paaCDzucbwNi1bBzwZbt7e2EMrCJ
  • 0 Votes
    10 Posts
    2k Views
    Dark BoubouD

    Well yeah I opened it, it works but not when I insert it in my code, but I'm sure it's about onctrol.
    I have found another solution!

    Add knob, speed LFO knob. When you select 'not sync button' (position 1), the knob has range 0 to 50.
    Until here that's the same as before.
    But if I insert this condition:

    inline function onBUTTONControl(component, value) { KNOBHERTZ.set("visible", value); }; BUTTON.setControlCallback(onBUTTONControl);

    And then add a second knob, with value 0 to 1 for synchro, then add this similar line:

    inline function onBUTTONControl(component, value) { KNOBSYNC.set("visible", !value); //Inverse value of the other knob }; BUTTON.setControlCallback(onBUTTONControl);

    And then it switches btw the two knobs, but we don't see it! :D

    I go try it, I hope it works :P