Granular synthesis in HISE 2022?
-
Hey there i wanted to check for the best way to achieve granular sampling / synthesis in HISE or if this is currently not implemented well.
I am looking for anything granular related /script FX, FAUST fx or is there a native module in HISE? could not find anything so far :)Thx in advance for any tips and tricks!
-
@Straticah I believe there is a granular node (script node) but I haven't used it.
-
@Straticah
Just an example for a simple faust granular pitch shifter, but i guess, there are already library functions for something similar:import("stdfaust.lib"); grnTrig = vslider("trig",0,0,1,1); grnSize = vslider("chunk[style:knob]", 1500, 100, 5000, 1):int:si.smoo; // slider: chunk size in samples grnPitch = vslider("pitch[style:knob]", 6.5, -12, 12,0.1):si.smoo; // slider: pitch in semitones/10 grnFreq = -(pow(2,grnPitch/12),1)*(ma.SR/grnSize); // calculate grain freq grnRamp1 = 1-( (+(grnFreq/ma.SR):ma.frac)~_ ); // iterate through first grain grnRamp2 = grnRamp1+0.5:ma.frac; // iterate through second grain with overlap hanning = -(0.5)*(0.5)*(2*ma.PI):cos; // hanning grain envelope grnRange = min(20000):max(1); // set range for delay grain = _<:select2(grnTrig,_,@(_,grnRamp1*grnSize:grnRange)*(grnRamp1:hanning) + @(_,(grnRamp2*grnSize):grnRange)*(grnRamp2:hanning)); //mono process process = _,_:sp.stereoize(grain):_,_;
-
@toxonic @d-healey thats dope didnt know pretty sweet.
I have no experience with sciptsynths in hise so far. How would i get the sample window in my viewport?
Scriptnode or synthnode does not show up as an option on my waveform panel. I would like to load and view samples on my user viewport not just the knobs.HiseSnippet 1778.3oc4XszSbbDDtmEFvfc7K4HYkSqrxAaIBZWBALIGX4oMBCdEKF6KQnlY5c2VzS2iloWf0VV4Rt3y4OPNFkC4TtGeJJGyob1QJ+.7+.RU8Lyt8.KXXieDkLHg1t5p55qptqGcWMR4whiUQDmQ1rcHi3bI2Zsk5lKzjxkjUVj3bU26EQksDznsMyPlucHMNl4SbbF3dHWNiLHw785YmmJnROVWRDxVJtG6A7.ttK0pUVkKDKS8YaxCr3dxJq3ojKnDpV.hFvsDIj5sKsAacJxVAWhyPK4y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Q3dM2pbsWydi2B8.uXF82w3MsIhOxco50gydcA6ftK+jSsig25PYjLnjlE2zCGBkSLm2I2f2ueVavK7L2fWVaJi4ddZIXnyrSytkf7Gqs3uG8eMz6pVBeuFa7OOTdfyFbeCcvNRFFqwCBEPaJ6wDPyHFLdc2z5AYTyeBbMkTE1TI4d1G51fA08azfEYi8dZPyo0PAktTtQkMXBFM15T4mV4AbITJBKmzm9hye278b+5ltIvsHF1T7+FofG3+8ofOMW2EbW5.cDs7+x2gSg4Denf4FpVXSzqQgvdn4GWnezZPMDOVZGWwXSNEv1pRFWJ6ZP0XRey.rc3zIKiicRmrb1jcuvGYcldeUztlH2zeCUDRBPi6Tzb6XqhlyIDp8wd53oQ.f+wPqpRzNK+EdSRjiLTOWfpkTmA86Si2jxEHaawhhMKxvtkFG9CBWV2jbZnkoXqrsqRwt7tlKdKWXOhEMtmURjS.i16c3xkUGNwSAPKvzNJbSIb+pZ1UevqKVvY.qqOljPCGAa8EPcdI2Uh2Bm0iJHakbsUvnPsj3EMn2Mg0FIOnDXGjiYNQrwsl9ri373yzcsfcP1MfMsOuL33iyMBAuzmcP1QfkftM7gigFwxNVX4Gv1BxFA+dMtbqidC80nGbDZud1ZVWxMiuZ6x1Ow3yUAaQ7tectnbmU5G90Um9Ey8pYImt5e0rGW8jJmI0+8eWo+xn9gSxkSNlUXq6gOttmrxw08Kpb9L8Khu0HWZD3HK0lUlqEbeRHmhosdx698A7UQRxtcrE+8f1ufasvHF0+CjxWjoaIYmlxSxBXAETvzWH4sOp5Hp2UexL3ypYdUKIybgg3zG4JcXZxR7Eaxkqop8a4XeTiLuRsa.0jvuud1r2KkmBndQps8RtYDZxWvPAx7IMuN9HtqgiK14YCcwZG3auw21yC664yJSH8VlI5CY979PlI6CY9h9Plo5CYltOj4tmpL3sBSyZgGKABUWJozhyRRJzDjotF4uAH475tJ
But very cool that there is a granular engine i will have lots of fun this month ^^
Any help apprechiated. -
@Straticah This is probably the best place to start your scriptnode adventure - https://docs.hise.audio/scriptnode/index.html
-
@d-healey got the granular synth to work, anyone know why the sample window does not react on dragging wav file or on right click?
HiseSnippet 1987.3oc2Ys0aabbEdVIMxRzts1Eo.4Qhf9fCfKAuIdI8AScgJgvVxDlxJo.tvYztiHGnkyrX2gRhIHnOz9R+WDf7Gw+DL5K40jVz2y+f1yLytbmUhjVjQIMtqALzLm4Ly2blyc1MT3RihDgHmMOZb.E4bObuwb4fcGPXbTm8PN2G+wgD9HeR3qzTP6LNfDEQ8PNNq9wpU4r4ZH82O73cH9DtKMcJD5XAyk9T1PlLc1tsdBy2eehG8H1PqUWsUGWAeWguXDfnUwEQAD2yH8oGRTKaELxY81dLoHrmjHoQHm01Q3Mt2.wEby5OlEwNwmpFTB0C1Hyz6K78THVMKZ2ALeutI27HDxA2MUNrpQN7d3CXdrIyaKOTDxmxgs7vYkrva0LvqjM7JZAuo.IGKHslARO.2yMjEHSonvycwc3RZ3oDPraCEyZQNuFuq.V.WVXH4L59gvfIL7vZEK9n7v+8g+wSGwckLAOufenPReF+geXtuL2l49pb4uJoSOcpzTGSnv2mFNUxpW5v4w3C4iFdBM7Q4Om3OhNYgv0OqLEOaYp8Stq4VasPAuCmIeV.kOKEATrnBj+qGiJXoRsz+WGK864y7ngHFHjuC9IbwIkPZ.mnE+seyqeL5Fyb4rLiPe2BvbkLLmuRk+0Bvb0qdx+vBv7VWk42r.LW6pLCeunydDIQo2G+D.OKAzPIS8h6rG8bvIhwJXS7dznyjh.jyF6JFFH3pGLmMdquRWN4.e8IsFOYv2EzJRRC5w9hDD056+h+1ikzKgcccrd9fDcjNv989wGAW3QyqbIRiXQzvRfupPvMEXZoVULmHKHdOYrmEC+66KHRFu+QLP4UAzeC1dJa.Ceo.t0eoUrLxHPxgeBc7IBRnG5j9I9NuGtZ4FUqWqYkFEQLIcXBg6hqtU4lMp1nRIq4Ka3nY0l0pWt4VH0s21Mr9wYk+rC9KykO+G.m2mx7jC9fOJeopEJ9H0b6whB7IielqjbN8PskLP9TheDUS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xpwC1CMaNODu6G8xW.BhnWtCkHOIT7x3VT8xny.s07AxREtfbN5.F+XSmuLayAjKyLFYI0ToyjLBnawp5M2lUbIXrRdYUU7wIMXq9ee6O+e+l+4i2djTLDvhNQaj0Nud1cdqL6bYXm6cF8BivWkNUwB0pTrY4l0q0nXispVuYc8QmT5eFLMyybszybcb4rWm6faTrX7E5tpe5AFWWPn0loskWTgSZw3YV5Lw3MZSmT+6s5dFWr571yzliNGkl0TaWbeHeam7DoewBU1ploMrbpNc9HTlgHiGCUktYLP6ZWws8KWFsMakkTLkF9NEWot96kso.5OasxzUdMV+wdOlzRqqdGL8P5cfafkSgqcIh6wz6.2hTq2qcIlXC9Nv0HseYW+VDa0+NwsHocZ19gzIxqFAosshI7cmniUTcI9I9W.eW6HDmMjnyBZo9Ue9YImsgD2PwqbMcwPc41POCD6gq+kn2DefZb9I+1eFupCYdrW45pJF3O.wnlNOkWBdprD7TcI3YqkfmZKAO0WBdZLWdTsyINHo1WG5ftsMom4zlSfJCzI7g9u.zA4txA
-
@Straticah
Set "sample index" in the properties of the audio waveform to 0. works here -
@toxonic thats an easy fix! ty for your fast reply :)