How to change an oscillators phase on demand
I would like to be able to send a message which determines an oscillators phase. For example, every time I press a button I would like a message to be delivered to a [phasor~] stating that it should immediately restart it’s waveform cycle from 0 or 1. Could anyone help me in coming up with a way of doing this? I have looked at the help files and do not seem to be able to resolve the issue myself. I would like to be able to press this button at any point int time and on every occasion the waveform cycle will immediately jump to the specified value.
The reason I am wanting to do this is because I am using [phasor~] as a timing source, whereby a bang is outputted every time it restarts a waveform cycle i.e. 120bpm = 0.5Hz. I would like to be able to stop and start this counting mechanism – and every time I do so the [phasor~] waveform cycle is told to start at a specific value.
Have we been here before?
----------begin_max5_patcher---------- 633.3ocwV98aZCCDG+4To9+fUj1aLjc9IrGl196XpZxjX.OQrihurwZ03u84 bgjBzjRJjVdwVb1x226St63d596bbWn2JLtjuP9Aww4IqEGzVkEmFCNtY7sI a3F7htI5rLgBbmr+PPrEvCf0RCImCIqIK0EIBCAVKH4q4FcAofmkS.MoPX.d AP3.gNcBguDDEj3vOQzKIRvf2q8o2HUhDcoBee+FqpxLoZi.P4vZrtTq.EOS fR46ER9l1mA0jTs5mEhDnNX8i7lRmPBCqVYgzpsfYSojGNvK5RnwMzFyxTzA 5E+5y9T2CctQ9H5bl8kQy+696p1saSFLbWTBfV8rxs3xxZNH0pCTu2bT8dwy q1n6WNR6cPnNvfWPD9PgwHMZW6CCrNvfWTqbquI72bQ8y6tfqV4Rd3hwgR7G qKdYplHckXm6XlPzPBejrAA3On8SButHQ3YHwjVhL5IN8QputqJ0f0Mq7tNV Q8w7E14XUmYMA8yJibkxpf2AJcR40vqShqaTv7uh5D+O95jLATnssWojuwS. 4uEjQNSfViBLef4cYYBryxkQOOHSXL7UhWBL5zQlOypPxbjO1VKgVJM6MhGZ +348.MlDcde8V8dkPcFVZvpCUlOsc6r+k5hxkMJOJtCB7bmhD9lj14Ahhu3X T7XJO4Bhw.LplWOsPXy5aYlAO2QuFud.qcibkMqd.IlGl.GEbIU1rwqEe8Ew ABOcbUT7UGbB7L5R6Pn68WSiFxAAPpcTToBms5va4e7sVKSSEpi9dlISy0RE rWIuVe6wVbzai3BGj3htMhKXPhK71HN5PDW02d1Gt1FTFWvMAaCqX350VkA6 1+Ac4VEN -----------end_max5_patcher-----------
I think maybe with a related question – I have posted a few regarding [phasor~] object in the past.. Thanks for the help! That looks to be exactly what I am looking for. Is the phase simply determined by a single message with one sole value in it? In this case a ?
Hmm… that is very strange as my .maxhelp looks different to that – and does not provide as much information. It offers a tab for further details regarding tempo – but it doesn't say anything about phase. It is because I am using max 6. Thanks for the screenshot of max 5 help file though – as before this I did not understand why some people where telling me to search for things in the help file which I could not find.
Also, try the mouseovers: if you hold your mouse over the inlet, it’ll tell you what it does (right inlet is "phase")
Forums > MaxMSP