Csound Csound-dev Csound-tekno Search About

mvclpf24

Date2016-01-10 11:32
FromRory Walsh
Subjectmvclpf24
Attachmentsmvclpf24.cpp  
This is a very rough port of the second mvclpf24 implementation from Fons. I'm posting it here so the devs can take a look and see if they think I've done this right. I do not follow the DSP code at all, but thankfully Fons wrote that! 

I did have to take some leaps of faith with regards to the how the various LADSPA ports are used in the code. It seems to work nicely, the resonance is very nice I must say, but I'm still not sure I've ported it right. I've no idea what the Exp FM control is for, nor do I understand why the filter frequency goes from -6, 6? 

Fons used to frequent this list, that's why I posted this under a new subject. Maybe it will grab his attention! If my crude port seems Ok I will do the remaining 3 when I get a chance. Here's an example, and below is the link to the original source. 

<CsoundSynthesizer>
<CsOptions>
-odac:hw:0,0    ;;;RT audio out
</CsOptions>
<CsInstruments>
sr     = 44100
ksmps  = 32
nchnls = 2
0dbfs  = 1

;browse for text files in current directory
instr 1
kFrequency init 3; range(-6, 6)  
kExpFM init 7.5; range(0, 10)
kRes init .5; range(0, 1)
kResGain init .5; range(0, 1)

aInput randi 1, 22050
kFrequency line -6, 5, 6 
a1 mvclpf24 aInput, kFrequency, kExpFM, kRes, kResGain 
outs a1, a1
endin

</CsInstruments>
<CsScore>
i1 0 5
</CsScore>
</CsoundSynthesiser>



On 9 January 2016 at 22:51, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Good on you, Rory.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 9 Jan 2016, at 22:47, Rory Walsh <rorywalsh@EAR.IE> wrote:

I took a look at the source. Shouldn't be much work. I'll not have time to do this for a few weeks, but would like to try.

On 9 Jan 2016 21:53, "Luis Jure" <ljc@internet.com.uy> wrote:
Victor Lazzarini <Victor.Lazzarini@NUIM.IE> escribió:

A nice job for a rainy Saturday: port those Ladspa plugins as Csound opcodes.

i haven't tried them (i don't use ladspa plugins), but if they are as good as they say, it would be great to have them as csound opcodes, indeed. anyone with rainy saturdays?

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 tohttps://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 tohttps://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

Date2016-01-10 12:40
FromVictor Lazzarini
SubjectRe: mvclpf24
and it is not even raining

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 10 Jan 2016, at 11:32, Rory Walsh <rorywalsh@EAR.IE> wrote:

This is a very rough port of the second mvclpf24 implementation from Fons. I'm posting it here so the devs can take a look and see if they think I've done this right. I do not follow the DSP code at all, but thankfully Fons wrote that! 

I did have to take some leaps of faith with regards to the how the various LADSPA ports are used in the code. It seems to work nicely, the resonance is very nice I must say, but I'm still not sure I've ported it right. I've no idea what the Exp FM control is for, nor do I understand why the filter frequency goes from -6, 6? 

Fons used to frequent this list, that's why I posted this under a new subject. Maybe it will grab his attention! If my crude port seems Ok I will do the remaining 3 when I get a chance. Here's an example, and below is the link to the original source. 

<CsoundSynthesizer>
<CsOptions>
-odac:hw:0,0    ;;;RT audio out
</CsOptions>
<CsInstruments>
sr     = 44100
ksmps  = 32
nchnls = 2
0dbfs  = 1

;browse for text files in current directory
instr 1
kFrequency init 3; range(-6, 6)  
kExpFM init 7.5; range(0, 10)
kRes init .5; range(0, 1)
kResGain init .5; range(0, 1)

aInput randi 1, 22050
kFrequency line -6, 5, 6 
a1 mvclpf24 aInput, kFrequency, kExpFM, kRes, kResGain 
outs a1, a1
endin

</CsInstruments>
<CsScore>
i1 0 5
</CsScore>
</CsoundSynthesiser>



On 9 January 2016 at 22:51, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Good on you, Rory.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 9 Jan 2016, at 22:47, Rory Walsh <rorywalsh@EAR.IE> wrote:

I took a look at the source. Shouldn't be much work. I'll not have time to do this for a few weeks, but would like to try.

On 9 Jan 2016 21:53, "Luis Jure" <ljc@internet.com.uy> wrote:
Victor Lazzarini <Victor.Lazzarini@NUIM.IE> escribió:

A nice job for a rainy Saturday: port those Ladspa plugins as Csound opcodes.

i haven't tried them (i don't use ladspa plugins), but if they are as good as they say, it would be great to have them as csound opcodes, indeed. anyone with rainy saturdays?

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 tohttps://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 tohttps://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
<mvclpf24.cpp>

Date2016-01-10 12:48
FromVictor Lazzarini
SubjectRe: mvclpf24
Would the 6 range be actually 6.28.... which
is 2pi? Not looked at the code, but this jumped at me.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 10 Jan 2016, at 11:32, Rory Walsh <rorywalsh@EAR.IE> wrote:

