extracting an impulse from phasor

Huntley Miller's icon

Hi folks,

I need to extract an impluse from a phasor ramp in order to trigger one of Eric Lyon's objects. I'm currently using edge~ to get a bang from the ramp and then into click~, but it's not elegant, accurate, or efficient.

Thanks,
Huntley

Roman Thilenius's icon

Quote: Huntley Miller wrote on Thu, 06 September 2007 20:06
----------------------------------------------------
> Hi folks,
>
> I need to extract an impluse from a phasor ramp in order to trigger one of Eric Lyon's objects. I'm currently using edge~ to get a bang from the ramp and then into click~, but it's not elegant, accurate, or efficient.
>
> Thanks,
> Huntley
>
>
----------------------------------------------------

i know this problem well, from various situations.

it is not possible.

due to the fact that phasor~ is interpolating as soon as it is running faster than system samplingrate, there is no transition from 1. to 0. at a sample of the system samplingrate anymore - the transition happens somewhere between 2 samples - so you cant convert it into a spike.

i have never found a solution so i try to organize things differently already on the machine model layer.
replacing cycle~ or phasor~ with line~ for example does not help much, as line~ does not take signal input ...

sometimes a system where stuff is running two times and you fade between them can help around this logic problem (do you know vdb~ and its brothers?)

-110

Luigi Castelli's icon

Maybe I misunderstand your problem, but this is what I do.
Let me know if it helps...

Max Patch
Copy patch and select New From Clipboard in Max.

- Luigi

--- Roman Thilenius wrote:

>
> Quote: Huntley Miller wrote on Thu, 06 September 2007 20:06
> ----------------------------------------------------
> > Hi folks,
> >
> > I need to extract an impluse from a phasor ramp in order to trigger
> one of Eric Lyon's objects. I'm currently using edge~ to get a bang
> from the ramp and then into click~, but it's not elegant, accurate,
> or efficient.
> >
> > Thanks,
> > Huntley
> >
> >
> ----------------------------------------------------
>
>
> i know this problem well, from various situations.
>
> it is not possible.
>
> due to the fact that phasor~ is interpolating as soon as it is
> running faster than system samplingrate, there is no transition from
> 1. to 0. at a sample of the system samplingrate anymore - the
> transition happens somewhere between 2 samples - so you cant convert
> it into a spike.
>
> i have never found a solution so i try to organize things differently
> already on the machine model layer.
> replacing cycle~ or phasor~ with line~ for example does not help
> much, as line~ does not take signal input ...
>
> sometimes a system where stuff is running two times and you fade
> between them can help around this logic problem (do you know vdb~ and
> its brothers?)
>
>
> -110
>
> --
> http://vst-mac.info/
>

------------------------------------------------------------
THIS E-MAIL MESSAGE IS FOR THE SOLE USE OF THE INTENDED RECIPIENT AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION. ANY UNAUTHORIZED REVIEW, USE, DISCLOSURE OR DISTRIBUTION IS PROHIBITED. IF YOU ARE NOT THE INTENDED RECIPIENT, CONTACT THE SENDER BY E-MAIL AT SUPERBIGIO@YAHOO.COM AND DESTROY ALL COPIES OF THE ORIGINAL MESSAGE. WITHOUT PREJUDICE UCC1-207.
------------------------------------------------------------

Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7

volker böhm's icon

On 07 Sep 2007, at 04:06, Huntley Miller wrote:

>
> Hi folks,
>
> I need to extract an impluse from a phasor ramp in order to trigger
> one of Eric Lyon's objects. I'm currently using edge~ to get a bang
> from the ramp and then into click~, but it's not elegant, accurate,
> or efficient.

[phasor~] => [delta~] => [ unit impulse at start of the ramp.

vb

Roman Thilenius's icon
Huntley Miller's icon

Thanks for all the replies! Greatly appreciated.

Stefan Tiedje's icon

Roman Thilenius schrieb:
> Quote: Huntley Miller wrote on Thu, 06 September 2007 20:06
> ----------------------------------------------------
>> I need to extract an impluse from a phasor ramp in order to trigger
>> one of Eric Lyon's objects.
>>
>
> i know this problem well, from various situations.
>
> it is not possible.

I've always used change~ for the various situations... ;-)

Just to add another possibility...

Max Patch
Copy patch and select New From Clipboard in Max.

--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com

Roman Thilenius's icon

> > it is not possible.
>
> I've always used change~ for the various situations... ;-)

ja ja, but it stops working as soon as the phasor~ or cycle~ runs faster than runtime rate.

i run into this often when building oscillators. you need to sync stuff at timepoints which do not exist between but only _inside objects (like cycle~ or wave~).

-110

micha's icon

roman, i don't get why you really want to trigger something faster than 1/4 samplingrate? i think we are talking more of a control signal here, with the phasor operating in frequencies of rhythm...

micha

Stefan Tiedje's icon

Roman Thilenius schrieb:
> ja ja, but it stops working as soon as the phasor~ or cycle~ runs
> faster than runtime rate.

What is runtime rate??? I never patch when moving faster than light...

Stefan

--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com

micha's icon

hm, i guess that this is hardly audible...i mean, if you ramp from -1 to 1 in 2 (skiping one sample) or 3 samples, i don't think that it will make such a great difference. also if you use wave~, you get an interpolated result.

i would be really interested in an example of this, and yes, triggering logic on the audio level is still an interesting topic.

nevertheless, i think that what you mentioned does not apply to huntleys problem, looked more like he needed a simple click to trigger something...

all the best

micha

Roman Thilenius's icon

>also if you use wave~, you get an interpolated result.

the problem is all about that wave~ does not interpolate when you change the start and end points.

here is a very basic model of a wavetable oscillator which has 2 waves.
the next step in such a patch would be to make sure that changes to the wavetable number will only be made at exactly the first sample of the each wave.

i am happy to announce that my buddy from france will now show us how to use [change~] to find the right moment for switchig to another wave. (feel free to remove cycle~ and use phasor~ instead)

Max Patch
Copy patch and select New From Clipboard in Max.


micha's icon

> the problem is all about that wave~ does not interpolate when you change the start and end points.

then why not use two wave~ objects (with fixed start and end points) and crossfade them?

Roman Thilenius's icon

Quote: micha wrote on Tue, 11 September 2007 03:54
----------------------------------------------------
>
> > the problem is all about that wave~ does not interpolate when you change the start and end points.
>
> then why not use two wave~ objects (with fixed start and end points) and crossfade them?
----------------------------------------------------

thats what i am doing since 4 years, it is called [110.interwave~] and works quite well.

but i would not mind to learn about a better way if there is one, especially if there is one which needs less CPU.
(interwave is 5 connections more than using just one wave object)