MonoMode clicking....
-
So I have two samplers in my instrument and a simple "Mono/Poly" button that calls this:
inline function onMonoPolyButtonControl(component, value) { //mono or poly if (value == 0) { TheSamplers[0].setAttribute(2, 2); TheSamplers[1].setAttribute(2, 2); }else{ TheSamplers[0].setAttribute(2, 256); TheSamplers[1].setAttribute(2, 256); }; }
When I set this to mono mode I get a faint clicking when I play more than one note - so the sampler is cutting off the first note to play the second. I've tried to set the sampler fade time to a larger number (all the way up to 3000) but that's not making any difference, it's still clicking.
It goes away (obviously) when I'm in poly mode
What am I doing wrong?
-
What happens if you set retrigger to "Do Nothing"?
-
@d-healey sadly no difference...
-
I think you'll need to script the voice management.
-
@d-healey yeah starting to think that way....
-
Actually it might work if you set the soft limit as well as the hard limit.
-
@d-healey yeah tried that - nothing doing...
-
The soft limit must be one less than the hard limit
-
@Christoph-Hart said in MonoMode clicking....:
The soft limit must be one less than the hard limit
well I set the soft limit to 2 and the hard limit to 3 - play a note and the hard limit gets reset to to 256 - and the clicking is still there...
-
OK well I must no understand how MakeArtificial is supposed to work. This snippet
HiseSnippet 1217.3oc6X01SaaDG2lfqZRalVmpl1KuUsWDDsoNrVZ0JUEHIfhVCDQnOHgPUGNmSNE667NeIaQHd29.tOJ8av1+6bbrCyABAVqTWsPJb+e3te2+msaI3NjvPtvvL+giBHFl20p8HlrW0dXJynQMftkOmwortFaOJ.GFR5XXZlaWEay7Kane93q1F6gYNjDRFFukScHul5SkITas4uR871A2gbH0OkzOYyFNbVUtGe..kbV1FAXm93tj8vJwVxxv7V06PkbQaIVRBMLWdadmQs6w+cVj7ukFROwinVTwnMrQQj2g60QgXEUip8ndcZEekCMLLsZkX.xEY.tuUSZG5D5IFhuUy.knQZ6g4RWD7pb4vyNK3YlBdKGAu6Y01QPCjIbTX6NVMXRhvECtfzvJRVik9SSqpbPBlrrOtOYGArXhFkV219gnmZauxKJVnXgc83mf8BKqNg83RRiZgnWdzw.O2ALGIkyPblhw9rRqTrvoEKjm5VpI.FveUtKQp3s2.+SH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zcfPq55YbMMqyvP1hNyx3e.3f54bD
play a fast run of notes and you get hanging notes and errors all over the place _ I must be doign something wrong...
-
I just tried a sampler with hard voices set to 2 and soft to 3 and it works fine, no clicks. Could it be something else in your project that is causing the clicks? I'm taking a look at your snippet now.
-
Here's how I'd do it with scripting.
HiseSnippet 1138.3oc6X81ZaaDF+jcToVsdrNJi8RUXTrgVi7Va1JYklD+mfo0Il3ztAiQ2Eoy1GQ5NMoSdyD561K2Wh8kXvd29H0uAaO2IIK4DkTOSbYjUQfj64O59cO+42yoLHfaSBC4AHsJGMymfzts9vYLwjVSvTFpWaPttGmworwncm4iCCINHMsx6IUqUYCj54sOaWrKlYSxDgPuhSsIuf5QEYRGr8yottcwNjind4r9Qa2ylyZwc4Q.TJqag7w1mfGS1GKMqjNR6FcbnBdvPAVPBQZarK2Y1vI7elEa+qngzicIxEMQCgWTr3tbWGIhk+Mp0DpqyfzibHBooOHK.TNN.bW89TG5b4YAhOVovLyi7wCsRWF7ZlGdVEBulEAOsbvaiX3cG8g1ATeQlFI1tkdOlfDLBCof7vJ1VToeUSuEGrfIZ3gOgzM.VL2iZaZY8.yGaYUeqpFUM1ykeL1MrgbG1mKH8ZGZ9zu+G.cihX1BJmYxYREGvpUupwoUMpPGUqO.FHe0XLQH0sej2wjfZ0M+FyMs.qLgmSi+k7I05Ph.BvLFwsVyMkauT4apZ.+Xd1cazn2WamLTEvcckuQiSMpX7lETKKcKVShi0XJ37.yoX2HxbCgb3hEI5WbQR9ZX63LWNC4rdLp3.eB6hJcPIoa3udYu1XAVVMkHCrymDHnRHn0lLEZSiqspn2lDdhf6CMpmqvCJ+4NQtXwh8DRhfDEPLXghOYAFKjJlkmnXsznrrv8N5CnB6IEi2REfWHpstwaBsSU8NiFQrEYfcC8te25miIOTt4ELB31JxCXEIn4UwT.+kdJfV4qKr9+Kf2Ry5eC0n4BI7+CM8.xXSWbnheDn5jKoNlO07gO4IaU.StQBeIcjYMvt6oLrdFGpplnAKlId2YclBLI8b.SS4QAdY4qOkqUNmYGfkYD0lhcqIspRJbxY1YHv25LLpyY9ARzygNy6eey6EiKZ3yIyZCA9Zo6Q8yOF3cdDT6PZLJY5Ph3hY5W6iHLtpFQjlnSkXglGbyKJ6bkWp53TfYYh9vDnOLA5J.JeTLTtk9PXXipcUAjOUs17awSIl6QfwPxf5ENJ5u9ye62W1QQ+3ROJ5.aAr8GEfYg97vEdwCIdzi3LYDIS3KCgqYS9oCkY47xawwAEp5sOqKbHKzmgXQTfpbYGOdDSrP4Q40wLnM9O8GF89ibn7xA22wT7JoXbH0y2kzgMk3BLfJL9I.k2HbjqHU5h008gI79S3Lpc9j9gDQ.c7XRPdrW3AZGg.9R5LI2c6CItDb9B3Oe6W.Ed3.HNQVwXQykOVbY4qOSOFtlxlQyqGj5k++Io9g7HAkMtOFJT+E3J2vE7FBbo1jjO.W94uZkj7gwqsjqiISYNpE+M7jnrobsVhxloJu1rGdX6.9qsiuSkre4lJIPrko92eUQuubsYSj51hfe5VMrPd.q6qsskozGB4fh84KVAe9xUvmGsB973UvmMWAe9pUvmu9R8QNvamHA2KtcGDLni5NtZZcXXnaQ0Yg9G.FGstU.
-
@d-healey - yes this works but..... it runs into the same problem I'm trying to solve here:
https://forum.hise.audio/topic/2984/synth-isnote-eventid
Where I will post a follow up and try to describe what the problem is....