This is a very rough port of the second mvclpf24 implementation from Fons. I'm posting it here so the devs can take a look and see if they think I've done this right. I do not follow the DSP code at all, but thankfully Fons wrote that! 

I did have to take some leaps of faith with regards to the how the various LADSPA ports are used in the code. It seems to work nicely, the resonance is very nice I must say, but I'm still not sure I've ported it right. I've no idea what the Exp FM control is for, nor do I understand why the filter frequency goes from -6, 6? 

Fons used to frequent this list, that's why I posted this under a new subject. Maybe it will grab his attention! If my crude port seems Ok I will do the remaining 3 when I get a chance. Here's an example, and below is the link to the original source. 

<CsoundSynthesizer>
<CsOptions>
-odac:hw:0,0    ;;;RT audio out
</CsOptions>
<CsInstruments>
sr     = 44100
ksmps  = 32
nchnls = 2
0dbfs  = 1

;browse for text files in current directory
instr 1
kFrequency init 3; range(-6, 6)  
kExpFM init 7.5; range(0, 10)
kRes init .5; range(0, 1)
kResGain init .5; range(0, 1)

aInput randi 1, 22050
kFrequency line -6, 5, 6 
a1 mvclpf24 aInput, kFrequency, kExpFM, kRes, kResGain 
outs a1, a1
endin

</CsInstruments>
<CsScore>
i1 0 5
</CsScore>
</CsoundSynthesiser>



On 9 January 2016 at 22:51, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Good on you, Rory.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 9 Jan 2016, at 22:47, Rory Walsh <rorywalsh@EAR.IE> wrote:

I took a look at the source. Shouldn't be much work. I'll not have time to do this for a few weeks, but would like to try.

On 9 Jan 2016 21:53, "Luis Jure" <ljc@internet.com.uy> wrote:
Victor Lazzarini <Victor.Lazzarini@NUIM.IE> escribió:

A nice job for a rainy Saturday: port those Ladspa plugins as Csound opcodes.

i haven't tried them (i don't use ladspa plugins), but if they are as good as they say, it would be great to have them as csound opcodes, indeed. anyone with rainy saturdays?

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 tohttps://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 tohttps://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
<mvclpf24.cpp>

Date2016-01-10 12:57
FromRory Walsh
SubjectRe: mvclpf24
It's raining where I am! Anyhow, I just grabbed the same ranges that appear in his LADSPA descriptions. See below. I'll not be able to do anything more on this for the next few days. Real work is calling! But when things settle down I'll look at the the others ones. 

    { LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE | LADSPA_HINT_DEFAULT_0, -6, 6 },
    { LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE, 0, 10 },
    { LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE, 0, 1 },
    { LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE, 0, 1 },
    { LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE | LADSPA_HINT_DEFAULT_0, -15, 15 },

On 10 January 2016 at 12:48, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Would the 6 range be actually 6.28.... which
is 2pi? Not looked at the code, but this jumped at me.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 10 Jan 2016, at 11:32, Rory Walsh <rorywalsh@EAR.IE> wrote:

This is a very rough port of the second mvclpf24 implementation from Fons. I'm posting it here so the devs can take a look and see if they think I've done this right. I do not follow the DSP code at all, but thankfully Fons wrote that! 

I did have to take some leaps of faith with regards to the how the various LADSPA ports are used in the code. It seems to work nicely, the resonance is very nice I must say, but I'm still not sure I've ported it right. I've no idea what the Exp FM control is for, nor do I understand why the filter frequency goes from -6, 6? 

Fons used to frequent this list, that's why I posted this under a new subject. Maybe it will grab his attention! If my crude port seems Ok I will do the remaining 3 when I get a chance. Here's an example, and below is the link to the original source. 

<CsoundSynthesizer>
<CsOptions>
-odac:hw:0,0    ;;;RT audio out
</CsOptions>
<CsInstruments>
sr     = 44100
ksmps  = 32
nchnls = 2
0dbfs  = 1

;browse for text files in current directory
instr 1
kFrequency init 3; range(-6, 6)  
kExpFM init 7.5; range(0, 10)
kRes init .5; range(0, 1)
kResGain init .5; range(0, 1)

aInput randi 1, 22050
kFrequency line -6, 5, 6 
a1 mvclpf24 aInput, kFrequency, kExpFM, kRes, kResGain 
outs a1, a1
endin

</CsInstruments>
<CsScore>
i1 0 5
</CsScore>
</CsoundSynthesiser>



On 9 January 2016 at 22:51, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Good on you, Rory.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 9 Jan 2016, at 22:47, Rory Walsh <rorywalsh@EAR.IE> wrote:

I took a look at the source. Shouldn't be much work. I'll not have time to do this for a few weeks, but would like to try.

On 9 Jan 2016 21:53, "Luis Jure" <ljc@internet.com.uy> wrote:
Victor Lazzarini <Victor.Lazzarini@NUIM.IE> escribió:

A nice job for a rainy Saturday: port those Ladspa plugins as Csound opcodes.

i haven't tried them (i don't use ladspa plugins), but if they are as good as they say, it would be great to have them as csound opcodes, indeed. anyone with rainy saturdays?

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 tohttps://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 tohttps://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
<mvclpf24.cpp>
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