Csound Csound-dev Csound-tekno Search About

[Csnd] Code Share: FM/AM Banjo-esque

Date2020-09-30 17:54
FromSteven Yi
Subject[Csnd] Code Share: FM/AM Banjo-esque
Hi All,

I thought I'd share another instrument design that has a kind of
banjo-esque sound:

https://ide.csound.com/editor/8hgYkyQV3dI95yl7F6FW

This one is using a Cascade FM setup with 3 operators; I added in a
pair of oscillators doing AM to add a little heft at the bottom end of
the instrument's spectrum.  The FM part has an index value that is
frequency dependent (started off as an experiment in bandlimiting the
spectrum) and kind of took on a life of its own from there.

The project uses livecode.orc but the core instrument should be easy
to re-use by removing the pan_verb_mix() call and inserting your own
output routing.

Cheers!
Steven

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

Date2020-09-30 21:46
Fromjohn
SubjectRe: [Csnd] Code Share: FM/AM Banjo-esque
Ho does one see the orchestra?   I can only get a few lines

On Wed, 30 Sep 2020, Steven Yi wrote:

> Hi All,
>
> I thought I'd share another instrument design that has a kind of
> banjo-esque sound:
>
> https://ide.csound.com/editor/8hgYkyQV3dI95yl7F6FW
>
> This one is using a Cascade FM setup with 3 operators; I added in a
> pair of oscillators doing AM to add a little heft at the bottom end of
> the instrument's spectrum.  The FM part has an index value that is
> frequency dependent (started off as an experiment in bandlimiting the
> spectrum) and kind of took on a life of its own from there.
>
> The project uses livecode.orc but the core instrument should be easy
> to re-use by removing the pan_verb_mix() call and inserting your own
> output routing.
>
> Cheers!
> Steven
>

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

Date2020-09-30 21:51
FromSteven Yi
SubjectRe: [Csnd] Code Share: FM/AM Banjo-esque
Odd, I can see the entire project.orc here. Maybe it is a browser
issue we're not aware of?  You could use the download button to
download the project as a zip and open locally.

On Wed, Sep 30, 2020 at 4:46 PM john  wrote:
>
> Ho does one see the orchestra?   I can only get a few lines
>
> On Wed, 30 Sep 2020, Steven Yi wrote:
>
> > Hi All,
> >
> > I thought I'd share another instrument design that has a kind of
> > banjo-esque sound:
> >
> > https://ide.csound.com/editor/8hgYkyQV3dI95yl7F6FW
> >
> > This one is using a Cascade FM setup with 3 operators; I added in a
> > pair of oscillators doing AM to add a little heft at the bottom end of
> > the instrument's spectrum.  The FM part has an index value that is
> > frequency dependent (started off as an experiment in bandlimiting the
> > spectrum) and kind of took on a life of its own from there.
> >
> > The project uses livecode.orc but the core instrument should be easy
> > to re-use by removing the pan_verb_mix() call and inserting your own
> > output routing.
> >
> > Cheers!
> > Steven
> >
>
> 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

Date2020-10-01 02:14
FromPete Goodeve
SubjectRe: [Csnd] Code Share: FM/AM Banjo-esque
AttachmentsNone  

Date2020-10-01 07:33
From"Dr. Richard Boulanger"
SubjectRe: [Csnd] Code Share: FM/AM Banjo-esque
Thanks Steven,

Very cool.

Dr. Richard Boulanger

Professor of Electronic Production and Design

Berklee College of Music

Professional Writing and Technology Division


skype: radiobaton 

facebook: https://www.facebook.com/richard.boulanger.58

about: http://www.boulangerlabs.com/#about

about: http://www.csounds.com/community/developers/dr-richard-boulanger/

music: http://www.csounds.com/community/developers/dr-richard-boulanger/dr-richard-boulanger-music/

Boulanger Labs - http://boulangerlabs.com

The Csound Book http://mitpress.mit.edu/books/csound-book

The Audio Programming Book - http://mitpress.mit.edu/books/audio-programming-book



On Wed, Sep 30, 2020 at 12:55 PM Steven Yi <stevenyi@gmail.com> wrote:
Hi All,

I thought I'd share another instrument design that has a kind of
banjo-esque sound:

https://us-west-2.protection.sophos.com?d=csound.com&u=aHR0cHM6Ly9pZGUuY3NvdW5kLmNvbS9lZGl0b3IvOGhnWWt5UVYzZEk5NXlsN0Y2Rlc=&e=cmJvdWxhbmdlckBiZXJrbGVlLmVkdQ==&t=ZXYyRWkzV1ZjTWlqTVFOZnp0aURGalJFOHlpdTdhb3pJOGhIQm5LQXV1Zz0=&h=e256684e9cf34420842631f7c603926a

This one is using a Cascade FM setup with 3 operators; I added in a
pair of oscillators doing AM to add a little heft at the bottom end of
the instrument's spectrum.  The FM part has an index value that is
frequency dependent (started off as an experiment in bandlimiting the
spectrum) and kind of took on a life of its own from there.

The project uses livecode.orc but the core instrument should be easy
to re-use by removing the pan_verb_mix() call and inserting your own
output routing.

Cheers!
Steven

