[Csnd] how to avoid beatings
Date | 2019-08-28 00:23 |
From | Csounder Csounder <0000017e1be09e0e-dmarc-request@LISTSERV.HEANET.IE> |
Subject | [Csnd] how to avoid beatings |
Hi all, in the .orc/.sco below, two sounds with a distance of about a semitone are listened, and there is lots of beating. In the .wav file attached there are midi-strings, and no beating are listened. How to avoid the beatings in the .orc./sco below? Note: with or without flanger, the beating is listened. sr = 22050
kr = 2205 ksmps = 10 nchnls = 1 instr 1 ;-------flanger------------ aflan randi .1,4 kvol linseg 0,p3*.05,1,p3*.9,1,p3*.05,0 asig2 oscil kvol*200,p4+aflan ,2 asig oscil kvol*200,p4 ,2 af =asig +asig2 out af endin f1 0 4096 10 1
f2 0 4096 10 1 .5 .25 .125 i1 0 20 160.001 i1 0 20 160.002 i1 0 20 160.003 i1 0 20 160.004 i1 0 20 160.005 i1 0 20 160.006 i1 0 20 160.007 i1 0 20 160.008 i1 0 20 160.009 i1 0 20 160.01 i1 0 20 160.011 i1 0 20 160.012 i1 0 20 160.013 i1 0 20 160.014 i1 0 20 160.015 i1 0 20 160.016 i1 0 20 160.017 i1 0 20 160.018 i1 0 20 160.019 i1 6 14 170.001 i1 6 14 170.002 i1 6 14 170.003 i1 6 14 170.004 i1 6 14 170.005 i1 6 14 170.006 i1 6 14 170.007 i1 6 14 170.008 i1 6 14 170.009 i1 6 14 170.01 i1 6 14 170.011 i1 6 14 170.012 i1 6 14 170.013 i1 6 14 170.014 i1 6 14 170.015 i1 6 14 170.016 i1 6 14 170.017 i1 6 14 170.018 i1 6 14 170.019 i1 6 14 170.02 i1 6 14 170.021 i1 6 14 170.022 i1 6 14 170.023 |
Date | 2019-08-28 01:08 |
From | Csounder Csounder <0000017e1be09e0e-dmarc-request@LISTSERV.HEANET.IE> |
Subject | Re: [Csnd] how to avoid beatings |
Attachments | Midi string.wav |
Here is the .wav file
On Wednesday, August 28, 2019, 2:36:45 AM GMT+3, Csounder Csounder <0000017e1be09e0e-dmarc-request@LISTSERV.HEANET.IE> wrote:
Hi all, in the .orc/.sco below, two sounds with a distance of about a semitone are listened, and there is lots of beating. In the .wav file attached there are midi-strings, and no beating are listened. How to avoid the beatings in the .orc./sco below? Note: with or without flanger, the beating is listened. sr = 22050
kr = 2205 ksmps = 10 nchnls = 1 instr 1 ;-------flanger------------ aflan randi .1,4 kvol linseg 0,p3*.05,1,p3*.9,1,p3*.05,0 asig2 oscil kvol*200,p4+aflan ,2 asig oscil kvol*200,p4 ,2 af =asig +asig2 out af endin f1 0 4096 10 1
f2 0 4096 10 1 .5 .25 .125 i1 0 20 160.001 i1 0 20 160.002 i1 0 20 160.003 i1 0 20 160.004 i1 0 20 160.005 i1 0 20 160.006 i1 0 20 160.007 i1 0 20 160.008 i1 0 20 160.009 i1 0 20 160.01 i1 0 20 160.011 i1 0 20 160.012 i1 0 20 160.013 i1 0 20 160.014 i1 0 20 160.015 i1 0 20 160.016 i1 0 20 160.017 i1 0 20 160.018 i1 0 20 160.019 i1 6 14 170.001 i1 6 14 170.002 i1 6 14 170.003 i1 6 14 170.004 i1 6 14 170.005 i1 6 14 170.006 i1 6 14 170.007 i1 6 14 170.008 i1 6 14 170.009 i1 6 14 170.01 i1 6 14 170.011 i1 6 14 170.012 i1 6 14 170.013 i1 6 14 170.014 i1 6 14 170.015 i1 6 14 170.016 i1 6 14 170.017 i1 6 14 170.018 i1 6 14 170.019 i1 6 14 170.02 i1 6 14 170.021 i1 6 14 170.022 i1 6 14 170.023 |
Date | 2019-08-28 03:12 |
From | Justin Rosander |
Subject | Re: [Csnd] how to avoid beatings |
Try offsetting the initial phase of one of your oscils? See: https://csound.com/docs/manual/oscil.html
ares oscil xamp, xcps [, ifn, iphs]
Sent from Mail for Windows 10
From: Csounder Csounder
Hi all, in the .orc/.sco below, two sounds with a distance of about a semitone are listened, and there is lots of beating. In the .wav file attached there are midi-strings, and no beating are listened. How to avoid the beatings in the .orc./sco below? Note: with or without flanger, the beating is listened. sr = 22050 kr = 2205 ksmps = 10 nchnls = 1 instr 1 ;-------flanger------------ aflan randi .1,4 kvol linseg 0,p3*.05,1,p3*.9,1,p3*.05,0 asig2 oscil kvol*200,p4+aflan ,2 asig oscil kvol*200,p4 ,2 af =asig +asig2 out af endin f1 0 4096 10 1 f2 0 4096 10 1 .5 .25 .125 i1 0 20 160.001 i1 0 20 160.002 i1 0 20 160.003 i1 0 20 160.004 i1 0 20 160.005 i1 0 20 160.006 i1 0 20 160.007 i1 0 20 160.008 i1 0 20 160.009 i1 0 20 160.01 i1 0 20 160.011 i1 0 20 160.012 i1 0 20 160.013 i1 0 20 160.014 i1 0 20 160.015 i1 0 20 160.016 i1 0 20 160.017 i1 0 20 160.018 i1 0 20 160.019 i1 6 14 170.001 i1 6 14 170.002 i1 6 14 170.003 i1 6 14 170.004 i1 6 14 170.005 i1 6 14 170.006 i1 6 14 170.007 i1 6 14 170.008 i1 6 14 170.009 i1 6 14 170.01 i1 6 14 170.011 i1 6 14 170.012 i1 6 14 170.013 i1 6 14 170.014 i1 6 14 170.015 i1 6 14 170.016 i1 6 14 170.017 i1 6 14 170.018 i1 6 14 170.019 i1 6 14 170.02 i1 6 14 170.021 i1 6 14 170.022 i1 6 14 170.023 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
|
Date | 2019-08-28 03:43 |
From | Csounder Csounder <0000017e1be09e0e-dmarc-request@LISTSERV.HEANET.IE> |
Subject | Re: [Csnd] how to avoid beatings |
Attachments | =?UTF-8?b?TWlkaSBzdHJpbmcud2F2?= |
can you give working code? and i mean that the strings playing the semitone in the .wav file do no beat
On Wednesday, August 28, 2019, 5:13:20 AM GMT+3, Justin Rosander <justinrosander@GMAIL.COM> wrote:
Try offsetting the initial phase of one of your oscils? See: https://csound.com/docs/manual/oscil.html
ares oscil xamp, xcps [, ifn, iphs]
Sent from Mail for Windows 10
From: Csounder Csounder
Hi all, in the .orc/.sco below, two sounds with a distance of about a semitone are listened, and there is lots of beating. In the .wav file attached there are midi-strings, and no beating are listened. How to avoid the beatings in the .orc./sco below? Note: with or without flanger, the beating is listened.
sr = 22050 kr = 2205 ksmps = 10 nchnls = 1 instr 1
;-------flanger------------
aflan randi .1,4 kvol linseg 0,p3*.05,1,p3*.9,1,p3*.05,0
asig2 oscil kvol*200,p4+aflan ,2
asig oscil kvol*200,p4 ,2
af =asig +asig2 out af endin
f1 0 4096 10 1 f2 0 4096 10 1 .5 .25 .125
i1 0 20 160.001 i1 0 20 160.002 i1 0 20 160.003 i1 0 20 160.004 i1 0 20 160.005 i1 0 20 160.006 i1 0 20 160.007 i1 0 20 160.008 i1 0 20 160.009 i1 0 20 160.01 i1 0 20 160.011 i1 0 20 160.012 i1 0 20 160.013 i1 0 20 160.014 i1 0 20 160.015 i1 0 20 160.016 i1 0 20 160.017 i1 0 20 160.018 i1 0 20 160.019
i1 6 14 170.001 i1 6 14 170.002 i1 6 14 170.003 i1 6 14 170.004 i1 6 14 170.005 i1 6 14 170.006 i1 6 14 170.007 i1 6 14 170.008 i1 6 14 170.009 i1 6 14 170.01 i1 6 14 170.011 i1 6 14 170.012 i1 6 14 170.013 i1 6 14 170.014 i1 6 14 170.015 i1 6 14 170.016 i1 6 14 170.017 i1 6 14 170.018 i1 6 14 170.019 i1 6 14 170.02 i1 6 14 170.021 i1 6 14 170.022 i1 6 14 170.023
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 |
Date | 2019-08-28 12:18 |
From | John ff |
Subject | Re: [Csnd] how to avoid beatings |
You have two oscillators with frequencies pr and p4+a random small value. It is also a definition of beating. Sent from TypeApp On Aug 28, 2019, 00:37, at 00:37, Csounder Csounder <0000017e1be09e0e-dmarc-request@listserv.heanet.ie> wrote: >Hi all, in the .orc/.sco below, two sounds with a distance of about a >semitone are listened, and there is lots of beating.In the .wav file >attached there are midi-strings, and no beating are listened. How to >avoid the beatings in the .orc./sco below?Note: with or without >flanger, the beating is listened. > > > > sr = 22050 > kr = 2205 > > ksmps = 10 > > nchnls = 1 > > instr 1 > > > > > > > >;-------flanger------------ > > > > >aflan randi .1,4 > >kvol linseg 0,p3*.05,1,p3*.9,1,p3*.05,0 > > > > >asig2 oscil kvol*200,p4+aflan ,2 > > > > > > > >asig oscil kvol*200,p4 ,2 > > > > >af =asig +asig2 > >out af > >endin > >f1 0 4096 10 1 >f2 0 4096 10 1 .5 .25 .125 > > > > >i1 0 20 160.001 > >i1 0 20 160.002 > >i1 0 20 160.003 > >i1 0 20 160.004 > >i1 0 20 160.005 > >i1 0 20 160.006 > >i1 0 20 160.007 > >i1 0 20 160.008 > >i1 0 20 160.009 > >i1 0 20 160.01 > >i1 0 20 160.011 > >i1 0 20 160.012 > >i1 0 20 160.013 > >i1 0 20 160.014 > >i1 0 20 160.015 > >i1 0 20 160.016 > >i1 0 20 160.017 > >i1 0 20 160.018 >i1 0 20 160.019 > > >i1 6 14 170.001 > >i1 6 14 170.002 > >i1 6 14 170.003 > >i1 6 14 170.004 > >i1 6 14 170.005 > >i1 6 14 170.006 > >i1 6 14 170.007 > >i1 6 14 170.008 > >i1 6 14 170.009 > >i1 6 14 170.01 > >i1 6 14 170.011 > >i1 6 14 170.012 > >i1 6 14 170.013 > >i1 6 14 170.014 > >i1 6 14 170.015 > >i1 6 14 170.016 > >i1 6 14 170.017 > >i1 6 14 170.018 > >i1 6 14 170.019 > >i1 6 14 170.02 > >i1 6 14 170.021 > >i1 6 14 170.022 > >i1 6 14 170.023 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >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 |
Date | 2019-08-28 12:18 |
From | Oeyvind Brandtsegg |
Subject | Re: [Csnd] how to avoid beatings |
Hi, If I understand correctly, the beatings in the first example comes from the multiple instances of i1 running at the same time with slightly different frequencies i1 0 20 160.001 i1 0 20 160.002 i1 0 20 160.003 i1 0 20 160.004 It does not really compare with the midi example, because there (I assume) you are playing one single note (then adding one more single note a semitone above) If you change the score to just i1 0 20 160.001 i1 6 14 170.001 then it will be more like the midi example. All best Oeyvind ons. 28. aug. 2019 kl. 12:49 skrev Csounder Csounder <0000017e1be09e0e-dmarc-request@listserv.heanet.ie>:
|
Date | 2019-08-28 14:12 |
From | Richard van Bemmelen |
Subject | Re: [Csnd] how to avoid beatings |
When you superimpose 2 sine waves with frequencies f1 and f2 you get beat frequencies of abs(f1 - f2), so called sum and difference frequencies. Richard Op wo 28 aug. 2019 om 13:19 schreef John ff <jpff@codemist.co.uk>: You have two oscillators with frequencies pr and p4+a random small value. It is also a definition of beating. |
Date | 2019-08-28 14:58 |
From | Justin Rosander |
Subject | Re: [Csnd] how to avoid beatings |
For a synth that I regularly use, I set iphs like so with some conservative float values: a1 oscil iamp, icps, ifn a2 oscil iamp, icps-.01, ifn a3 oscil iamp, icps+.01, ifn, .11 a2 and a3 have slight detune values, which would cause the phase beating. Plug in your own amp, freq and function and try it out. iphs is optional, note the first oscils have no initial phase offset. Offsetting the phase mitigates the beating. On Wed, Aug 28, 2019 at 6:49 AM Csounder Csounder <0000017e1be09e0e-dmarc-request@listserv.heanet.ie> wrote:
|