Csound Csound-dev Csound-tekno Search About

[Csnd] trying to get minimal cabbage example working

Date2021-11-30 10:37
FromMichael Mossey
Subject[Csnd] trying to get minimal cabbage example working
I took the demo "Gbuzz synth" in Cabbage and replaced most of it with simpler things, trying to get the smallest working synth plugin I can.

Note that Gbuzz synth works in my DAW (Reaper).

I did not have success. The problem is there is no audible sound output. Here's what I tried:

<Cabbage>
form caption("first Synth") size(855, 375), pluginid("MikeFirst")
image             bounds(  0,  0,855,295), colour("DarkSlateGrey"), outlinecolour("White"), outlinethickness(1), shape("sharp") ; main panel colouration    

</Cabbage>
<CsoundSynthesizer>

<CsOptions>
-dm0 -n -+rtmidi=null -M0                                              
</CsOptions>
<CsInstruments>

  ; originally tone.orc
  sr = 44100
  ksmps = 16
  nchnls = 2
  0dbfs = 1
  seed 0
  massign 1, 1

instr 1
  iamp ampmidi 0dbfs
  ifreq cpsmidi
  abuzz gbuzz 1, ifreq, (sr*0.75)/ifreq, 1, 0.8, 3
  ;;
  ;; filter
  ;;
  kfilt_co expseg 3200, 0.2, 800
  ; ares reson asig, xcf, xbw [, iscl] [, iskip]
  ares reson abuzz, kfilt_co, 200, 1

  iatt_dur = 0.10
  idec_dur = 0.10
  itail_dur = 0.1
  kenv linsegr 0, iatt_dur, 1, idec_dur, 0.4, 1, 0.4, itail_dur, 0
    outs ares*kenv, ares*kenv
endin


</CsInstruments>

<CsScore>
f 0 3600
</CsScore>

</CsoundSynthesizer>
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

Date2021-11-30 11:26
FromRory Walsh
SubjectRe: [Csnd] trying to get minimal cabbage example working
Looks like an issue with your gbuzz line because swapping it out for a vco2 results in audio. 

On Tue, 30 Nov 2021 at 10:38, Michael Mossey <michaelmossey@gmail.com> wrote:
I took the demo "Gbuzz synth" in Cabbage and replaced most of it with simpler things, trying to get the smallest working synth plugin I can.

Note that Gbuzz synth works in my DAW (Reaper).

I did not have success. The problem is there is no audible sound output. Here's what I tried:

<Cabbage>
form caption("first Synth") size(855, 375), pluginid("MikeFirst")
image             bounds(  0,  0,855,295), colour("DarkSlateGrey"), outlinecolour("White"), outlinethickness(1), shape("sharp") ; main panel colouration    

</Cabbage>
<CsoundSynthesizer>

<CsOptions>
-dm0 -n -+rtmidi=null -M0                                              
</CsOptions>
<CsInstruments>

  ; originally tone.orc
  sr = 44100
  ksmps = 16
  nchnls = 2
  0dbfs = 1
  seed 0
  massign 1, 1

instr 1
  iamp ampmidi 0dbfs
  ifreq cpsmidi
  abuzz gbuzz 1, ifreq, (sr*0.75)/ifreq, 1, 0.8, 3
  ;;
  ;; filter
  ;;
  kfilt_co expseg 3200, 0.2, 800
  ; ares reson asig, xcf, xbw [, iscl] [, iskip]
  ares reson abuzz, kfilt_co, 200, 1

  iatt_dur = 0.10
  idec_dur = 0.10
  itail_dur = 0.1
  kenv linsegr 0, iatt_dur, 1, idec_dur, 0.4, 1, 0.4, itail_dur, 0
    outs ares*kenv, ares*kenv
endin


</CsInstruments>

<CsScore>
f 0 3600
</CsScore>

</CsoundSynthesizer>
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

Date2021-11-30 11:49
Fromluis jure
SubjectRe: [Csnd] trying to get minimal cabbage example working
el Tue, 30 Nov 2021 11:26:53 +0000
Rory Walsh  escribió:

> Looks like an issue with your gbuzz line because swapping it out for
> a vco2 results in audio.
> 
> On Tue, 30 Nov 2021 at 10:38, Michael Mossey 
> wrote:
> >
> >   abuzz gbuzz 1, ifreq, (sr*0.75)/ifreq, 1, 0.8, 3
> >


I haven't read much Csound code in the last few years, but where is
table 3 defined?



-- 
ljc 

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

Date2021-11-30 12:23
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] Re: [Csnd] trying to get minimal cabbage example working
nowhere it seems. It needs to be given.

Prof. Victor Lazzarini
Maynooth University
Ireland

