buffer problem? please help
Hi all, I have attatched a patch (its one peice of an instrument i am building)
If you click on the message boxes you send a millisecond message to the buffer ‘end time’ which is all good excpet i don’t understand why the time is ‘re-sized’
Is this a Max thing or something to do with the buffer object perhaps,
please help its driving me nuts
many thanks in advance
The difference appears to be one sample. A rounding issue?
----------begin_max5_patcher---------- 506.3oc4VFsTiBCEF9Z3oHStlsCABH5Ch233rSJDpwAR5PRWYWG6y9RNoToJ fni5NtdCzbR3v+4K+mPu22CuV0x0XzEnqPdd2664AgrA7NL1CWyZyqXZXY3Z tVy1vwAt4L7VCDmRIgq5itkYxuQH27yFdtwk8jT5pv.TTRj81YD6UR1pPz0G dFQAjG05a+Ag1mnRkzHY0bXpK4MELIqeN4tZgrha.cE8XP0NSeTxfznE+ARC w9pcgcqz76sbmFwXz01Ydv22dIXgHQxuqS0OiH0ZiRyp2p2OGVb7HJDnSVra vDXI4UiExnXI5UhEsXijUgCP3xJEy71nzzFmvymy3PSyVtwI9aiwgljtbiC4 +QiCILbN9bN3Wx.7DGsJYZWS1WJSyT3PyMn111YPRLY.RRlsQJ8KERti8Kdo pod+PnjqpTMtzdrBmFJDaui8TFnqx9spwvRznkdxnkd5gnq2UVxaNxvAaQOq 5cMIAy9iJgFt+tdhiSi6s9GTWa0b8UDJ0Yb.dQByl8fm+Qm6bjVqYxMmRJPl cTT9z+1CTq13mhOsZWSdedObZA5whsfqMBIyHTxAqw9k5AK5FQQAGluWw0hh sJgzn6MnitWtTIAuNxKoI5IK5CWSjkno3OUM009hheIIQ9T25Vha5TY+Qqnz Epn2Ji5F7f+eADHmk2K -----------end_max5_patcher-----------
silly question to ask, but if it is a matter of max giving a rounded number instead of the one sent, is that alway always always going to be the exact number used by an object in max (the rounded up/down one), or is it possible that the object will function as you intend but the number displayed might not update on screen fast enough/accuratley enough.
obviously my head says if there are 2 different samples with a different length in milliseconds for each then looping will eventually expose a lack of sync but if its just a number box issue (updating in increments when numbers get small) and something you can’t change then thats ok.
on the other hand if the difference is one sample, does that mean that changing dsp settings would affect it? I have tried combinations of sample, bit, vector sizes etc but the number is a max rather than msp signal right? , im still a little confused as to why max would round the number 1000 to 999.98, if that is an increment of 1 sample how can i make the message passed be more accurate?
MSP tutorial 14 has an example that I think will work which i will test and let you know if it works or not, if it doesn’t im stuck?!?
A little experiment confirms that the duration of the loop is one sample shorter when it receives the value from waveform. That said, the waveform doesn’t seem to be designed to make sample accurate selections in the first place. If instead you send the number directly, instead of trough the waveform, there is no problem. Otherwise it is still possible to add 1 sample worth of ms to the value coming from waveform. It seems, waveform not only displays waveforms, but can also be use to subtract a sample. Versatile…
hi jvkr, i changed my instrument to have no waveform object and re-jigged a few objects and it works fine now, thanks for your help and the demo patch to see how many samples are being sent/received.