AudioFile - How to change range via script? (setSampleRange)
-
What am I doing wrong?
I've been having a hard time working through the audiofile apiHiseSnippet 1890.3oc2X8zbaabEegnVYKF6L0INc5QLI4fRGYM.PThDSmNgRThIp1RhgPwI27rDXI4NB.KKvRIwlIyji8iUO1i8iRtzysucA.wBYXKY1V2lRcQ66su262912+VLHg6SSS4IHilWrXFEY7Hr2hXwzdSIrXzIGgLdB94zwrjgzHRpflPCPGtXFIME9GCiFekbaFatNR86m+xCIgjXeZIID5kblO8ErHlnj5ftOmEF1mDPufEos6VcOwmG2iGxmCPpA1BMi3eIYB8LhbaqgQeMIcJx32h88a4R6L1oskiKcufVibrsHNVttsoj8r7G4RINiG4agL133.lfm3IHBZJxX8C4AK7lxuNNy.ujkxFERkKrQdfkyH2mGFHOhRpndSYgACJ7UoHjAdPomqQlm6o3SYArkzK8f+JECyRIzcfFqUEdMp.Oac3YoAuZfjgFjVOCROA64mvlIJ4HwyGfOIFtIGSf6IcnjsWzZ+MCbONriXwNQjKo8SfEKkXqVVVaatqk0W76Z1DtqRElWQRLOXd.i+cjqni4IQ1l+dyBMLgJ5wilwigEa8oU21mB5nTEYlu+2KkVECJk83wio9ffYLMAtRgzsbJIZVHMohTJy3oXr7neacTpgQyAinTPgtVpi9rP5Vpi5RVoTQllGRhm.L21z1JyaLddrufwiM4wmwEzyi25KZ9CM2r4O1z71rFOtVdRmVBODrSsrk4JIuMA2JddzHZx1vwJbNc4Fg3gpAY32bPldNfe1cn1F4wmDyDmOiF+lxLP4W7P.YibTAofBU33mjGNVIJ.wBjoHUiLPpCfdUj.hffL1F+CCFd9e33dW7p9m+hiNd3OZYaZ4ZY1+yZ+r9eVDKts4HHfdmqIWgRjWPvQNAJ7fMjJQQ433.45e5YOHCrJD1HCgeXNB8BYAzDEzd.94w7Q0fn6uvN0H72dxQxSDj2k6v.m3LZhfIueLNhdETzLKIdS7QzzKE7YJOZdpDx3wuy9zazAvhkK9ouo60r.wzRtK5NkxlLUqd8EcmUbGeRfpIwxb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eYDQ04bkdjh9DYeXFSviC80TuNWc990p0lxWlX9UTnimbdR62z2Upa2+9e899cklcu+tRm6K.yeA7hvzY7zJJ1iFwt.l2OUm32lR6mP+iCkCEnSuGmjTKqe9K6CGxZkwiHlmnltnXvAsIia719bU1q3mqZ8+m6yU8Kf2+TY39MKvnGSN8xwwWQCgbAEF+HbddYA0pwxmxi4ESNVdQOjByAOYhrrRI1q8.cfPP7urjxS6NjFRI5Ased2W.AajjSU8ZVIeg867WWr16qeCNCtlxDPye49t0F+e86Veu7Xr2G1Hh3mveke1aXkwoOTQAN2wpom1DepbsYMe+tHnJ2q78qppWSPmUUvcWUAaspBt2pJ39qpfsWUA6b2BJaBcvbAOJK0Ddx2fiUSiXXbbLAhxUYDn+IPk0Hxw
I see no change in the range when doing either of these operations
D :Trying to do a thing where I cut the user sample down to 1 second and then convolve using it :man_shrugging: Mini learning project
-
Here's an example that might help point you in the right direction.
HiseSnippet 2047.3oc0X07baabEegjVYSF6L0MNcxQTO4.cGGI.RvulNcBknDSz3HYFQYkbSyRfkhaE.VVfkRhISloG6eV8Rmo+4jK8b6aW.PrPhVhlwQYJsOnce66898d66qE8i3tz3XdDxn7IylPQFOAOXVnXb2wDVH5f8PFOC+Z5HVzwz.RrfFQ8P6NaBINF9CCi0+J4wLJsAR86m+xcI9jPWZ9VHzoblK8aXALQ9t867ZlueOhG8DVf1oc5bfKOrK2mOEfz5XKzDh6EjyoGQjGaML5qIwiQF+IbC210sFRspWukSsVNNMbZT2ZjUsQCa0vYXslN07bpa6VCYr49dLAOZffHnwHiM1k6MavX9UgIJ3TVLanOUtvFM.zbx1839dRSTtKp6XluW+LeULBYf6m64VOwy8b7gLO178y8f+NEAybNzcfFqUDdqW.d15vyRCdK.RFZPZiDH8L7.2H1DQNEId9H7AgvM4HBbOoCkjyhVa3Z3tb3DghsBHWP6EAKlyQEGKqWYVyx5k+4xkg6pXg4kjHycl5w3eG4R5HdTfs4ewLSBmSEc4AS3gvhJun3wdAHibQjn9deuj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