Change the speed of which all messages in a patch are handled?
I don’t know wether this is even remotely possible, but could i change the speed of which all messages in a patch are handled?
I’m building an editor for a hardware synth. I included all sorts of randomisation features in the patch which send out a whole lot of midi data at once. I’ve got the feeling the synth can’t handle so much information at the same time, resulting in poor performance (e.g.. not all data that was sent to the synth, was actually dealt with)
So i thought slowing down the whole process might resolve this..
any tips regarding this?
[speedlim] for each data stream (ie not whole patch)
i guess you could alter max’s default scheduler update time by sneding geteventinterval seteventintervla to the Max application (see Max help>vignettes>core>advanced max topics>messages to max), but that’s highly unrecommended… (see also "advanced scheduler settings")
i’ve got about 80 streams, i now tried using the [pipe] object by incrementing each pipe object by 10ms but this far from ideal since the biggest delay would be round 800ms and i don’t want automation to be delayed.
i’ll look into the ‘speedlim’ thanks,
[pipe] will do no good i think, since iirc it will only introduce an initial delay and if it’s a stream it won’t have an influence on the stream speed, which is your problem here, ; so maybe [speedlim] is a btter solution.
I never tried this myself, but wouldn’t a poly~ with local scheduling and downsampling help in your case? It may be easier than slowing down your 80 streams.
well it’s not really a continuous stream, so pipe actually does help a lot.
it’s an editor for the waldorf pulse. so when i hit my randomise button, it sends midi values of all the parameters at once.
Now using a pipe solves this kind of, by delaying each parameter by a different interval.
But now my problem is that each parameter has a delay :D
So ideally i’d like to make something that would:
- delay the value, if the object sending that value, is triggered by a bang
- not delay the value, if the object sending that value, is triggered by me. (meaning actually turning the knob/dial on screen) or by ableton live (when i wanna do automation for example)
Speedlim will not help because some messages will not be sent.
You might be able to do it by delaying each stream by a calculated time so that they don’t overlap but what you actually want is a message cue that’s being processed at a settable speed.
I’d advise cooking up something with a [coll] in which you first store all the messages to be sent. Then iterate through the entries, sending each with a timing parameter. Clear the coll when done (or each entry after it’s sent).
Edit: there might very well be this kind of solution floating around somewhere, as a patch or external
You could send all messages through a common [zl queue] object triggered continuously with [metro 10]. So when sending all parameters at once they will be output at safe intervals of 10ms and when sending individually there is just a delay of 10ms. Probably [metro 1] would work too, for minimal delay.
zl queue is brilliant for this – it might work well for that other guy that was overloading his lemur, too.
[ZL QUEUE] sounds promising! thanks!
Back to the drawing table….
Just found that [zl queue] can also be triggered from the right outlet, ie. no metro needed.
----------begin_max5_patcher---------- 422.3ocwT00aBBCE8Y3WQSydjYZKenrGVx1eiEyREpZWfBCJYNM9eezK3lto BY5XuPy816Gm6oGtarsvyxVIJwn6POgrr1XaYAtLNrZssvo7UQI7RHLbpnrj uPfcZtSKVoA+TDC4h7P96tQUkJUIBMjFq047LkVwSEPJOTH4InGyRh2KmrJ8 tjnsdy45nkR0hmKDQ5FrRCHiHNHJAN7BAifQDzz1bjwPKxl8xsA6pdSo0umK ZJBF+Y3FbUJWCWPqqow6VaayGmdRLJwa0c6G7RdgToOJmP+MbBoSNg4Owb35 BbxjiyId3+7AOVjXdeHCidHjAyNYr4vmbtY28j5gYb0hgPSHmitQRumfzKEJ Dz0ql.oaRhNNvbD5eNRh8u9Sy5DzqUhJw0S6v5dWhmGncnmiVnmlVb5I0.wf Sjpuu2Eflw+g7UYVUQzttztOC8E3hEkZohqkYp8hgdPLKkwwB09qORkw4Y0K lZg.Z5Qe65Khbu9HhQni7q+g1ETorPXm1gVT2F4bPnIRv5BmCZOlCuAkYY8. QtCJhLbDsCDwt.DUar09Cbxy0uF -----------end_max5_patcher-----------
you could make the generation of the data already dependent on triggers, so that the speed of the data output is not controlled by the scheduler but a [metro 10.]
Forums > MaxMSP