> On 30 Nov 2021, at 11:51, luis jure  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.
> 
> el Tue, 30 Nov 2021 11:26:53 +0000
> Rory Walsh  escribió:
> 
>> Looks like an issue with your gbuzz line because swapping it out for
>> a vco2 results in audio.
>> 
>>> On Tue, 30 Nov 2021 at 10:38, Michael Mossey 
>>> wrote:
>>> 
>>>  abuzz gbuzz 1, ifreq, (sr*0.75)/ifreq, 1, 0.8, 3
>>> 
> 
> 
> I haven't read much Csound code in the last few years, but where is
> table 3 defined?
> 
> 
> 
> --
> ljc 
> 
> 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=04%7C01%7CVictor.Lazzarini%40mu.ie%7C9e65de097a4f423f4b9d08d9b3f78f19%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637738698747933327%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=f8alpgg4F4jl4yUdRL6100QVnmU5%2F7z5Cz3PCP%2BIdBk%3D&reserved=0
> Send bugs reports to
>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7C9e65de097a4f423f4b9d08d9b3f78f19%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637738698747933327%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=gT3v10UmN9sAA91rqzsWHDdalfjhdrvXPPKkdbUpegk%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

Date2021-11-30 19:29
FromMichael Mossey
SubjectRe: [Csnd] [EXTERNAL] Re: [Csnd] trying to get minimal cabbage example working
Oh I get it. I feel silly. Is there a way to test this for things like missing tables before running it in the DAW? And get error messages?

I could always create a working CSD and play a few notes to check, then make the minimal changes to get to Cabbage, but it would be nice to verify I haven't done anything wrong in that last step.

-Mike


Mike

On Tue, Nov 30, 2021 at 4:23 AM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
nowhere it seems. It needs to be given.

Prof. Victor Lazzarini
Maynooth University
Ireland

> On 30 Nov 2021, at 11:51, luis jure <ljc@internet.com.uy> 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.
>
> el Tue, 30 Nov 2021 11:26:53 +0000
> Rory Walsh <rorywalsh@EAR.IE> escribió:
>
>> Looks like an issue with your gbuzz line because swapping it out for
>> a vco2 results in audio.
>>
>>> On Tue, 30 Nov 2021 at 10:38, Michael Mossey <michaelmossey@gmail.com>
>>> wrote:
>>>
>>>  abuzz gbuzz 1, ifreq, (sr*0.75)/ifreq, 1, 0.8, 3
>>>
>
>
> I haven't read much Csound code in the last few years, but where is
> table 3 defined?
>
>
>
> --
> ljc <ljc@internet.com.uy>
>
> 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=04%7C01%7CVictor.Lazzarini%40mu.ie%7C9e65de097a4f423f4b9d08d9b3f78f19%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637738698747933327%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=f8alpgg4F4jl4yUdRL6100QVnmU5%2F7z5Cz3PCP%2BIdBk%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=04%7C01%7CVictor.Lazzarini%40mu.ie%7C9e65de097a4f423f4b9d08d9b3f78f19%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637738698747933327%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=gT3v10UmN9sAA91rqzsWHDdalfjhdrvXPPKkdbUpegk%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

Date2021-11-30 19:53
FromRory Walsh
SubjectRe: [Csnd] [EXTERNAL] Re: [Csnd] trying to get minimal cabbage example working
If you run it in Cabbage it should tell you you are missing a table. If you want access to Csound messages in your Cabbage plugin, add a csoundoutput widget. Btw, Cabbage has its own forum here: https://forum.cabbageaudio.com Feel free to post any time. 


On Tue, 30 Nov 2021 at 19:30, Michael Mossey <michaelmossey@gmail.com> wrote:
Oh I get it. I feel silly. Is there a way to test this for things like missing tables before running it in the DAW? And get error messages?

I could always create a working CSD and play a few notes to check, then make the minimal changes to get to Cabbage, but it would be nice to verify I haven't done anything wrong in that last step.

-Mike


Mike

On Tue, Nov 30, 2021 at 4:23 AM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
nowhere it seems. It needs to be given.

Prof. Victor Lazzarini
Maynooth University
Ireland

> On 30 Nov 2021, at 11:51, luis jure <ljc@internet.com.uy> 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.
>
> el Tue, 30 Nov 2021 11:26:53 +0000
> Rory Walsh <rorywalsh@EAR.IE> escribió:
>
>> Looks like an issue with your gbuzz line because swapping it out for
>> a vco2 results in audio.
>>
>>> On Tue, 30 Nov 2021 at 10:38, Michael Mossey <michaelmossey@gmail.com>
>>> wrote:
>>>
>>>  abuzz gbuzz 1, ifreq, (sr*0.75)/ifreq, 1, 0.8, 3
>>>
>
>
> I haven't read much Csound code in the last few years, but where is
> table 3 defined?
>
>
>
> --
> ljc <ljc@internet.com.uy>
>
> 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=04%7C01%7CVictor.Lazzarini%40mu.ie%7C9e65de097a4f423f4b9d08d9b3f78f19%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637738698747933327%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=f8alpgg4F4jl4yUdRL6100QVnmU5%2F7z5Cz3PCP%2BIdBk%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=04%7C01%7CVictor.Lazzarini%40mu.ie%7C9e65de097a4f423f4b9d08d9b3f78f19%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C637738698747933327%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=gT3v10UmN9sAA91rqzsWHDdalfjhdrvXPPKkdbUpegk%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
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