Frequency Shifter



  • I'm trying to implement a Frequency Shifter after following block diagram with scriptnode.

    Screenshot 2019-09-24 at 22.21.04.png

    How can I generate a quadrature sine oscillator in scriptnode? Or is there a simpler way of creating a frequency shifter other than the above block diagram? I understand that a a frequency shifter is like half of a ring modulator, can we use the ring modulator as a base for a frequency shifter?



  • also, I know I should send the input signal through a Hilbert function. So the simplest way to achieve this would be to split the signal and run it through a series of Allpass Filters which run parallel to each other, all with their specific coefficients.

    Does that make sense, or am I on the wrong path to achieve this?



  • I tried to implement another schematic with the use of a Hilbert transfer. I think I got the multiplication part wrong somewhere

    HiseSnippet 2275.3oc6btDaijTFGu53TYh8jYWfc3wQqg4PVoYa41OSDRXOSdLaDim0DmY1ckPrpR6xwMocWMcWNY7tBMWPHtsWAN.W4DfDm3.hQblQBo4JGfKHjfCYurG3xRU8C2ca2wtiCdc13xGlIc0U08+uuup9UU+5qgEQEaaSr.RoOnuIFHsFrYeCZms5fzL.6sMP5Mf6Zg+g8vFp8y1riVaJ1B7f9lHaabKfjTpGxqnT5kAN+Nq5CP5HCUbPQ.vSIZp3Go0UiFTZiZeGMc8cQsvGn0MTsKVaOUhwVDcROlnRAyALQpGiNB+XDuZKAARqrSKMJwpIEQw1.oke.oU+lcHmZ3V+mpYqcnNlugBnI6.4V7tD8VbEyKErUGM8VM7Mda.PB1HvUjx0UbaXcsVZCJOvk7kb1Q1fVD1eHsz3jmRX4kKwxCDRcK6pNlHHs5oinQUFOb3sCMhQDksmAEaXqQ6GNbMWk6WF1Pip1Id8tTL5kEnl050K3eK3NsaiUoAhcY3tu2+eiz4hqinzn9tLvlpVZlT14mKj071L6tumRDA4VLP52C2w3HMCrrpElIsssMeLldJw530uyfwx1tCkuya9sZ2yPk66yZZgMQV3CHMzQ8W2F00TGuOq82K6g5D0iap8g32LyGkIcleTlrgZjiZe.uFqq1AYXf0sGsZ7gzFTKh95F85dH15dYOAo2K33Mxn5TmuyL7n5Xhk6S5Q0LNpNhZo8L1.6G2qaSFLQEukm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I49hwEu9FPW4lkOXL60i7scpq84aak4U5h9yiyQWjpE4CTcyx179xq5TBytMbxb9og04amUAbh6RU3O3qbftLh3Gnpxc2uEy+DeaxOEsovTzlhSQaJMEso7TzlJSQa1XrsgOYz86QIccGJxJnwNNqJQRJ3BnRA9ehsjdiC
    

    why doesn't the LFO shift frequencies?



  • Getting there - after fine-tuning everything I have successfully shifted frequencies.
    The only thing I don't get is how to separate the upwards shift from the downwards shift...

    HiseSnippet 2608.3oc6c0saaibElzxiskhSZ61fhz6DVTTjEHgP7OIKzKhi+aqQiy5Z4jcuyflZjLgo3vRRYGuEE859Hr8QnO.En2sOIE8QXeCZmeHEGRQIQqZSI6PADDO+Q9cNy46LGNC4LG6gLg99HOAwpmdiKTPbSPmabBtX2KLrbDNbOAwmCNvC9mFBcLuoyEV8BfdmoJryMtF99vtBhhU9ZRMEqtp.82O8lcLrMbLgwYIH7QjkI7cVCrBhy83s+CV11GXzEdp0.tZqs8glHmcQ1ngXTUAzPv0v7Ri9v2aPp1J.Aw01uqU.xqSfQ.zWPb0cPcwXCcsCq9ezx25baHIgrPG7Ehk8AH6tDDSxUX2Krr6dbjz6KHHBNNVWTgoKdN3HqtVixOVm7yoETOtE75CwUlF7j4gWibCOANzsJCcXPf5Nz1HHIxHcGgEXgbRfrCcBfN9VA2v2csPg6u.brUf4EYi2Ux.u3Np6a7F14+Tv985AMChA6pfC9t4smNaCwFYYHJNttqFniomka.99S.xlgIqev2oj.PrrED+mf566z2xAJY5AwXaOe22CCtF4c4K+xQrY+P1r7W9U+tdCcLIp+5tdPWCO3onisMt4k9FCbsgmfuBup941HyK6X88vup1etV0Z+kZ04ZDEv6PpwKMuvvwAZ6Od0HrZm.Oj8KcFN3bn2qpekg8v3q2XD6J4SelQ24IngAVN8OxHvy5SXt86GNnC1ehIb2PzgySbEARSooaPRSrt5.c5RS7ew+BKTljVLrP4nBEHBCzI.mentk14E923+JkyyQpaRkPcwRwFGXXhk1aN1H3BBU.61K.aqA8jLyx6az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46cpYQsg+B.85Ejzd6o.CGC6a7gRjhVp2ieSTxGNbOi.Chy+vivBtpJJtG7JKSHy0RUvdP+KCPtINfTdFqPrVC+T8zSKHpV7WQSW+aMtBV+qg3m2m49dBGUP0+w+8+HuGUPt49nB5aLCv29S8Lb7cQ9ItvcfCrNE4Pjw3LwDJhaV1DHwk+tHCuLK5mdyAXgLy1zwHXnGsG4sCPCcBRbn0T4+ySJlLOxhVs7HKZVmSLMl54DShyZmpQXriE4L9Xer6HaLuPfsDN6A6YLzNHJ2j10GgbPtWfbHtfi6zOAF3Y0uOLQXyYJPuMHvv7x3bd91m.wg7xa.+a19cXCOCuiXOSz7nKjyutXZ8Wu.vfacBYr9iiiZpJOhNpotEPoHNljJh6w.CSOzYlrSWJ5lhNMGrb6POz3pBNhjttrvUwSkcCgAXOhmYZFsEXjcaTli1nNGsQaNZi9bzllyQaZMGsYqo1FxfQucX.Z.iJhy338oQkHJFOaGUD9ejlVodC
    


  • Nobody? šŸ˜•



  • @clumsybear this snippet make Hise crash for me, which build is it exported with?



  • Sorry, I didn't implement a Frequency Shifter myself so my expertise is pretty limited on this subject.

    However if it crashes, it's right up my alley šŸ™‚



  • @ulrik Jep, I figured out that it crashes, sry about that. I updated it. It should work now with the latest HISE-scriptnode build. At least I hope so
    @Christoph-Hart I have a build with custom nodes, does that affect the snippets I share?

    HiseSnippet 2608.3oc6c0saaibElzxiskhSZ61fhz6DVTTjEHgP7OIKzKhi+aqQiy5Z4jcuyflZjLgo3vRRYGuEE859Hr8QnO.En2sOIE8QXeCZmeHEGRQIQqZSI6PADDO+Q9cNy46LGNC4LG6gLg99HOAwpmdiKTPbSPmabBtX2KLrbDNbOAwmCNvC9mFBcLuoyEV8BfdmoJryMtF99vtBhhU9ZRMEqtp.82O8lcLrMbLgwYIH7QjkI7cVCrBhy83s+CV11GXzEdp0.tZqs8glHmcQ1ngXTUAzPv0v7Ri9v2aPp1J.Aw01uqU.xqSfQ.zWPb0cPcwXCcsCq9ezx25baHIg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tKJPJYoSMKJNdzNaRt8jO06vWGqQ5dRdQZiuwczdoUz9kv9NFmaGsUiE0Eguqi5fB8Au8e8Gi6lFk217cVw0juKKttwcbgavF+v+5MIhzez9w19ex0C56S+L0wZu78t3DNTq9xxPsOt3KyeLxzNmuHcDlJO.BwbkLCwTcIHDy0FODylkgXdWNxvFoCtTaoJ3xxvIKCmL+gSRiIP4Qv7NsveQgI1G5SapfxZVHVhdkfkSLu9wCnTgyqG.3Zk5QoqxLVbsJGJYZCknHLk2N+tVWkMEDWviC0pxLTqJ2op0piTqpKGp0hIfesYnj0lSkr17DV+n4oPsbdJJn4oP8wz7Tn94x7TLK1D+Sx0p7I4Jx4rHgLrV5P8m4CXLqmcXrmUPTbWDtuhtKLRmkg3jbzijqqQBVBO7vskpyouOAG1E2wRNp.xf+rHVv1zziYJnZORDz4ZlylbhIFRY+w194WXa9uka2u2xs620wWNs46cpYQsg+B.85Ejzd6o.CGC6a7gRjhVp2ieSTxGNbOi.Chy+vivBtpJJtG7JKSHy0RUvdP+KCPtINfTdFqPrVC+T8zSKHpV7WQSW+aMtBV+qg3m2m49dBGUP0+w+8+HuGUPt49nB5aLCv29S8Lb7cQ9ItvcfCrNE4Pjw3LwDJhaV1DHwk+tHCuLK5mdyAXgLy1zwHXnGsG4sCPCcBRbn0T4+ySJlLOxhVs7HKZVmSLMl54DShyZmpQXriE4L9Xer6HaLuPfsDN6A6YLzNHJ2j10GgbPtWfbHtfi6zOAF3Y0uOLQXyYJPuMHvv7x3bd91m.wg7xa.+a19cXCOCuiXOSz7nKjyutXZ8Wu.vfacBYr9iiiZpJOhNpotEPoHNljJh6w.CSOzYlrSWJ5lhNMGrb6POz3pBNhjttrvUwSkcCgAXOhmYZFsEXjcaTli1nNGsQaNZi9bzllyQaZMGsYqo1FxfQucX.Z.iJhy338oQkHJFOaGUD9ejlVodC
    

    this one should work now



  • Yes of course, if your snippet contains nodes that you've exported to C++, it won't load them if they aren't compiled.

    Just press U before you export the snippet to switch to the non-hardcoded version of the node.



  • the node was opened while exporting the snippet, did it work on your side?

    If I was wrong, this is the snippet with the expanded node

    HiseSnippet 2615.3oc6cssaaibFdnkGaKEmrs6FTjdmvhdQVfDBwSRVnWXm3CaMZbVUKmr6cFzTijILEIWRJ63snnW2GgsW0KK5CPA5c6s8knnOB6aP6bfTbH0IZAaJYaJff34D42++7+8O+bFxYZ44Xf78c7.BkO4ZWDPXSX6qsCNe2y0MsAGtGP34vC7Pe+.jsw0sO2ra.x6TEvau1U22G0AHHT5qI0Tn7p.5ued62paoaafhyB.9nioA5cl8MChys0N+dSKqCz6fNwrOWsU24PCG6ccrbFfQUIXMfqtwE58PuWmTsUf.g01uiYfiW6.8.jOPX025zAiMmqrY0+il9lmYgHIj.swWHV1G3X0gfXRtfcO2zpSqHo2G.Dfsh0EkX5hmCOxri4v7i0I+BZAUiaAu9PXkoAOId3UKyvCvgtUYnCCBmNCrzCRhLR2QXAlN1IP1g1AHaeyfq46tVnv8WBaYFXb93w6JiAu3Np6Z7F14+T39c6hLBhA6pvC9t69dZAgQ0cUfsM7LcCv2eBP1LLY0C9N4D.hkMP3eBqtucOSajngGBis87ceOJ3JGuKd4WNjM6Gxlk9xu521cfsAQ8W00C4p6gNwokk90uzWuuqE5X7U3UUOyxw3h1l+.5qp7GqTtxepRUtFQA7aI03kFmqaair7GsZDVscfmi0KsGz+Lj2qpdot0f3q2HD6RSVexSrGS24wNCBLs6cjdfm4mvb62Onear+DCztgnCmmvJ.RSooqQRSrtZir6PS7+v+BKThjVHrPonBADgAYGfyOT2R67B+a7ekx44P0MoRNcvRwFGnafk1qaoGbNgJfc6Efs0PdhFiy6azEPFfklX4nDTF7NrhOUl0.jaBuazcc52mfWhKzv+9aM6Pt0PnRsZgFRGi6xINjOhXOCkw5hUHWHhrUhA6JDbsNjgwYHB4JRiYBT9F1toktGdPCrRK7FwDAV+DUVJSjkmActDWEpst5mRJRufSjRTq6RIiQlicSP.N171E4EXRPOHkTrNyU5Ud5tj+46ZYFHIM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q6QdSemA1AINxZJk4yIlavAVzpEGXQy5Tho1TOkXRbR6TNBisMImvG6icGYg4E.1R3rGpq9.qfnbSZWejisi64N1DWvwc5GiB7L60CkHr4wJPuIHP23h3bd9NGivg7xa.+a14cXCOcuiXOSz7nKjxttXZ8Wu.xfaUBYr5CiCZpROJOnoxkCIo73dzW2vy4TC1YKEcSQmlCVtsoGYbkgGQRWUBbY7TYWCzG6Q7TCins.iw2F44nMJyQaTmi1nMGso9bzlFyQa1ZpsgLXzaFD3zmQEwYzZeZTIBBwy1QIv+GfPOo5L
    


  • The only thing left would be to separate the sidebands. But Iā€™m not sure how to substract signals from each other in scriptnode



  • Multiply with -1 and add.



  • I get the math.mul with -1, but add like in math.add with value 0? Or do you mean to just sum the two signal chains after flipping the phase? @Christoph-Hart



  • You don't need the add node, just use a split container and flip the phase of one signal:

    HiseSnippet 1402.3oc6X87abSDEdb1LMIaaQkRPhiqBbHUpDEuMPQhC61jMaTDYSVhS+wsnI1SxNJ1yXrGmzsENAG3eA3.bE3.24D8O.hTkx+.vQtEtvAtTdiG6X6MaRVVozTUgur67Mu23u22al2LiaGHroggh.jwDaz0mhLtF1pKW1YgNDFGsbCjwafaQBkzfJZn465SBCoNHCiRKo.LlXTT7yQ0lm3R31zLHD5ABlMcElGSlg1t9mvbcaRbnav7xY8b0W1VvWP3Jh.9TBOKxmXuKYG5pDkYifQFWYQGlTDXIIRZHxXz4ENcs5H1mqs+ArP1VtTUCSjELPZ3lBWGEiU+GsPGlqS6z3NDgLvsyTgRZUXRbKlC6X7L03FwcTIyi75gwHmE8LySuY6K8L6C8P4X2nZ1AjP3D4RjEYlJcjzASTLSsLWR4gLY27oqKU59l31Locm9y2Q5CegD0EMeSR9WGu31aSskYjcTbyGMrY5+CSDMNo1UFaYGv7kv6WQjqkzrRyGYVfPZXjwOhWjuCiSmwNfBTqQn+pT49hfcmdJmP+otUkO95k2NhaqT7J9ATeR.cCQaWR2oCId9tz0AutcksbE16ZwdB8VkeZ4IJ+E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0zshpPPkWO9.LkdM5CvbQrBEpU9JPl9kwGp3kw6viXGH1zV+oYTK8FOFAhad7W9cBbKU6Jln8zmBAimclYQdPA7MssUyNdePe5uOUGBetyP3ybCgOevP3yGND9b2gvmO5L8Qs248hjBO87e.n8hwmeyvPetg3kBn+E.xMaFB
    


  • ok, got you! So if I want create a duplicate signal with -90Ā° phase shift I multiply by -0.5, right?



  • well, I'll just keep it as it is for now and call it a ring modulator šŸ˜‰



  • ok, got you! So if I want create a duplicate signal with -90Ā° phase shift I multiply by -0.5, right?

    I am not a DSP expert, but the only trivial phase change that can be achieved by simple multiplication is 180Ā° because it's just a flip of the signal. Multiplying with -0.5 will just result in a 180Ā° phase shift plus a gain adjustment of -6dB.

    Any other phase change can't be applied on a signal because there is no frequency dependant phase value, so you'll need some kind of all pass filter which does that for you.

    To be honest, I've still haven't heard one frequency shifter that does not use FFT processing which doesn't sound like the last breaths of a dying robot (even the one in the STK toolkit sounds rather, well "experimental"), but if your "ring modulator" sounds good, then don't touch it šŸ™‚



  • @Christoph-Hart said in Frequency Shifter:

    Multiplying with -0.5 will just result in a 180Ā° phase shift plus a gain adjustment of -6dB.

    makes sense, I already figured out that even if I manage to flip the phase by 90Ā° it will only change the phase of one frequency. Like you said, I'd need a Allpass filter network of some kind. That's why I rendered out a Hilbert transfer function as an IR in Matlab. It's an IR of an Allpass filter network that results in a phase flip of 90Ā° over a 500-15000hz range with minimal error.

    @Christoph-Hart said in Frequency Shifter:

    To be honest, I've still haven't heard one frequency shifter that does not use FFT processing which doesn't sound like the last breaths of a dying robot (even the one in the STK toolkit sounds rather, well "experimental"), but if your "ring modulator" sounds good, then don't touch it šŸ™‚

    It only sounds ok if I put the whole node graph in a 2 frame block container and oversample the frame block container . if not there are too many artefacts.

    So the issue right now is that Im not able to run an IR within the frame block container. If they are in separate frame blocks, the result is terrible.



  • How long is that impulse response?

    You might get away with brute-force convolution (just a normal FIR filter) if the tap size is below 64.



  • It's 1024 samples long and generated at 44100 SR. I'm not sure about the tap size, is it the same as the length in samples?


Log in to reply
 

11
Online

544
Users

2.1k
Topics

16.2k
Posts