Csound mailing list
Csound@listserv.heanet.ie
https://us-west-2.protection.sophos.com?d=heanet.ie&u=aHR0cHM6Ly9saXN0c2Vydi5oZWFuZXQuaWUvY2dpLWJpbi93YT9BMD1DU09VTkQ=&e=cmJvdWxhbmdlckBiZXJrbGVlLmVkdQ==&t=V2MrMzVGMU1BZEZaZ1lZck9kUnhTTC9YN1BHMnUxSDd4THhWY0dLeURxYz0=&h=e256684e9cf34420842631f7c603926a
Send bugs reports to
        https://us-west-2.protection.sophos.com?d=github.com&u=aHR0cHM6Ly9naXRodWIuY29tL2Nzb3VuZC9jc291bmQvaXNzdWVz&e=cmJvdWxhbmdlckBiZXJrbGVlLmVkdQ==&t=cWpnbGx6KzZUci9yQkZQMDNaTDdyZFdzK1l1WDE0TVhzOXR1dHltRUx5RT0=&h=e256684e9cf34420842631f7c603926a
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

Date2020-10-02 13:38
FromJohn ff
SubjectRe: [Csnd] Code Share: FM/AM Banjo-esque
What  download button?  

⁣Sent from TypeApp ​

On Sep 30, 2020, 21:52, at 21:52, Steven Yi  wrote:
>Odd, I can see the entire project.orc here. Maybe it is a browser
>issue we're not aware of?  You could use the download button to
>download the project as a zip and open locally.
>
>On Wed, Sep 30, 2020 at 4:46 PM john  wrote:
>>
>> Ho does one see the orchestra?   I can only get a few lines
>>
>> On Wed, 30 Sep 2020, Steven Yi wrote:
>>
>> > Hi All,
>> >
>> > I thought I'd share another instrument design that has a kind of
>> > banjo-esque sound:
>> >
>> > https://ide.csound.com/editor/8hgYkyQV3dI95yl7F6FW
>> >
>> > This one is using a Cascade FM setup with 3 operators; I added in a
>> > pair of oscillators doing AM to add a little heft at the bottom end
>of
>> > the instrument's spectrum.  The FM part has an index value that is
>> > frequency dependent (started off as an experiment in bandlimiting
>the
>> > spectrum) and kind of took on a life of its own from there.
>> >
>> > The project uses livecode.orc but the core instrument should be
>easy
>> > to re-use by removing the pan_verb_mix() call and inserting your
>own
>> > output routing.
>> >
>> > Cheers!
>> > Steven
>> >
>>
>> 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

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

Date2020-10-02 14:29
FromSteven Yi
SubjectRe: [Csnd] Code Share: FM/AM Banjo-esque
It's the third button on the right, after the play and stop buttons.

The code for the instrument looks like this:

instr FM
  ifreq  = p4
  iamp = p5

  ;; Adjusting index for amod2 depending on base frequency and sr/3
  imodindx = ((sr / 3) - ifreq) / ifreq
  imodindx *= .1

;   print imodindx
;   print imodindx * ifreq + ifreq
  imodf1 = ifreq * 8
  imodf2 = ifreq * 1

  ;; FM
  amod1 = oscili(imodf1 * expseg(2, 0.2, .001, p3, 0.001), imodf1)
  amod2 = oscili(imodf2 * imodindx, amod1 + imodf2)
  acar = oscili(0.25, ifreq + amod2)

  ;; AM
  acar2 = oscili(0.2, ifreq * 0.5)
  acar2 *= oscili(1, ifreq * 1) + 1

  ;; Mixing signals and applying Amp envelopes
  asig = acar + acar2

  asig *= expseg(iamp, 0.45, .001, p3, 0.001)

  asig *= linen:a(1, .001, p3, .001)

  pan_verb_mix(asig, 0.5, 0.2)
endin

(can replace pan_verb_mix with out(asig,asig) and it should run
outside of the project)

On Fri, Oct 2, 2020 at 8:38 AM John ff  wrote:
>
> What  download button?
>
> ⁣Sent from TypeApp
>
> On Sep 30, 2020, 21:52, at 21:52, Steven Yi  wrote:
> >Odd, I can see the entire project.orc here. Maybe it is a browser
> >issue we're not aware of?  You could use the download button to
> >download the project as a zip and open locally.
> >
> >On Wed, Sep 30, 2020 at 4:46 PM john  wrote:
> >>
> >> Ho does one see the orchestra?   I can only get a few lines
> >>
> >> On Wed, 30 Sep 2020, Steven Yi wrote:
> >>
> >> > Hi All,
> >> >
> >> > I thought I'd share another instrument design that has a kind of
> >> > banjo-esque sound:
> >> >
> >> > https://ide.csound.com/editor/8hgYkyQV3dI95yl7F6FW
> >> >
> >> > This one is using a Cascade FM setup with 3 operators; I added in a
> >> > pair of oscillators doing AM to add a little heft at the bottom end
> >of
> >> > the instrument's spectrum.  The FM part has an index value that is
> >> > frequency dependent (started off as an experiment in bandlimiting
> >the
> >> > spectrum) and kind of took on a life of its own from there.
> >> >
> >> > The project uses livecode.orc but the core instrument should be
> >easy
> >> > to re-use by removing the pan_verb_mix() call and inserting your
> >own
> >> > output routing.
> >> >
> >> > Cheers!
> >> > Steven
> >> >
> >>
> >> 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
>
> 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