Controlling the parameters of the waveform object
Hi i am new to MAX and i am currently designing a simple glitch software plug-in, the plug-in is currently in its early stages but i have decided to create the glitch in the audio by manipulation of the waveform, i have the buffer moving randomly throughout the audio file which works nicely and creates some interesting sounds but i have come across a problem, the parameters of the buffer are set but i need them to change automatically when i switch to different audio files, for example- the problem is that if i am working with a 10sec audio file and then changed to a 5sec audio file, the parameters would be twice as wide as they needed to be so the buffer would frequently be reading nothing producing no sound. If anyone has any ideas or patches that would help me it would be much appreciated.
Have a look at the [info~] object, use the 7th outlet to get the sample length.
Hi many thanks Fora, exactly what i needed- have another issue tho… i need to find a way to get the number that is generated that tells me the sample length into the urn~ so that the parameter is the same as the number generated by the info~
The number is generated in the message box but not sure how to get it into the urn~ ?
I will upload a screenshot of that part of my patch to help show what i mean
As you can see the correct value reaches the number box above the urn~ but the range of urn~ stays at 999 instead of the value 22029
Arguments in an object box do not update when the value is changed with a message in the right inlet.
Yes you are correct and this is what i have discovered, so how can i update the value of the urn~ object?
Give a look, may clarifying it to you
----------begin_max5_patcher---------- 676.3ocuV0raaCCC9rySAgNsAjUXq372tsmi0gAYalX0YKEHI2lrh9tOIZ6L mtjfzltbQFjhhjeejTxOOJhko2hVF7U36PTzyihhHUAEQcxQrZw17JgkLikq qqQkiMtcOGt0Q5wGQyNPm8.l6fmjUUPdoPsFgRoE1HLhZzgFvoAWINPgAyQ4 iXAHUjo45pBXLThFDLx0kN+FUnaLj03.k1A2yrk5mjp02y.oyaZMJTdQZSJl Agfqb61z5WgYcSHogGk1FQU0N3SAu4yRHCgkKWBxUvNciOYpzhhtLzkW5iJl qarHoZua79dkbq22Y6BAIDOYHO+bOqTIUgyoHpIsS4Jy5rfb7cwcZTM0D3Hl Mo2LsxYk+FIc7g1pab8F2qkxRe7+omFcskwjz49CASmEVSSRBel4iI7ityHK nBluT8kjIrAQU4KIzVeyHEUrvFuLZTXY7U1bjWIy+UaMckzX2aPVSVVEd.5u JRZiAs93KbRsZ.kvWNMvBIwKCeh6V1SHWL0NYBm7CewcSCtij3omfaStMbqu yTAYhPOumeOZGH+MP2s1XkEjcS9u1oNm5QSlPeVPcpSleB1L9ikM8y+NshcN 3cHN501pJb0RKHXApmsOkOBL4SoAxjTBl7390iAyEuGrTiVqXMdTvveK0pSh wyiOdGvnoqoD9RVbb7M6isJ9Jjuel3ucK2bxXwxA8z96KldZxH8ikLT3Sdu9 ObQiQEdh65ID9oHDY3Vo2vfv7TpQI4bCB7KianiRW18pehgBeP+gDlU2Xx6y 61AN+aA6SfBz5jJ54iA1vOvlRYQApFd0VgzJ72YRIe7QKbWZ1vufrwOBAI2j rI8B4l2S1zV3Da13+sQamKoDw2S+f1DDmMlDkpVQxiLC5+GtN6WLJ3sWF8G. cvzkFB -----------end_max5_patcher-----------
Thank you Helmuth, this has helped a lot, exactly what i was trying to achieve
When i use your patch it works perfectly although when i use this with my value it doesn’t seem to work? I am confused as to why it wont, i will post up patch so you can see, i apologize in advance if its a schoolboy error as i am a novice at using software like this, many thanks.
----------begin_max5_patcher---------- 383.3ocuTFsaCBBEF9Z8ofv0tFfns5taOGKKKnxZYQQCfccqou6SNnsccsos ac6FM7yge9OeBtNL.m2rRXvn6QOhBBVGFD.RNgfgwA3Z9phJtAJCWKLF9bAN xOmUrxB5woIiZptZopRXgEvFDa41hER07m0hBqeCoYwSHQHV7L2qDh6IMcBA 8zNiZ5riNQGTeoQYMxODfFqeQdYek12aEd2w3s9HKgH1j+5cT7dtn30Pw3Gz RdE1MwlvP2ineIMXLBK6Z4AKA.AcJcRx+FOHytsDQIdq22uAjNsBkkc8Hgk. THKENhPgyKjShD1UhDoxhiP3btZ9QoSJ61Bm7NqsQcTHPOODhgyELxYf.8Tc 6oaSx9MCTAtRpN7GCPzb5esCMMc5hw8XjZncoqTXrRE2J667cE0eQDQ2VyBY Yo.ld7aUozvyqDPHIGE0WbbHWPbNHy+k4AtxcYA5m.H+mOda6Rg1L3Ijk9ih u1ncCmFACkJ+PvQrVrTNVeZnysMgexQ1kME -----------end_max5_patcher-----------
I’ve just been into Max for to years now but my advice would be to follow the vers first tutorials about the basic objects And the way they work, you Will gain a lot of Time !
ok, yes i have been and will continue to look at the basic tutorials although i still would appreciate an answer to why my patch wont work properly, it is the same as the patch Helmuth posted except has a different value and Helmuths patch works fine. any ideas why this is so would be much appreciated, thanks
Urn seems to be limited to the maximum of 4096 numbers, (otherwise I get an notice in the max window. ) cycling support may confirm it?
(sorry Trix, I saw your message only now)
----------begin_max5_patcher---------- 350.3ocuSsraBCCD7ryWgkOSQNAHP5s9cTUU4j3BFkrNx1gRKh+8hWmvKATp PpWRzN630yLYylHBKWuVZYzmouRIjMQDBB4AHc0DVsXcQkvhzXf7Sc9R1fPK mbsCgqzhxZo0RGyyl12EZqUPkzgmLtC7CM3rpukHVxP9At5V24jCPtuZjAMx Xz25Z0HbEKTv72MxBWn6H93cyiFOIy+JyObZBeHe+YTknX2YfmFEyNRPfnFu A1KFknh4arMJx+XvikKMFE3d77fecSmLM3yIo9WiFeKSm9u34VCPyxxtnqS9 KtN4ZaAXlRY4BX9MWH5yFNlMShuU1LK49BG7rrJEb9+M386wOMwr5VSQuv62 7nGjPoz5TfvozvQj7pgFumzBUYoDNdSnTYE4URT+7K9s6d0CdU+ldROgy8Km PZIZZVIM1tQhJY2lzRswWlN.KUPnDmHyHWo54OKxOssQ+HiMSTH -----------end_max5_patcher-----------
Many thanks again Helmuth-i dont think i would have found that information from a basic tutorial lol, i think in that case i will try and rethink my approach
You may achieve your goal using a couple (or more) of urn object whose sizes are divided properly, something like this:
----------begin_max5_patcher---------- 536.3ocyVErbaBCD8L7UnQWqaJR3Xrys7czISFAr3nTPvHIRcal7uWjDPwIz XrcB0Wjmc0yKu8sqVom88vwk6.EFcC56HOum887rtLN7Zs8vErcI4LkEFVTW DCR7B2V7Tqyx3G+Jg14LqTnErBvt0sRNKuamJlrwuFj2CBVbtEQP6dMAlKxA s8yPFDJE+2VfD5UCvVVq6.Sa85bo+UE3RHLWnwKP3XlXKFcWOGzIOvEauWBI ZGPZTXSnQz0aL+bcf0nYEcm4u7huuYYwDEn3ZstTLl.EfeuTc+bh7uxoCmLg KM7mP5SiyHYDvOandGu0vN6GA+kQRu0Gt7uWdSOlRL48JwSoz5Jpgzqt9iWM 9FhNhdDcIqGscGmodjTVT.lyXuRPxX+.Pw0YYfDYSk2pNqNR04nFHz4MStM1 Z2iaDEIjPLRwF254cbo.TJ1V3MBxxfMQiHBK+uzhLk9CmZDFY6UV+wdboVN1 zQ5moVzAtRBplFVllWJ1qEvMxzM+OncoWlN46U5i6pOugOiqlj4PMO86aCmf tXC.NmKd86SrAz3eewRUVKS5XR6ERn+VDSAklKrU9AXLOZY.nG3oofX3HjTt x7PEqxFLZUapzwb8+A4yEFcHyFcnSfMlBJYdDmIxl4QahlXiC4hgMjYiMKm. ahNwJkaBDqp5IPpZCokHMClerTZLWsvZxENSaDwR3IdG9HeSzdw+ObRNOzL -----------end_max5_patcher-----------
otherwise random object seems to have no limits about size, but it has little differencies…
I have tried it using the random object instead but it only seems to count down from the original value and stops when it reaches 0?
Just realised I had accidentally created a loop so please ignore the last post