Phase artifacts
-
Hi guys. Working on a script to modulate phase (with Message.setStartOffset) with note numbers (I need phase to be different for some notes). Thing is I get a lot of artifacts on compiled plugin. (not noticeable on Hise)
Is there a proper way to do this besides an array and phase values for each note? See example:HiseSnippet 1547.3oc4Y1saaaCEGWJIZcwqMcE6iqI5UNKsdhRxeHzEzjlOZCVSSPbV1FBBJXkoiIpLomDcVCJ586wZOBCXuH8MXijxIV7DOuNCrtTrbk+eHOj+NGRJcnx9YhDZdtHywcwCOe.0w8ldsOmK6sQOBi6rylNtK4sKIWRyPEldz4CH44zNNtty+XsA2EWvw72ae3iHoDdBcrIGmiDrD5SY8YxwV2esukkltMoC8PV+R8NZscRD7MDohgJdl2y2Y.I4kjSoOin61bdNtezVcXRQVaIQRycbW3QhNm2tm3m4E8+HVN6EoTs.6zVMPEl2Vj1QSr92Nazik1Y+Kh6bGGWu8GmEluHK74d6x5vtz93rwmZZ.M1ix4C24lFd3x34OQ7vS.OmRzsPAcJHDcFlRj1joWNF0.SXuRsCWR44L44kWt9OE263sOSlzax7N2D3UsP8uMuiV7uk2Vc6RSjigcAus+g2uqzKUfxm30lwolSjFP9RiF88jynnGS4zLcREOkCk+165gxAuyGJ2KQpl9CyH77AhbqAtMsO6PAWmQFa76xoamQ+oCzqxksugfjMwld6C2VEjSzm1D4vLy1k06KFxkVaOleld3f8olRqgS3IEKbs4IES7AYtW8r2c7ZmjwFHG2hlsOaj0wzYuGpnUm4VcQOjZ0OWhNijgHYYOSHo62ijSQqhN93.78P90v33f3nStG53f.fNDniTZyOpCZnAP2DnaAzw15PefF.VH.rP.XgQ.MfuP.egJ9tOtVjeX8PitEPGaqi7AZLPa3qkueSrY7iBA5HftNP2.naBzs.ZEeg07CvQloutusDaKCrkg1REZ3ZMiZzJvHqaKaXKaZKaYKisjM7sk5blJHZVOnUrwP.zPHzPDzPcngB9vgwMMxl1xV1xXKYSeaI1VFXK0rEVCGD3aVAZFAz0A5F.cSf1fVHF2nX3isjs7skXaYfsLzVFYKq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3nnxv9aYJwz0cKttXIytdm+DPq5nZN
-
@hisefilo Don't you need to ignore the event first and then generate your own after computation?
I'm not sure though, I am not comfortable with Message Events...BTW, what is the difference between
Message.delayEvent
andMessage.setStartOffset
? -
@ustk Start offset changes the position in the sample that playback starts. Delay event I believe changes the time at which the event starts.
-
@ustk thanks mate! got the atifacts on both Message.delayEvent and Message.setStartOffset :(
artifacts-phase.mp3 (1% CPU, so glitches are not CPU related)
I guess problem is sineweave generator is not doing a polyphonic phase handling. Any clue on how to do a polyphonic Message.setStartOffset thing?? @Christoph-Hart ?
-
@d-healey I think delayEvent is delaying midi events, and setStartOffset is doing things on audio samples
-
@hisefilo That's what I said :p but you said it better.
-
@d-healey LOL
-