Modulating table play loop parameters


#1

Hi All

To implement some randomness in the loopstart & loopend parameters, I followed sirsicksik's guide to control object parameters via inlets. For the table/play loop object however, there aren't any refences in the code to param_loopstart, nor param_loopend. So I added (as an experiment) param_loopend = inlet_loopend in the k-rate code. Debugging show that value of param_loopend is indeed updated every cycle, but it doesn't affect the endpoint of the table/sample however (full sample keeps playing).

CAN this work? And if not, as modulation sources do not work on integer parameters, do I have any other option to modulate this kind of parameters?

Many tnx!

Wim


#2

Hard to say without the code, however writing param_loopend = inlet_loopend will not work. You should substitute all references to param_loopend with inlet_loopend instead, or param_loopend + inlet loopend in case you want to mix the two. Also have you looked inside s-rate code? If an object works on sound signals it's possible to find code in s-rate. Maybe i did not write it in the guide because that sounded obvious to me, but you should check all code sections in order to correctly edit an object

(Sputnki's guide)


#3

Ouch :slight_smile: I had quite some tabs open with forum stuff about modulation & objects... But the link was allright though

Reference to param_loopend: well that's exactly my problem, there isn't any (see axo in att). But I guess this has to do with some code under the hood - I shouldn't dive into that right now.

play pitch loop.axo (2.2 KB)

Anyway, I switched to table/play, added inlet_loopend and changed pos<table.length to pos< inlet_loopend. Sample's now playing until inlet value. Your guide was very helpful, thanks a lot!

Wim