Csound Csound-dev Csound-tekno Search About

[Csnd] making circles

Date2008-05-25 22:28
FromJulien Claassen
Subject[Csnd] making circles
hello everyone!
   Probably more a mathematical question or a question of simple logic, but I 
don't really get it.
   How can I get csound to ouput a repeating interpolation of 0-360 and than 
abruptly start at 0 again. Or can I just move on from 360-720 and so on?
   Can anyone help me?
   Kindest regards
          Julien

--------
Music was my first love and it will be my last (John Miles)

======== FIND MY WEB-PROJECT AT: ========
http://ltsb.sourceforge.net
the Linux TextBased Studio guide
======= AND MY PERSONAL PAGES AT: =======
http://www.juliencoder.de

Date2008-05-25 22:59
Fromluis jure
Subject[Csnd] Re: making circles
El Sun, 25 May 2008 23:28:55 +0200 (CEST)
Julien Claassen  escribió:


> How can I get csound to ouput a repeating interpolation of 0-360
> and than abruptly start at 0 again.

well, i don't know in what context you want this, but what about using
a phasor with the desired frequency, and multiplying the output by 360?

> Or can I just move on from 360-720 and so on?

in many situations you don't need to reset to 0 after reaching 360, you
can increase the phase indefinitely. in what context are you going to
use this? a concrete example would be useful...

best,

lj


Date2008-05-25 23:18
FromJulien Claassen
Subject[Csnd] Re: Re: making circles
Hi!
   Sorry for being so sparse. I want to move an audio signal in circles using 
hrtfer. It should just circels around a few times and the elevation (kevel) 
will continuously go up.
   Thanks for the hlep you already gave, maybe I should try a phasor.
   Kindest regards
         Julien

--------
Music was my first love and it will be my last (John Miles)

======== FIND MY WEB-PROJECT AT: ========
http://ltsb.sourceforge.net
the Linux TextBased Studio guide
======= AND MY PERSONAL PAGES AT: =======
http://www.juliencoder.de

Date2008-05-25 23:33
FromCesare Marilungo
Subject[Csnd] Re: Re: Re: making circles
Julien Claassen wrote:
> Hi!
>   Sorry for being so sparse. I want to move an audio signal in circles 
> using hrtfer. It should just circels around a few times and the 
> elevation (kevel) will continuously go up.
>   Thanks for the hlep you already gave, maybe I should try a phasor.
>   Kindest regards
>         Julien
Hi Julien,
I think you should use hrtfmove:

http://www.csounds.com/manual/html/hrtfmove.html

A linseg that goes from 0 to 360*number_of_turns is all you need. And 
another one, of course, for the elevation.

All the best,

-c.

>
> --------
> Music was my first love and it will be my last (John Miles)
>
> ======== FIND MY WEB-PROJECT AT: ========
> http://ltsb.sourceforge.net
> the Linux TextBased Studio guide
> ======= AND MY PERSONAL PAGES AT: =======
> http://www.juliencoder.de
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
> "unsubscribe csound"
>
>


Date2008-05-25 23:48
FromJulien Claassen
Subject[Csnd] Re: Re: Re: Re: making circles
Thanks!

--------
Music was my first love and it will be my last (John Miles)

======== FIND MY WEB-PROJECT AT: ========
http://ltsb.sourceforge.net
the Linux TextBased Studio guide
======= AND MY PERSONAL PAGES AT: =======
http://www.juliencoder.de

Date2008-05-26 21:04
FromMark Van Peteghem
Subject[Csnd] Re: making circles
Hi Julien,

If you want two coordinates that run on a circle, you could do it with 
two sines of the same frequency that have a phase difference of 90 degrees:

gi_sine ftgen 0, 0, 2^16, 10, 1

instr 1
    ifreq = 10
    kx oscil3 1, ifreq, gi_sine
    ky oscil3 1, ifreq, gi_sine, 0.25
endin


Julien Claassen schreef:
> hello everyone!
>   Probably more a mathematical question or a question of simple logic, 
> but I don't really get it.
>   How can I get csound to ouput a repeating interpolation of 0-360 and 
> than abruptly start at 0 again. Or can I just move on from 360-720 and 
> so on?
>   Can anyone help me?
>   Kindest regards
>          Julien
>
> --------
> Music was my first love and it will be my last (John Miles)
>
> ======== FIND MY WEB-PROJECT AT: ========
> http://ltsb.sourceforge.net
> the Linux TextBased Studio guide
> ======= AND MY PERSONAL PAGES AT: =======
> http://www.juliencoder.de
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
> "unsubscribe csound"
>
>

-- 
  Mark
  _________________________________________
  When you get lemons, you make lemonade.
  When you get hardware, you make software.


Date2008-05-26 21:36
FromMark Van Peteghem
Subject[Csnd] Re: Re: making circles
Hmm, on the line with the ftgen I wrote a 2 followed by the power sign 
^, followed by 16. But Thunderbird seems to render the 16 as a 
superscript, maybe other email clients do that as well. I just want to 
make sure you get that right :-)

Mark Van Peteghem schreef:
> Hi Julien,
>
> If you want two coordinates that run on a circle, you could do it with 
> two sines of the same frequency that have a phase difference of 90 
> degrees:
>
> gi_sine ftgen 0, 0, 2^16, 10, 1
>
> instr 1
>    ifreq = 10
>    kx oscil3 1, ifreq, gi_sine
>    ky oscil3 1, ifreq, gi_sine, 0.25
> endin
>
>
> Julien Claassen schreef:
>> hello everyone!
>>   Probably more a mathematical question or a question of simple 
>> logic, but I don't really get it.
>>   How can I get csound to ouput a repeating interpolation of 0-360 
>> and than abruptly start at 0 again. Or can I just move on from 
>> 360-720 and so on?
>>   Can anyone help me?
>>   Kindest regards
>>          Julien
>>
>> --------
>> Music was my first love and it will be my last (John Miles)
>>
>> ======== FIND MY WEB-PROJECT AT: ========
>> http://ltsb.sourceforge.net
>> the Linux TextBased Studio guide
>> ======= AND MY PERSONAL PAGES AT: =======
>> http://www.juliencoder.de
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>> "unsubscribe csound"
>>
>>
>

-- 
  Mark
  _________________________________________
  When you get lemons, you make lemonade.
  When you get hardware, you make software.


Date2008-05-26 22:37
FromJulien Claassen
Subject[Csnd] Re: Re: Re: making circles
Hi!
   Thanks Mark!
   Never worry, I used pine in text-mode. So I just read, what the other person 
typed, letter by letter. :-)
   Kindest regards
          Julien

--------
Music was my first love and it will be my last (John Miles)

======== FIND MY WEB-PROJECT AT: ========
http://ltsb.sourceforge.net
the Linux TextBased Studio guide
======= AND MY PERSONAL PAGES AT: =======
http://www.juliencoder.de