• [Feature request] Lossy monoliths

    Feature Requests
    15
    0 Votes
    15 Posts
    327 Views
    d.healeyD

    Ahhhh I decided to have another go at it. I think I've solved it but unsure if the code is a little messy. I was thinking along the correct lines before, just I was not following the logic. The problem was that the start position was being applied multiple times to the end position (once for each mic position) whereas it should only be applied once. Here is the modified function.

    void apply(const Identifier& id) { auto value = propertyData.getProperty(id); if (id == SampleIds::SampleStart) addDelta(-int(value), { SampleIds::SampleEnd, SampleIds::LoopStart, SampleIds::LoopEnd }); for (auto f : sampleFiles) { apply(id, f); } propertyData.removeProperty(id, nullptr); }

    The addDelta part was previously in void apply(const Identifier& id, File& fileToUse).

    Hoping that improving my C++ foo will make me more useful to the community :) or at least more useful to myself.

  • 0 Votes
    1 Posts
    144 Views
    No one has replied
  • 0 Votes
    5 Posts
    377 Views
    Matt_SFM

    Adding snippet

    HiseSnippet 897.3ocsV01SaCCD1osAsD1Pfz9AjwmBZLTCvXSBMMVKvT0FP0JCs8IjwwkZgicjiCipI9Ou+AamSRaRYADqRKenp2KOWdty2cN8URBMIQpPVNmNNlhrdp8fwB8ntivLAp29HqkrOBmnoJubUcFGiSRngHKqleznvxoEJ64WuuCliEDZoJD5LIiP+LKhoK01euOw37CwgzSYQU7d685QjhtRtLE3SS61nXL4J7kziwF2ZXirV3fPlVpFnwZZBxpUGY33Aij+Pj6+YrD1EbpQH.M.BTt5Ck7PCiM+G0cDiG1eRdmffnzurJzLuJ7b6iXgro5KqFKmYvqDQ05gUiYoWyYnWv8QuZnjUEJ0JmRqXOfnXw5RKF9rncOAb3LDCk8pTI2WTiEZX2UBdHzaDguhdnBDlhvem1sW2C9YscccgReh16ZLbPKitP1QdSf267l.9RpFTGKEff+pS8XU.YNPQZTOMMJAvrs2tdttLAmIndCSEDMSJ7jhNoZsTDXBoRx8ISh25vakmRWy8mtNrg9unPxwQQ0oJwttNtNbIAy8TXQH7BNBqGsg4+Pl3Grd469kdA.gblRuMRn5yLQy238rlHivhKog9f1agzu9DsfxqtlIREDuKlyu.ZL8uaFs1tUR1ikZ5IB+rjx8VWu6ZZ3vZsUDJNUUqYy.i5g.5C0hKnppkTiiPWzrslK73ZMI4UkJNJE8DL8IwzB4xYqfZZjQEkUnktQACAW0YMzKUzPmWDQLHHN1EUTTF8qtHAcW3KW.exIZV.Vzd5A7jPXa0z.+q81GqwlQqBJAzLlpzLS0vZe50vdp7AMG68oIWokwYbtnU.hyif02Tx3uu23pBrjijQPbvJPsUCTk.uviLeJC9dwyF7H7Ml7zHyLyAFJE3to6VtaCaa+qMIvNLYXJGqmcwlYadgAnkZlsIlMFhDldb0s82caWq6ukpcsKiqsg4QR2Ur6yzjQ0y2F0vWSG3+Y9Vb2wyrOX3PJQWR1V1G9sG7hh+YpT2kFnuHS0Lwkv1QEyzPbbZz.3pTBEXhPP4IlljFlQob41FYSkY.UDlI7a3ovXfQ1pvXvDinHLQIOmjOKZto5IYZ.NIxtj1A9ZAP1qb7yt8FsQQvklmSHlRwqfxX8X1bNvr0bfY64.yqmCL6LGXdybf4sOHFy2q7gTsLJeLATz+frUgVVGHvPWVVGI5O.dTc6z
  • Sampler table sorting resets on edit

    Bug Reports
    8
    0 Votes
    8 Posts
    370 Views
    d.healeyD

    @Christoph-Hart Thank you!

  • 0 Votes
    37 Posts
    2k Views
    bendursoB

    @Dan-Korneff Cool thanks, I was learning scriptnode these days and I was able to do that. But how did you monitor the Sample Rate changes? In your last code post you were asking about that.

    Making a timer to monitor the current sample rate would be another option to constantly output the values. Wouldn't there be any problem with this?