Oversampling method
-
Hi All,
A question about using oversampling.
If I wanted to use oversampling in scriptnode, do I need to create a switch with multiple oversampling nodes in each option to give the user choice, then put the processor inside those nodes, thereby potentially quadrupling the processing?
I made a quick snippet to illustrate this:
HiseSnippet 1478.3oc6Y0saaaCFkxNzM1sq+.DfscmuLEnvv+0t.rKZZbh2L1RhQUVPuyfVhNlvRjBRzI1qX2uWg81rGo9Fz8QQYYIam3elqAJPSAZLI+H046vy4iNTzQRJ2lZ2Ify77nRDxHaaegEMHP3iLxe0XOJx3IXywbY+F8ILNp0oHimhOmDHo9E0ccxXORP.0FYXj8WTcXjeOT3Oe5smPbHbK5ztPnqELK5uybYxo8193ei43zjXSuh4lH55G2xRvaHbDCA7jEWF4QrFPtgdAQEVFLxH2Y1Lov2TRjz.HlSD1iM6Ktiqi+ZV.qqCU0nBxDVHc2nF8YN1w4Z.j46kHyypy7CvmyrYw8OkAdd3.EmNijbfQlGBRUVCHYj.R6ogzKvlV9LO4zQT34w3VbXCoGAn5jPQGKx3ewMDP.bYIWx.ZSenQ7DN7MkK+phv+8xet2PtkjI3EE7KDR5k7CeYgOVHeg+pPwYGpWuENl5w3Kbbn9KbX0tq+CMwC4Cc6R8eUwaINCowABoeZNM2pwoV5rNQfBdKNSdoGMpcSgishqTed9c.TDsAe5OZcJQRTaJQ8Aw4Q8kLEbLNkdKnp0aQ4wmRCFHEdftdt8OP4HrG5PjokSJeSz..ejZOTsQwCXxwI8UqgFq7CpwVUH9Bbalzp+hwXlEfQfo9RfwHm42gOqWOpkbJ.2C27CapMr7ZaCKDYCgmo5g+jnlEa9gJKz.923ohcOepGwmdknsCY7gADWOG56AL9phccDVCLY+IcdGhmFBmnh3Pq9DNm5DrIFobaohSn2KFJY7aNmH8YiPF3KF5ZBkosnMhPGzmQFkGR2trpsRWXBm4D13yvOQCVQ01HZvJSFLg86Bp7Ng+fvsinOiLdjh6eF9xao9ZZryYiPuywQbWCgqGKRnBaCg80V3L1qufyrTcoiXBXemqXH7bhP7uRBthvbTJaygAPsB6K4lPvgmjYj8Z3wEtvOBWtD7OPoegvFFJWShEvsiaSj8UVFU4GPeR8KYEqSmEtIUK5S0lMB0ZO4HPMCBX2UQKgG.lMQgHsVU0BbhYzJyVAWqF0h3ftVoETYU3Zp4xPfGRjGfCD8jcCwSmf6T18WiVRFoTNsI9.tgSSTEByLe9rf0s9RSpI.bByp.XArd1T+zv54gvBD8kF0C9JD9KfSSL0jO47493M+ymWBklYFJ8YJodhjNhUwFgU9lI3bphozIwrO1LDFfNO72WQ7ugJC+1GI6H5TFNMzTGjtYDmzBxNLNnaETLTTcU.Gm7nMcIqt8WxZa+kr98ujI1bTNhIs.c94LdzVwzyoNmLZl99zaMkTOUg3jwYNfdmV2kLR0l7iv5EXtk9cCkBWnPanRDkPJ+THA5DalVlKawR14U4yrp+eKSjMtLwdIftVzkBweeBDq75czl8UF25kb4E.dJVDWYr5nzX3GRfgTQsHZJU.KoTTlsP80bZUROxv.YZX+D.19zR5QlGpSlyZcFvrErxia3.qK3Rh.HLEzpVTS+2mkvPMaoKTpTzdnq63zoXALXA5WxcnyLBhvi3WnfXx5b+aD2uGO2N0i+o2hdPt+dzGyw9ltBgrO78oB+CfiY+Cli8mwIVc66DqtlNw5qjSr9xbh02cNw80tpJqkULdRek3E2W6gp7My3NyLVa6aFqsllwiVIy3QKyLdzN2LVcSLiU+JyLV8alwclYr912LVeELiOKgKpxalwM9iKzMpBaQWCP5H1w9wZaher1WY9wZeyO9kyOduMRQB3UiD1+34IAfXtWRH9lVVsKTHw8Ck5VElvknMwckh.NQHF3RBuAyM6cIrKtuUWhkunSzsooxz8C6A7s7P0dd74p1Eqftc1sLWlMqikU5kZtIVcSmXsMch02zI95MchuYSm3OsoS7nkOQ06qL51nTJevh09rPQngwYbRWmnqnh51kZaSs0u2BkVMtGNcTSliV+2iodEAYT+RijGqq+WxNvaxKcSW89+.P7AEII
Or is there a better way?
Chris
-
@bfaudio this container has a parameter that will control the oversampling factor so you can use dynamic oversampling ratios:
https://docs.hise.dev/scriptnode/list/container/oversample.html
Click on the parameter button to show the control.
-
@bfaudio You can use dynamic oversampling like this:
HiseSnippet 1078.3ocuVs0SibCE1NvvkTZ0tRU847HaEBMIPCD0GVf.oMpMPzNTz91JiGOarhG6Qy3A1zp9d+Y0eR6+f1iuDxjPV5RTaCRnbtY+ct7cbFlqnrhBUNBW+5IYLDdmfnIR8ntiHbIp+4H7WELfTnY4MbpNaRFonfEiv309AiB71qire93qOiHHRJalJD5FEmx9YdJWOS6vS9ItPziDytlmVw6COoOUI6pDpR.OqEDhxHzwj2ytjXbqV.5GIEiP3uMfkbPxQs6bL6vPRmjNGF2oUmChaShaQnsBYcRhO51VDRBBuwEwbsJORSzrB3POSEOIZj5do6BtgWvuUvLBMQQvM6Ti5NhKhGNs3TfP30GNqTslqT80AC3w7GzOqj8BqgFyhnZQCW6ofTymAjvUfz5NH8xfHZNOSOyhAOeQPeIzASHPuoJTb9hv+YPWE3fTueJYLqWNH7P.61NLbuFv+d02mTJoZtR1PIuToYWI28U0+s5aW+2q2XQSIIK0l4ZxUBAKeolMiC4OUf6JKSukkuWi6HhR1CNBo+70zM97poTWVWwQkrujquJi4k6oDwlZk46OtCf7kM3a+R+yIZhoo30A9kwx0bCbvmytCnAtVz1AmyJFqUY.Q3Q8OXxQEWJH54GmLDMuAndLWOzznjEb8jpDwmwLV3SNi84BwWFLjqoiVNFqsDLBUp+KvnmY9kAWjjvn5Y.b8fducUoggOaZXcOMDtSykuiWrQu21boDv+HX1vdVNKijytVMTPlraAIMSvdCfw8ZbqPQGGw+U1iYHYNHblwicoiHRISTrJDoM9WZ4D5MpRMW99ADcN+CHbvkkoQvdcJqqGcfNbMCGxIGZjMyEQLYrU3ufOdiMMxXuwlSMVg9cISeuJersc3+NBuoo1uY.0NDbpPntuqJMi6GPsofU6PkXR1HkjScYiyqo.8zTUIbGfkVl2etlvE9zur.1SDekLBb19rm8EEVdg832LHbe3OXN+RULaAzziPgp7jgD8HC4wrHBTyx2mtv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