hello Touchdesigners, i would need to port the stretch chop formula in c or python , could somebody help?
I would not need interpolation option and would be needed to stretch down to 4096 samples an incoming array of N samples
Hi @pieeer,
this might be good to get a bit more context to understand what you are trying to do.
If you are trying to compress a number of samples to a shorter interval without interpolation or preservation of data characteristics you can just skip through it. If for example you have 9000 samples in a list, then you want to retrieve every math.ceil(9000/4096)
→ 3rd element and cut of the overflow.
Yet I’d be interested why you can’t use the Stretch CHOP?
Cheers
Markus
Hi Markus , i hope you are all ok, thx for your reply.
the input array can vary from 4096 samples to 28673 samples. This length of the input array is set by an external user control and the previous process. The content of the array, so, is not a fixed waveform, is unknown. The setup of stretch chop i have to achieve has the absolute parameter on and interpolation off, in this way the data characteristic is preserved in TD…
Since some time i’ve been studying verilog to port my designs on fpga to make them become real instruments…
I would love to have a stretch chop in fpga hdl language, but i have to build it. I will use vivado high level synthesis to do that, and to do so i need a c++ file together with a test bench file. Vivado hls is responsible for translating that to hardware definition language. I love TD and will always be my design and simulation platform, but i want my instruments to be real and out of a screen. Hope you can help me Markus… just few bits are missing for me to achieve the goal.