Forums > MaxMSP

Controlling the parameters of the waveform object

January 14, 2013 | 5:03 pm

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.
many thanks
Rich


January 14, 2013 | 5:32 pm

Have a look at the [info~] object, use the 7th outlet to get the sample length.


January 30, 2013 | 6:56 pm

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

[attachment=213654,4968]

Attachments:
  1. Screenshot20130130at18.27.23.png

January 30, 2013 | 7:01 pm

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


January 30, 2013 | 8:17 pm

Arguments in an object box do not update when the value is changed with a message in the right inlet.


January 31, 2013 | 4:04 pm

Yes you are correct and this is what i have discovered, so how can i update the value of the urn~ object?


January 31, 2013 | 9:56 pm

Give a look, may clarifying it to you

– Pasted Max Patch, click to expand. –

February 1, 2013 | 3:37 pm

Thank you Helmuth, this has helped a lot, exactly what i was trying to achieve


February 1, 2013 | 4:37 pm

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.


February 1, 2013 | 4:39 pm
– Pasted Max Patch, click to expand. –

February 3, 2013 | 7:11 am

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 !


February 4, 2013 | 4:12 pm

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


February 4, 2013 | 6:31 pm

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?

Best
(sorry Trix, I saw your message only now)

– Pasted Max Patch, click to expand. –

February 6, 2013 | 11:52 am

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


February 6, 2013 | 1:07 pm

You may achieve your goal using a couple (or more) of urn object whose sizes are divided properly, something like this:

– Pasted Max Patch, click to expand. –

otherwise random object seems to have no limits about size, but it has little differencies…


February 12, 2013 | 3:04 pm

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?


February 12, 2013 | 3:05 pm

Just realised I had accidentally created a loop so please ignore the last post


Viewing 17 posts - 1 through 17 (of 17 total)