how to add offset

For general discussion related FlowStone
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: how to add offset

Post by tester »

I loaded large wav file into your schematic (in FS304), deleted the wav, and saved the schematic. 1kB or less difference. So I don't know what else to suggest. I would uninstall the FS (removing all system files it left behind), and install again, maybe something is broken.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: how to add offset

Post by tester »

I'm trying to implement your "Custom wave read 2.fsm" into my project. I'm lost with something. In custom wave read - for offset, you use large value, 200000. I thought that this node is for adding small offsets (few samples), for interpolation needs, and time shift (large offsets) is applied to counter? What am I missing?
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: how to add offset

Post by KG_is_back »

tester wrote:I'm trying to implement your "Custom wave read 2.fsm" into my project. I'm lost with something. In custom wave read - for offset, you use large value, 200000. I thought that this node is for adding small offsets (few samples), for interpolation needs, and time shift (large offsets) is applied to counter? What am I missing?


Actually both index(int) and offset(float) can be of any size. Offset is internally converted to int and added to the index, so the custom wave read can operate both on integer and float index input simultaneously.

In my test schematic, the sound started a little later after the wave start (there were few seconds of silence) so I made the offset very big, to shift the starting point.
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: how to add offset

Post by tester »

Can you check it on continuous wave file with no silence? For some reason it did not crossfaded here (was a gap).
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: how to add offset

Post by KG_is_back »

tester wrote:Can you check it on continuous wave file with no silence? For some reason it did not crossfaded here (was a gap).


works perfectly down here...
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: how to add offset

Post by tester »

It isn't working here (I also checked in raw upload/schematic). Or did I miss something? Attaching with test wav inside.

End is simply cut, fade-in starts.
Attachments
Custom wave read 2 with crossfade-2.rar
(1.46 MiB) Downloaded 1252 times
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: how to add offset

Post by KG_is_back »

tester wrote:It isn't working here (I also checked in raw upload/schematic). Or did I miss something? Attaching with test wav inside.

End is simply cut, fade-in starts.


The crossfade is added AFTER the loops end. First oscillator cycles from loop start to loop end. Once it reaches loop end (length), it resets to the start (in this case 0). That's when the second oscillator comes in and continues to read data AFTER the end of the loop until crossfade is finished.

To make the thing loop particular part (so that the crossfade never exceeds the loop) just subtract crossfade length form the loop length.
Post Reply