[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
        Issues · csound/csound · GitHub
Discussions of bugs and features can be posted here

https://csound.com/docs/manual/GEN19.html

f1 0 16384 19 1 0.5 0 0.5

or if you mean the first half of a sine, you will use GEN09:
  giHalfSine ftgen 0, 0, 16384, 9, .5, 1, 0

you're right, I misread what he was asking. GEN9 is the simplest to do this.

Prof. Victor Lazzarini
Maynooth University
Ireland