Audio FX - Play an audio file?
-
Is it possible to export an audio FX plugin and play an audio file from it?
I see there is the Enable Sound Generators in the project settings but it explicitly states that the sound output will not be used.
Has anyone had success in creating an FX plugin that can produce sound. I have an example snippet of using an Audio Loop Player here which doesn't work.
HiseSnippet 1320.3ocyWssSibCF1CvrpjtUsa6VopdQ0nU8B1JDJIDBj1KJPNrKc4PTRV11KpPlwNIV3wdjGGfHDOS80nW1WhdeeCn+1yDxLPVHjtrp4hn3+C9+y+mSSkzmFEIUHmbcFFRQNO0s8Pgte09Xl.sSMjyW3137sFPXxCFn6PiznsGFhihnDjiy7uxHkyhKfre9medaLGK7oiIgPGJY9zcYAL8XpM27MLNuAlP6vBRIcoM2wWJpJ4xA.hl2MOJD6eBtGcerQr4bQuFG0G47CtqUbU+Rj0IEKtVkx93xzJcwc6VXURoRk2nRgUqfKsQYZ90PNOoNgokp1ZrlFAW51Rxv18kmIhMvgrH1wbp4PATavxwjQU6y3jlibOQHjiaywNq4icVO2cOFgcM8zNMCCuwZj1o4L2cAoBO.H4jBRKDCom411WwB0i4Xvym5tiPSUcwPrIMThkE472tUkf.B8JA3SnMTvgqUXoh4yurG70K+ob4pK5wDzU3RLwlTzfwoQfnxlRIeIiD45NP3qYRgmTruTSOPrzKycQtEycYNuaxpa2IxyfEkjyopIx1jyntKEWRLH3XpZYuSw7AzqED7QYc7OY5b79wtlTBJE6HX5CBoImaH4DiC076aGlPI9VS.KAgfs01v0WmDtrNy2gOk1UpBPLhIEJCsBH6iIckEAqwHmuy8hlsN3WpWsyQMNX2Z0acYaHBcFn1JvWHEVziBOXEDkccLpYoTWPLmC9Cfva2ol4lRPG.T.7gTklY7QN0nmBEvwIWK5ViFchVFB0hUkAgRg4Y439feKmm9cLL8gvQNtcHl5Kqdd6JkgdM43gTkwAO1xOUmTGFa4FPdolI50AxJsF9ycSS58a2eayyXDceiK4Ogi8ord8sNrFiCewtfbtugN7XIVQPG2aTmpEeBgPtxbQLMMXL0qt5puMK0hIjsBqomqGK7HXYCFy86NtWjyy6Ef0dmAZu3G8JTZk7KanUiEEBNiC70fCceatNvtKlGQs72UdFnFPph83qYwmJTbc64pChzxfWovg8Y9QYzrFsKd.WuUXHEqLcxAtZ0fXlayglwvU0BbnRfQ9UJWw9YiMxudk7qWvJUGYudb5dRBMyMa5GB8GEBJ2.EKs2FQOj5CEjovx0VCX1fi0s0C423lZVeTH3lzs44isRwQzgr8T1tbtKgQP2pyIzyVRF.lLaibyHtDFPSlLcOMsHEQL8vzi.e.c2yemc2mVH9L2lLse+Iiw4l.FgJ8GCLlLS7ybq2sKDUGCvEba7qy5.vo27e0HyaaYX5XPim8MwlHu+kX9qocIlvodIFXiJeSAQ5zDaLqiBpnflSoMkAl0EX38SRStkTpMyLSuDUabPHOt4Nb8YjldJUEk8FLipi2i5dFYDXbGwyJBvmOZLAGvUl4HbKPudLhy7YCpKLcCWyVdkR9IrtyBOVafsvzk.dOi4++eKkLKLt3HL1lYRipKNkxghFKF+R2jIAinlshYOoPF1WJX9YS5zJVudTUZrOwGzVZMj3Olxy2rEkSwQoxt+9M2ExIwpaV27nt77DiWeiaLb8Lk4d+WhaeTSytywByOUiE9fi2YeDwGFnzRNvrK3dXHQ0zXC1cpMzk1mlrcPjoY1blU9hOmeTut1TAwdvr5VByBlyNILKLh4GEaDf8Uxi7i+uDlb4OwRAd2BaC9Ec2yb1aB+og.nq3Q99YupaoXwYUwUmUEKMqJt1rpX4YUw0mUE239UzLzZqAv54wkrHDr8p8OD33b8RANyi9WPT0jLt
-
I've created fx plugins that can generate audio. But not using the built in scriptnodes.
For example a wav file player with envelope follower that loops an audio file and follows the volume of the input to the effect.
I used c++ for the DSP though.
I don't know how to do it in scriptnode.
But it should theoretically be possible?Audio loop players listen for midi I believe. They are oscillator style nodes.
-
@HISEnberg Yeah, think about vinyl or tape hiss plugins...
But it has to be made in scriptnode with an audio player, since sound generator modules are bypassed at export. The file should read in the FX itself -
@ustk Ah this is exactly the issue I have been using the Audio Loop Player! This explains why I could see it operating in the background but not output any audio.
@griffinboy thanks for confirming it's possible. I didn't imagine there would be anything unique about the FX export that would disable audio generation, so I'll test with the scriptnode version!
-
It would be best to ask @Christoph-Hart
Just to make sure. It was quite a while ago that I did this. -
@griffinboy Yes I am going to run a quick test now, but @ustk made a good assessment. It would be nice if there was a separate flag which would allow audio output from any of the sound generators in an FX plugin, though perhaps there is a good reason this doesn't exist (i.e. the relationship of input to output channels).
-
Cool just to confirm for anyone else who ends up here, it does indeed work with the file_player in scriptnode
HiseSnippet 1448.3ocuX8zSabDEeVCiSvoIsopsms5IRUDxFLjf5gXL1t0sAvB6PiTOfF1cLdj2cls6NKXmnHkC8P+Vzy8qP+1zC8d9Fz9dyt16t0FJXQqQB44OuY9898dueuA5Fnr4ggp.hUo9S74DqOh1ahTOb+gLgjzoIw5SnsGuWjiPcTjtOOTSZLwmEFxcHVVq7M3trVaUh4yGdQClKSZySmhPNQIr4uT3Izoy1s92Kbcayb38EdY1cs5crUx8UtpH.QqPqP7Y1iXmyOjgaq.k7srvgDquht8laYWy4YNat416tiMaG9tCXCFTcKmZ01446VcqcY0d9N7JaSrJ1xQnUA8zLMODNzFJmI8FptTFeAmHBEm4xwAUI8faNdZx9CEtNcmROgDh0pcSIqUhIqOidfvQLa9rjFtP4TKxRZVEtNHU8V.IqLPZ0XH8XZO6.guNcEDOOf1Qp4ACXPrIKTh2Kw5Oo6qfMH0a3wFwaG.ClYv5aVoxSKC+5IecoRsjmKj7MbULGSRQagKOD1ppqR4tNtiRChj1ZgRVVIOTo4GIW+Ikdao0J8tRk+mKMXvBWCwRfx0kGrvkwblfqyv0kQdmwCdZ4KXtQ7YaD3n7DewaFwaGSMY1nR1QJzG4ySF2V45fDJ984CSjDtEBXERPHb2ZS35ySBWFx7GXWvGnB7HBGLEJ2bUIFmIakkCSyHVeI8scO9nuq098Os8QurYqie2IBkKWW9PkHjuwkrKHAL44bvoCfHM0BM0LSKoCN9298hwPzfqUhw0iRvUiHsVIM.ZMZ7fEfDxq5zDACj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qsrFt8xZ3NKqgOaYM74+6Fh+mHRjCwTWnnpaq3VYVsjwUBPuUxeCPIPoOE
-
H HISEnberg marked this topic as a question
-
H HISEnberg has marked this topic as solved