upsampling gen~ ??

rbrt's icon

is there any way to perform operations in gen~ faster than samplingrate?
i have already tried to put a gen~ inside a poly~ and then to set the poly~ to a higher samplingrate (up 8 for instance).doesnt work.
i need this to copy samples in between buffers.right now i have to stick doing this the old way with msp~ inside an
upsampled poly~,which is rather ineffective since there is gen~.
there is the great el.buffet~ external for copying samples from one buffer to the other,but i need an offset for copying,for example copy at 0-
paste at 1000..

Graham Wakefield's icon

gen~ inside an upsampled poly~ should be upsampled in just the same way as MSP objects are. If this isn't happening, could you post a simple example?

However for your use case of copying samples between buffers, it can easily be achieved in gen~ using GenExpr and for loops. This can either be continual (like what upsampling would give you) or it could be done sporadically by nesting inside an if statement. Quick example:

----------begin_max5_patcher----------
1491.3ocyYs0bahCE9YmeEZ3ImsdSQ.9V51clc+az1oiLHiUCHwHjyksS5u8
8HIf.1fiRhsadvb4naemOctg7OuXj2Jw8zROz0nufFM5mWLZjQjVvnp2G4kS
tONiTZ5lWNsrjjR8lXaSQuWYjGmQIxZo7s4LdFUYFRPkPVhoihU+3OwKa0Sw
VUcWwURWK3pR1+QMxBtxukXNI2H16ejLRV8zXmC0CETqt34g9VUSEDU7FFO8
6RZrx1ZX3BXNQAAS02BmquhAQnuoGxiWbg9xDGIj6H2RWKj4+pWkeZOJ+79U
9YURWsc8ZprQOKEakwzAUz0YBhxaxAeHiUZt6BorzvFAKCLuDcrHEw50kTyJ
4eki7TCMUHokTthnXBdO6hSiz27qtznhNQtIzbwYiZCVD1haw9guRxkSuC3m
87.sp1uPZcBlce+dMHw8XPhcjoCV3.SGbz7gaH4UDdpSD7TCAiwXya9uR9c0
VkRvcl8l8LrWzz.K64hcJdHx3Y4f5kwxAA9uIJPIRSyntRAKZX.hD1ZUT42o
bxpLC18eY5IiqNnZFDYTyYyOBZ4.NRfFHOfGTO4yBO0oyd1c+JZwF8dN9TPK
f2XhAGNZUD7amTpBKfMdDydi1JayWAQWctBmn5dVxRso87OtgKyEIz1SvdzC
rvbc2qCjdHlBGF0phHrezahq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pS1YK
qvo85WJhwNh3viDhq1KrRdgkSOzecDTnYFXEhfBKgvZPPLnH+LJZCIasqmgv
r2C+eRQ1jngguo+OoW3oOO06zbNxG7.VMiuqimU0107sRA22rcYa6wArYwcL
t22fcei08nZWwSjKvY9YCNyb.NQmMzfcANmOxwISG+yFbV3.bBOanIzAzr7r
gl.GPyh2UnY14yqx2E63yGbbAMQuufyq0sxl9ZmywRijcN+pcN6p8O2pgNyJ
Xcd7h+Gva7Si8
-----------end_max5_patcher-----------

rbrt's icon

i made up a quick example on the fly which isnt about copying buffers and there,upsampling via poly~ works just fine.
i will look up the actual patch,but its possible i made a simple mistake when trying to upsample the poly~
if not i will let you know.

thanks,anyway,for your example...it will make me have to learn genexpr~ at last,which makes sense because i can solve
some problems i am encountering with a project right now (a 64-slot sampling loopstation)

even though i am a bit afraid of CODE until now...