Csound Csound-dev Csound-tekno Search About

Re: [Csnd] Question rev how to create a ramp waveform vs saw

Date2022-09-20 22:15
FromScott Daughtrey
SubjectRe: [Csnd] Question rev how to create a ramp waveform vs saw
Thank you both for the reply. I'm ok for now with a straight lfo in this specific case but knowing how to use an osc as opposed to an lfo will probably be useful in the future. 

To Dave, the waveform was already positive but your suggesting worked great, just in reverse. 

    instr Ramp
aSig =  lfo(2, 20, 4)
    out aSig + -1
    endin

Thank you both, I very much appreciate the help. 

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-09-21 09:33
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Question rev how to create a ramp waveform vs saw
you can combine all in a single expression

aSig =  lfo(2, 20, 4) - 1

========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 20 Sept 2022, at 22:15, Scott Daughtrey  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.
> 
> Thank you both for the reply. I'm ok for now with a straight lfo in this specific case but knowing how to use an osc as opposed to an lfo will probably be useful in the future.
> 
> To Dave, the waveform was already positive but your suggesting worked great, just in reverse.
> 
>    instr Ramp
> aSig =  lfo(2, 20, 4)
>    out aSig + -1
>    endin
> 
> Thank you both, I very much appreciate the help.
> 
> 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=05%7C01%7CVictor.Lazzarini%40mu.ie%7C16dc3ea2319e41a331c808da9b4d518d%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637993054086589967%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=SYXCfIs4HnI4NTujPjGuki%2Fc%2Fzo0ynEQGRFLJyGRAeo%3D&reserved=0
> Send bugs reports to
>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C16dc3ea2319e41a331c808da9b4d518d%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637993054086589967%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=1UKT1pPoS7ATOnmN9EiEOKQQfxe6rBDexz0goGHrDWk%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

Date2022-09-21 13:08
FromST Music
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Question rev how to create a ramp waveform vs saw
Thank you for the tip Victor. I started learning to code just over a month ago and have never studied programming so this is all quite new to me. Tips are always welcome!


On Wed, Sep 21, 2022, 4:33 AM Victor Lazzarini, <Victor.Lazzarini@mu.ie> wrote:
you can combine all in a single expression

aSig =  lfo(2, 20, 4) - 1

========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 20 Sept 2022, at 22:15, Scott Daughtrey <stunes6556@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.
>
> Thank you both for the reply. I'm ok for now with a straight lfo in this specific case but knowing how to use an osc as opposed to an lfo will probably be useful in the future.
>
> To Dave, the waveform was already positive but your suggesting worked great, just in reverse.
>
>    instr Ramp
> aSig =  lfo(2, 20, 4)
>    out aSig + -1
>    endin
>
> Thank you both, I very much appreciate the help.
>
> 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=05%7C01%7CVictor.Lazzarini%40mu.ie%7C16dc3ea2319e41a331c808da9b4d518d%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637993054086589967%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=SYXCfIs4HnI4NTujPjGuki%2Fc%2Fzo0ynEQGRFLJyGRAeo%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=05%7C01%7CVictor.Lazzarini%40mu.ie%7C16dc3ea2319e41a331c808da9b4d518d%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637993054086589967%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=1UKT1pPoS7ATOnmN9EiEOKQQfxe6rBDexz0goGHrDWk%3D&amp;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