Demo of the HISE library I'm currently working on
-
That looks OK. The performance warnings are slightly above the threshhold so it's nothing unexpected.
Are you using any filters? They are currently the most inefficient part of HISE.
-
No filters, I have 2 LFOs for vibrato, a few CC modulators, some envelopes, and a sample start modulator. I'm also using a simple gain for each channel.
-
Alright. I'll wait for your project files then I can hook up a real profiler to see if there is some unnecessary overhead somewhere.
-
Well done lads, nice to see optimisation getting some air space.
-
Private message with project download link sent. The new UI colour scheme looks good.
-
I noticed that LFOs seem to make quite an impact on CPU
-
Yeah, I recommend using LFOs as global modulators once and just grab their value at the various location (it seems like you have duplicated the LFO for gain & pitch vibrato, which also increases the complexity and kills the workflow - you'll need to change it at two locations every time).
I also noticed you are using a lot of MIDI controllers for a lot of crossfading stuff. There is a neat little trick with global modulators and that is to use a table on the receiving modulator:
HiseSnippet 1083.3oc6Y0sbhaCEVBPcy1scmlooyzoSufKZuZayfIIa+4lPBIjlYCILwT1d2VgQDzr1RTYYRIOk8QnOB6aPqj+AKm0PfoIjzMvEL9bjNxemiN57crcKA2g36yE.3yZOdHA.+Dj8XlbP8AXJCb7A.3yQMw9Rhnbjp8GOD66S5AfvhGoU.eZIP3u2s69XWLygjpB.5voNjSndTYp1V0dE00sAtGoM0yX1aW6XGNqN2kGnvSQTEvPryawWPNEqmVADXDkboO.VAsU0MEu0p6U6s4T+05L5Uc2O7RfSfPPXxNJyAPD7eT+fnC6QkbgsDKIp0DsOu2X6A7KYQ25NTeZWWhVvBXqvTj5Fb2dZmWe8wLUXoO1gXXFn9.pauVIgUe..tVqzfbwnf7FnlzdzI5SC1eV3.kSsvLbCKjExkx.YKSHWIWHakC7.FnqTD5Tff2KvEKyhL8tc7.Td1DAcjf4SkiMyFtWg65nVToyf7wagbvqZi5tFuwa9eJ5v98INxTvVB032Vt6zqEAkuBcjKuK1MM.xYREpHhPb80wCWdx3kSmvzKD7WyagfeetKD.KN2ADq4Nf.K8AwIyO+81k7uUObNsxe4DPgFP9im.YUbSm1H3ttwIVqGELMzdi.9W8IswgHJU2wrQDgTaTZdV5ZdZfWW0JaLeaONWNHatFs1Aj93.WYGra.I+UJ7Fe.VhAvuEUc6qQzL5L0e8eg9xepdn76UJo37EcuiJ2U7wY4ty4ARJ6hlXof9mJBdU9fspfhCQgDFi3pI8gEzazQxUzx5HiMg0qRReBwCZokgwCZkLno697H28YHaU4wvdnBc1uHTt7qwiHkOhnJbp23VtEOOyQpt6sEXl+PtelE1l3QayY5fdpR0QsFBxebtNQJ6ABrH2gd2tMT9Xt1XikAhvLx873ALYlLvhypErodJIaeHFy+QQ096z9vVfR8ELv6SRvqM0anK4PUYYWtRSTko35qSzdi.dOoT02eplMpcNwkfMyb+lZmnx3vBUbfbq5qV2Ds1r1a9RTDzKqOQV9AUuxwaQIczoAXGrfhYxI9QnKfPmvubQXigELXG2As0KSIFiYCab0q27E4wVFKqIZYJBBcfB9cynkye95MMbmrauhx8+MTtqmP4pYWSob2HTtOW38.gw0xbku1XUMG6.hLfkc5QpxLKs20P4cFyasZIJqZprElkYwTxYVol5coDw+d2kLgLZEg7+smNXEI7Gpjvpj8aIR3XR1567pMMeD0UjvOFdMeyttkp5+CfyGK4dFheymOAcJm5mTcL756qlEV8XvqXcWw5d+y59QnegdwfaWZ2o9ruIuo3Uztqd124mGaYbO7vNB9abhxzB+90gZT9MK7yv+TTSsbYKvnnuXhN13oxNeiiiNX+8pnS9VTcgsXqE1hsWXK1Ygs3kKrE+vBawONCKzkB1KPx8hN5A.+KvSZYNU
I'll have to make more tests but this approach looks like it is faster (because it doesn't have to process the MIDI events and apply the smoothing filter for every module, but only once in the global modulator). But it also looks a bit cleaner to me (plus you can change the "responsiveness of each MIDI controller by changing the table in the global modulator pretty easily)
-
Aha that looks interesting, thanks, I shall experiment.
-
Another library I'm building - woodwinds again :) Just need to implement a preset system for it
-
I think I understand why you need the
textColour
property :)