Load file From AudioWaveform into Stretch Player node
-
Hi everyone! Hope you´re doing well
When dragging a file in a AudioWaveform, I want the sound to be loaded into a "Stretch Player" node in the ScriptFx module.
Do you know how to achieve that? Thanks in advance!
-
@fazzitog On your player set it to use an external slot and connect you ui waveform to it
-
Didn´t about that option, thanks! It´s very handy.
Another question arised from experimenting: when using more than one stretch at different speeds or having another node (granulator for example) connected to the same waveform, the playhead starts jumping to display all the positions.
Is there a way to turn off the Playhead?
-
@fazzitog I can be hidden with LAF
-
Sorry, I´m very new to HISE. What do you mean by LAF?
-
@fazzitog Look and feel
-
Another question arised from experimenting: when using more than one stretch at different speeds or having another node (granulator for example) connected to the same waveform, the playhead starts jumping to display all the positions.
You could also use multiple slots and link them together using the scripting API
linkTo
, then it will load the same content but allow different playheads (usually that's something you want). -
Yes! That was an idea that popped out. Do you have an example of using the "AudioFile.linkTo"?
I´m reading the documentation but can´t get to work in HISE. The autocomplete doesn´t show the function, so I don´t know what I´m doing wrong.
https://docs.hise.audio/scripting/scripting-api/audiofile/index.html#linkto
Here´s an example:
HiseSnippet 1657.3oc6X0saaaCElJNzowsCnca8dgdkKPSfsa9qaXnNwNtMXMoFQoYY.AHiVh1lvRhBTzwwaX2u6108t8HrK21U8cXuH6IXaGRIaIkXa35tVLLLGf.Qd34vyOe7SGplBtMMLjKPFqdxv.Jx3NXqg9xt05RX9nCpiLJf2+JhWfKsLZugAjvPpCxvH2yTxMVcYj92e7z8HtDeaZxTHzoblM8ELOlLY1lU+RlqaChC8DlWpUuQ0Cr4903t79fujCWBEPr6Q5POhnV1RXjQ98cXRtvRRjzPjwx6wcFZ0kOvOZ8mxBYsbopAkQVfghltA20Q4wpYQ05xbcZNJlCQfUZljAxEkA9T7gLG134SxD2UKvLQiz4Cikx5d4x3dkS6dkR4dSvkLR4RKG4R2CaYKXAxDIJ+413C7kTQaBj1S6JQqEszYF3ZbXE9x08H8nMDvfwZTbqRkdjI7uG94EJ.o9Po4kDgoifzY29NLt4WXNR4NTYMtW.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VAURoNFWFFaIoApihiFqRC4AhbIEkYcnoazMyXzJJi1iNHJ0oZWsz5a83ROoxS1dqcJsylar8S1Nt8PU+MGqfqSeqVNYqVAuV4JYhf7X8DQPDMYNJSrhdWSD2BuuOQQSLuoh4yr2FWSy.Nz295NbRC.HTJf48tFvr7+FPlkmJxTSk9+Xx+aiIuCFZF2OpqpaRMCvwTheeCEq7V.EyO4R4jSUQegglbnSP0aUm2R4BB+tAhYFPu73JYc3Uv6Tpz3p4yDvqF0E4wqemRS2ZSO5UW8HpQ3oF7ykctE1B5Hj37Nal5TYee5r.ooK2SE9lG2Q0tRFf6siAtJAY54c1.1kl5tajKU7kOI9Fckhu9Modc93qYjb9TO2O85W+qOMM9QO6a57y2u5HlQ1XnYhUPydqQnar0U+wpy0V+MeR8e+oQvLKONW1E5O956+FUQu+C86fOlFRkQVYFIfqiCz2+QMBtc2RQF5fvSURsItiLDzT7dbdOOhtc7E5x5ePt7fGwVvuvN59Ppf6V5Y.rmu9aStJ9P0XywejkniLdLG1E11pqYtFbM5IqSkEPmGu.5rwBnylKfNas.5r8BnyNyTG0moc29RtWzU0fIZtuFbYXD8tcMoC5uAkhkGJC
-
@fazzitog I've posted an example for this in another recent thread:
-
@Christoph-Hart Thanks for sharing the post!
I followed it and put this lines on the project:
const var buf1 = Synth.getAudioSampleProcessor("Script FX1").getAudioFile(0); const var buf2 = Synth.getAudioSampleProcessor("Script FX1").getAudioFile(1); buf2.linkTo(buf1);
But the audio isn´t showing in the second buffer after dragging the audio. Do you know what´s wrong?
Also, when changing from the interface designer to the script workspace, HISE crashes. Here´s a video: