Csound Csound-dev Csound-tekno Search About

[Csnd] GEN postive sine

Date2022-01-24 11:38
Fromj
Subject[Csnd] GEN postive sine
Hi,

What's the cleaner way to make a GEN with only the positive part of a sine/cosine ? thank u

thank you,

j

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2022-01-24 11:59
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] GEN postive sine


f1 0 16384 19 1 0.5 0 0.5



On 24 Jan 2022, at 11:38, j <jacques.mascheroni@GMAIL.COM> wrote:

*Warning*

This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.

Hi,

What's the cleaner way to make a GEN with only the positive part of a sine/cosine ? thank u

thank you,

j

Csound mailing list
Csound@listserv.heanet.ie
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&amp;data=04%7C01%7CVictor.Lazzarini%40mu.ie%7C3b64f9d311314651ad0108d9df2e27af%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637786212154266323%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=l%2FHDsnRbGxxpZAgHi9TCHbEv1cuiPLSXE0HQsmc%2Bxn4%3D&amp;reserved=0
Send bugs reports to
       https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&amp;data=04%7C01%7CVictor.Lazzarini%40mu.ie%7C3b64f9d311314651ad0108d9df2e27af%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637786212154266323%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=UsnQ37YCeqoWgVGWXjU4%2BDQ7Rr3SFkE8U2WmWUWKuwg%3D&amp;reserved=0
Discussions of bugs and features can be posted here


Date2022-01-24 12:42
Fromjoachim heintz
SubjectRe: [Csnd] [EXTERNAL] [Csnd] GEN postive sine
or if you mean the first half of a sine, you will use GEN09:
	giHalfSine ftgen 0, 0, 16384, 9, .5, 1, 0


On 24/01/2022 12:59, Victor Lazzarini wrote:
> https://csound.com/docs/manual/GEN19.html 
> 
> 
> 
> f1 0 16384 19 1 0.5 0 0.5
> 
> 
> 
>> On 24 Jan 2022, at 11:38, j > > wrote:
>>
>> *Warning*
>>
>> This email originated from outside of Maynooth University's Mail 
>> System. Do not reply, click links or open attachments unless you 
>> recognise the sender and know the content is safe.
>>
>> Hi,
>>
>> What's the cleaner way to make a GEN with only the positive part of a 
>> sine/cosine ? thank u
>>
>> thank you,
>>
>> j
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie 
>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7C3b64f9d311314651ad0108d9df2e27af%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637786212154266323%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=l%2FHDsnRbGxxpZAgHi9TCHbEv1cuiPLSXE0HQsmc%2Bxn4%3D&reserved=0
>> Send bugs reports to
>>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7C3b64f9d311314651ad0108d9df2e27af%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637786212154266323%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=UsnQ37YCeqoWgVGWXjU4%2BDQ7Rr3SFkE8U2WmWUWKuwg%3D&reserved=0
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list Csound@listserv.heanet.ie 
>  
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND 
>  Send bugs reports to 
> https://github.com/csound/csound/issues 
>  Discussions of bugs and 
> features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2022-01-24 20:02
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] GEN postive sine
you're right, I misread what he was asking. GEN9 is the simplest to do this.

Prof. Victor Lazzarini
Maynooth University
Ireland

> On 24 Jan 2022, at 12:43, joachim heintz  wrote:
> 
> or if you mean the first half of a sine, you will use GEN09:
>    giHalfSine ftgen 0, 0, 16384, 9, .5, 1, 0
> 
> 
>> On 24/01/2022 12:59, Victor Lazzarini wrote:
>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcsound.com%2Fdocs%2Fmanual%2FGEN19.html&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7Cd7a59945222d4d06516708d9df36f4d5%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637786250005452831%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=q0HB5UDRR9W%2BqFRZktmmijc94hd3nSoP6MPTYm%2FFvb0%3D&reserved=0 
>> f1 0 16384 19 1 0.5 0 0.5
>>>> On 24 Jan 2022, at 11:38, j > wrote:
>>> 
>>> *Warning*
>>> 
>>> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>>> 
>>> Hi,
>>> 
>>> What's the cleaner way to make a GEN with only the positive part of a sine/cosine ? thank u
>>> 
>>> thank you,
>>> 
>>> j
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie 
>>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7Cd7a59945222d4d06516708d9df36f4d5%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637786250005452831%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=gyhPAmTu3zth0swWtyA8hibdMJy5rOkbIayqHD0AbmM%3D&reserved=0
>>> Send bugs reports to
>>>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7Cd7a59945222d4d06516708d9df36f4d5%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637786250005452831%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cxsczgNQzjMwLeMVQ4DwPUBkF1r%2FXBT9gsuOX2Whl5k%3D&reserved=0
>>> Discussions of bugs and features can be posted here
>> Csound mailing list Csound@listserv.heanet.ie  https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7Cd7a59945222d4d06516708d9df36f4d5%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637786250005452831%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=gyhPAmTu3zth0swWtyA8hibdMJy5rOkbIayqHD0AbmM%3D&reserved=0  Send bugs reports to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7Cd7a59945222d4d06516708d9df36f4d5%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637786250005452831%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cxsczgNQzjMwLeMVQ4DwPUBkF1r%2FXBT9gsuOX2Whl5k%3D&reserved=0  Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7Cd7a59945222d4d06516708d9df36f4d5%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637786250005452831%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=gyhPAmTu3zth0swWtyA8hibdMJy5rOkbIayqHD0AbmM%3D&reserved=0
> Send bugs reports to
>       https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7Cd7a59945222d4d06516708d9df36f4d5%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637786250005452831%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cxsczgNQzjMwLeMVQ4DwPUBkF1r%2FXBT9gsuOX2Whl5k%3D&reserved=0
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here