In this version the code recognizes when a new sample is loaded and recognizes the path of the loaded file, in addition the file is saved in the presets and loaded in the LoopPlayer.
Now I would like to make this first approach "universal" so that the preset manager searches for the sample in a "generic" and OS-agnostic path. Could someone direct me?
This is the snippet of the "generic" but working implementation.
HiseSnippet 2412.3oc2YszbabbDdAoVESJ6X6DmpxwInxAnDZXBZEmTRUh.eFyxDznHjrhioKjA6N.XJt6Lalc.IgUopzg7CvW8s7CHWxwbS+TxobN2xQktmY1W3gDEqnTQAGr01S28z8W2SOcOrqRFvRSkJuZq8foILuZuseuoB83cGS4BuC2yq1a42UwRYZucllPSSYgd0ps5uEWs1Z2vy76ed+cnQTQ.qfjm2WH4Ari3wbcA0ts+LdTzAzP1C3wk39NsOLPJ1UFIm.Vxp9a5kPCNiNhcLEYaEeuZ2b+PtVp5ooZVpWsariLbZuwxKDV9+BdJePDC+nkWOPQVxGHiBQKFo5s6XdTX2LON0yqle2B+eUq++A9c3g7b5E3v6YVfTHQY7n1JUMuUqXdsJadaVx7VfIUqjIcCqI8998BT7DcwJn8bK+CEZlZHEf8xlhkWuUZtt+tRfCgtYL8L1AJ3ibIZ7Iat4FD3+b66sdOlVyEiRaBA4euTFeD6bVTiVMw0VGBKoZx4TEIZPjMQf7qIYJdDSuqLNQJfOZTOmi5fjUDrGMNIh8hDzxQUAGnE8nmydIBWgq5Us4smDxkGIkIcinSYpVfRLY2FUfPu4qF0M7QPFINNqZI45orBLDsaadjYYpxoqzHIBe4pKWMGviXMP.WwFQBlnTfqYUcE+YP.H89hQbAqYfhA4Z6njzv.ZJDWa730Ivu57v52kTGQnH1kj8nZJ4HNvffopugkEpZTJvzWUuiLbBfZaPpGB7cnHjcI9w4znIr5e85OAM8O5iHaq0zfwD8XFYPwFRzRRjQyjgREIXLULhkR3BCi49EIvF2VePPSpQQOP5rNz3bPFxYSWD1YlK32WsH78qWJ6atzUp2ENvPnFkMDMRvWlMawD3PiNLLC.gbUv8yMXDqNBHXEcnkxvIh.MWJZXA2MH4P6FDC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+.6iYf4oukgB32ByMFq42A+lrfGGB5zi2OHnpplSvsttB9wWWAuy0Uvew0UvO45J3u75J3u5kKHdIz1SzxX6QSOuNc22L8dsZ4cYTaUu+MIOC2E
9521fe61-7e36-4408-a582-3046f354ec09-image.png