Csound Csound-dev Csound-tekno Search About

[Csnd-dev] Metadata in .csd

Date2026-11-16 09:42
FromEduardo Moguillansky
Subject[Csnd-dev] Metadata in .csd
In csoundqt we are including support for managing plugin dependencies. It would be nice to have a standard way of declaring dependencies and metadata in general.

I propose a new tag "CsMeta", which includes toml-formatted text inside. This was chosen because it is the same format used in .csound7rc. This ends up looking like:

<CsMeta>
plugins = ["plugin1", "plugin2"]
</CsMeta>

Where "plugin1" might also include versions, like "plugin1>=1.0", etc. 

This tag could be used as a hub for already existing tags like CsVersion or CsLicence, which could be included here 

<CsMeta>
plugins = ["plugin1", "plugin2"]
version = ">=7.0,<8.0"
license = "..."
</CsMeta>



Date2026-11-16 09:58
FromHlöðver Sigurðsson
SubjectRe: [Csnd-dev] Metadata in .csd
This could be an opportunity to add feature switches based on versions. I like this idea as long as we design it correctly keep it so strict and standardized that we don't regret in the future that we may break something because we allowed too much.

Just thinking out loud, I'd argue some orchestra globals are metadata-ish, but isn't machine readable without parsing the orchestra code.

On Mon, 16 Nov 2026 at 11:42, Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:
In csoundqt we are including support for managing plugin dependencies. It would be nice to have a standard way of declaring dependencies and metadata in general.

I propose a new tag "CsMeta", which includes toml-formatted text inside. This was chosen because it is the same format used in .csound7rc. This ends up looking like:

<CsMeta>
plugins = ["plugin1", "plugin2"]
</CsMeta>

Where "plugin1" might also include versions, like "plugin1>=1.0", etc. 

This tag could be used as a hub for already existing tags like CsVersion or CsLicence, which could be included here 

<CsMeta>
plugins = ["plugin1", "plugin2"]
version = ">=7.0,<8.0"
license = "..."
</CsMeta>



Date2026-11-16 10:10
FromVictor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd-dev] Metadata in .csd
From the perspective of the CSD, I think it's good to have the tags.

The metadata itself could be defined in a common exchange format like json perhaps.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 16 Nov 2026, at 09:59, Hlöðver Sigurðsson <hlolli@gmail.com> wrote:


This could be an opportunity to add feature switches based on versions. I like this idea as long as we design it correctly keep it so strict and standardized that we don't regret in the future that we may break something because we allowed too much.

Just thinking out loud, I'd argue some orchestra globals are metadata-ish, but isn't machine readable without parsing the orchestra code.

On Mon, 16 Nov 2026 at 11:42, Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:
In csoundqt we are including support for managing plugin dependencies. It would be nice to have a standard way of declaring dependencies and metadata in general.

I propose a new tag "CsMeta", which includes toml-formatted text inside. This was chosen because it is the same format used in .csound7rc. This ends up looking like:

<CsMeta>
plugins = ["plugin1", "plugin2"]
</CsMeta>

Where "plugin1" might also include versions, like "plugin1>=1.0", etc. 

This tag could be used as a hub for already existing tags like CsVersion or CsLicence, which could be included here 

<CsMeta>
plugins = ["plugin1", "plugin2"]
version = ">=7.0,<8.0"
license = "..."
</CsMeta>


The information contained in this email may be confidential and privileged. It is intended only for the addressee(s) stated above. If you are not an addressee any use, dissemination, distribution, publication or copying of the information contained in this email is strictly prohibited. If you have received this email in error, please immediately notify us by email at dataprotection@mu.ie and delete this email from your system.

Please note that Maynooth University is subject to Freedom of Information and Data Protection laws. We may be required to disclose the content of emails under the FOI Act 2014, the Data Protection Act 2018 or GDPR.

Is don seolaí / do na seolaithe thuasluaite amháin an ríomhphost seo. D’fhéadfadh an t-eolas atá ann a bheith rúnda agus faoi phribhléid. Mura seolaí tú, tá cosc iomlán ar aon eolas atá sa ríomhphost seo a úsáid, a scaipeadh, a dháileadh, a fhoilsiú nó a chóipeáil. Má fuair tú an ríomhphost seo trí thimpiste, cuir sin in iúl dúinn láithreach trí ríomhphost a chur chuig  dataprotection@mu.ie  agus scrios an ríomhphost seo ó do chóras.

Tabhair faoi deara go bhfuil Ollscoil Mhá Nuad faoi réir dhlíthe um Shaoráil Faisnéise agus um Chosaint Sonraí. D’fhéadfadh ceangal a bheith orainn ábhar ríomhphoist a nochtadh faoin Acht um Shaoráil Faisnéise 2014, faoin Acht um Chosaint Sonraí 2018 nó faoi GDPR.

Registered charity number 20037130

 


Date2026-11-16 10:10
FromEduardo Moguillansky
SubjectRe: [Csnd-dev] Metadata in .csd
I'd rather not touch the orchestra itself. If we do go the xml tag route and agree on a format like toml inside that tag (it can be json if needed, but toml has comments and is nicer to write by hand), then we can agree on a minimal set of supported keys. At the bare minimum I propose "plugins" to declare a list of needed external plugins. How these are provided or installed is up to the host parsing the .csd. In the case of the csound application, it would do nothing. Other hosts, for example csoundqt, might provide a way to install those dependencies. 

On Mon, Nov 16, 2026 at 10:58 AM Hlöðver Sigurðsson <hlolli@gmail.com> wrote:
This could be an opportunity to add feature switches based on versions. I like this idea as long as we design it correctly keep it so strict and standardized that we don't regret in the future that we may break something because we allowed too much.

Just thinking out loud, I'd argue some orchestra globals are metadata-ish, but isn't machine readable without parsing the orchestra code.

On Mon, 16 Nov 2026 at 11:42, Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:
In csoundqt we are including support for managing plugin dependencies. It would be nice to have a standard way of declaring dependencies and metadata in general.

I propose a new tag "CsMeta", which includes toml-formatted text inside. This was chosen because it is the same format used in .csound7rc. This ends up looking like:

<CsMeta>
plugins = ["plugin1", "plugin2"]
</CsMeta>

Where "plugin1" might also include versions, like "plugin1>=1.0", etc. 

This tag could be used as a hub for already existing tags like CsVersion or CsLicence, which could be included here 

<CsMeta>
plugins = ["plugin1", "plugin2"]
version = ">=7.0,<8.0"
license = "..."
</CsMeta>



Date2026-11-16 10:21
FromHlöðver Sigurðsson
SubjectRe: [Csnd-dev] Metadata in .csd
+1 on TOML, it's more readable and converts very easily to JSON and vice versa

I wonder if each meta option could also be a command line flag, for orc only scenarios. Again, just thinking out loud, so we arrive at the cleanest design.

On Mon, 16 Nov 2026 at 12:10, Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:
I'd rather not touch the orchestra itself. If we do go the xml tag route and agree on a format like toml inside that tag (it can be json if needed, but toml has comments and is nicer to write by hand), then we can agree on a minimal set of supported keys. At the bare minimum I propose "plugins" to declare a list of needed external plugins. How these are provided or installed is up to the host parsing the .csd. In the case of the csound application, it would do nothing. Other hosts, for example csoundqt, might provide a way to install those dependencies. 

On Mon, Nov 16, 2026 at 10:58 AM Hlöðver Sigurðsson <hlolli@gmail.com> wrote:
This could be an opportunity to add feature switches based on versions. I like this idea as long as we design it correctly keep it so strict and standardized that we don't regret in the future that we may break something because we allowed too much.

Just thinking out loud, I'd argue some orchestra globals are metadata-ish, but isn't machine readable without parsing the orchestra code.

On Mon, 16 Nov 2026 at 11:42, Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:
In csoundqt we are including support for managing plugin dependencies. It would be nice to have a standard way of declaring dependencies and metadata in general.

I propose a new tag "CsMeta", which includes toml-formatted text inside. This was chosen because it is the same format used in .csound7rc. This ends up looking like:

<CsMeta>
plugins = ["plugin1", "plugin2"]
</CsMeta>

Where "plugin1" might also include versions, like "plugin1>=1.0", etc. 

This tag could be used as a hub for already existing tags like CsVersion or CsLicence, which could be included here 

<CsMeta>
plugins = ["plugin1", "plugin2"]
version = ">=7.0,<8.0"
license = "..."
</CsMeta>



Date2026-11-16 10:50
FromEduardo Moguillansky
SubjectRe: [Csnd-dev] Metadata in .csd
For an .orc file, metadata could be included in some form of special comment. We can agree that a later definitions supersedes a previous one, so if a .csd defines CsMeta and the orchestra code has such a definition, then the outer definition wins. Possible formats:

1. python uses /// (https://peps.python.org/pep-0723/) inside line comments, rust also uses ///. Something similar could be 

; /// meta
; plugins = [...]
; ///

2. Since csound has multiline comments, we could simply do:

/** meta
plugins = [...]
**/



On Mon, Nov 16, 2026 at 11:21 AM Hlöðver Sigurðsson <hlolli@gmail.com> wrote:
+1 on TOML, it's more readable and converts very easily to JSON and vice versa

I wonder if each meta option could also be a command line flag, for orc only scenarios. Again, just thinking out loud, so we arrive at the cleanest design.

On Mon, 16 Nov 2026 at 12:10, Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:
I'd rather not touch the orchestra itself. If we do go the xml tag route and agree on a format like toml inside that tag (it can be json if needed, but toml has comments and is nicer to write by hand), then we can agree on a minimal set of supported keys. At the bare minimum I propose "plugins" to declare a list of needed external plugins. How these are provided or installed is up to the host parsing the .csd. In the case of the csound application, it would do nothing. Other hosts, for example csoundqt, might provide a way to install those dependencies. 

On Mon, Nov 16, 2026 at 10:58 AM Hlöðver Sigurðsson <hlolli@gmail.com> wrote:
This could be an opportunity to add feature switches based on versions. I like this idea as long as we design it correctly keep it so strict and standardized that we don't regret in the future that we may break something because we allowed too much.

Just thinking out loud, I'd argue some orchestra globals are metadata-ish, but isn't machine readable without parsing the orchestra code.

On Mon, 16 Nov 2026 at 11:42, Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:
In csoundqt we are including support for managing plugin dependencies. It would be nice to have a standard way of declaring dependencies and metadata in general.

I propose a new tag "CsMeta", which includes toml-formatted text inside. This was chosen because it is the same format used in .csound7rc. This ends up looking like:

<CsMeta>
plugins = ["plugin1", "plugin2"]
</CsMeta>

Where "plugin1" might also include versions, like "plugin1>=1.0", etc. 

This tag could be used as a hub for already existing tags like CsVersion or CsLicence, which could be included here 

<CsMeta>
plugins = ["plugin1", "plugin2"]
version = ">=7.0,<8.0"
license = "..."
</CsMeta>



Date2026-11-16 14:53
FromHlöðver Sigurðsson
SubjectRe: [Csnd-dev] Metadata in .csd
I was on the fence for adding language level features into code comment, I was curious why python would do this. And they had a good reason for doing it.

> PEP 723 prioritized tooling interoperability and backward compatibility over syntactic elegance

It's not elegant, but they were prioritising allowing external tools reading the code before evaluation.

So I'm less on the fence. Although I'll sleep on it and maybe reply again tomorrow :)

On Mon, 16 Nov 2026 at 12:51, Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:
For an .orc file, metadata could be included in some form of special comment. We can agree that a later definitions supersedes a previous one, so if a .csd defines CsMeta and the orchestra code has such a definition, then the outer definition wins. Possible formats:

1. python uses /// (https://peps.python.org/pep-0723/) inside line comments, rust also uses ///. Something similar could be 

; /// meta
; plugins = [...]
; ///

2. Since csound has multiline comments, we could simply do:

/** meta
plugins = [...]
**/



On Mon, Nov 16, 2026 at 11:21 AM Hlöðver Sigurðsson <hlolli@gmail.com> wrote:
+1 on TOML, it's more readable and converts very easily to JSON and vice versa

I wonder if each meta option could also be a command line flag, for orc only scenarios. Again, just thinking out loud, so we arrive at the cleanest design.

On Mon, 16 Nov 2026 at 12:10, Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:
I'd rather not touch the orchestra itself. If we do go the xml tag route and agree on a format like toml inside that tag (it can be json if needed, but toml has comments and is nicer to write by hand), then we can agree on a minimal set of supported keys. At the bare minimum I propose "plugins" to declare a list of needed external plugins. How these are provided or installed is up to the host parsing the .csd. In the case of the csound application, it would do nothing. Other hosts, for example csoundqt, might provide a way to install those dependencies. 

On Mon, Nov 16, 2026 at 10:58 AM Hlöðver Sigurðsson <hlolli@gmail.com> wrote:
This could be an opportunity to add feature switches based on versions. I like this idea as long as we design it correctly keep it so strict and standardized that we don't regret in the future that we may break something because we allowed too much.

Just thinking out loud, I'd argue some orchestra globals are metadata-ish, but isn't machine readable without parsing the orchestra code.

On Mon, 16 Nov 2026 at 11:42, Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:
In csoundqt we are including support for managing plugin dependencies. It would be nice to have a standard way of declaring dependencies and metadata in general.

I propose a new tag "CsMeta", which includes toml-formatted text inside. This was chosen because it is the same format used in .csound7rc. This ends up looking like:

<CsMeta>
plugins = ["plugin1", "plugin2"]
</CsMeta>

Where "plugin1" might also include versions, like "plugin1>=1.0", etc. 

This tag could be used as a hub for already existing tags like CsVersion or CsLicence, which could be included here 

<CsMeta>
plugins = ["plugin1", "plugin2"]
version = ">=7.0,<8.0"
license = "..."
</CsMeta>



Date2026-11-16 15:56
FromSteven Yi
SubjectRe: [Csnd-dev] Metadata in .csd
Seems to me that this should just be maintained in a separate project.toml file instead of adding to CSD. (Thinking of package.json for npm, Cargo.toml for Rust projects, pyproject.toml).toml for uv and Python, etc.). 

On Mon, Nov 16, 2026 at 4:42 AM Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:
In csoundqt we are including support for managing plugin dependencies. It would be nice to have a standard way of declaring dependencies and metadata in general.

I propose a new tag "CsMeta", which includes toml-formatted text inside. This was chosen because it is the same format used in .csound7rc. This ends up looking like:

<CsMeta>
plugins = ["plugin1", "plugin2"]
</CsMeta>

Where "plugin1" might also include versions, like "plugin1>=1.0", etc. 

This tag could be used as a hub for already existing tags like CsVersion or CsLicence, which could be included here 

<CsMeta>
plugins = ["plugin1", "plugin2"]
version = ">=7.0,<8.0"
license = "..."
</CsMeta>



Date2026-11-16 16:02
FromVictor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd-dev] Metadata in .csd
The only issue then it's that it's not self contained.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 16 Nov 2026, at 15:57, Steven Yi <stevenyi@gmail.com> wrote:


Seems to me that this should just be maintained in a separate project.toml file instead of adding to CSD. (Thinking of package.json for npm, Cargo.toml for Rust projects, pyproject.toml).toml for uv and Python, etc.). 

On Mon, Nov 16, 2026 at 4:42 AM Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:
In csoundqt we are including support for managing plugin dependencies. It would be nice to have a standard way of declaring dependencies and metadata in general.

I propose a new tag "CsMeta", which includes toml-formatted text inside. This was chosen because it is the same format used in .csound7rc. This ends up looking like:

<CsMeta>
plugins = ["plugin1", "plugin2"]
</CsMeta>

Where "plugin1" might also include versions, like "plugin1>=1.0", etc. 

This tag could be used as a hub for already existing tags like CsVersion or CsLicence, which could be included here 

<CsMeta>
plugins = ["plugin1", "plugin2"]
version = ">=7.0,<8.0"
license = "..."
</CsMeta>


The information contained in this email may be confidential and privileged. It is intended only for the addressee(s) stated above. If you are not an addressee any use, dissemination, distribution, publication or copying of the information contained in this email is strictly prohibited. If you have received this email in error, please immediately notify us by email at dataprotection@mu.ie and delete this email from your system.

Please note that Maynooth University is subject to Freedom of Information and Data Protection laws. We may be required to disclose the content of emails under the FOI Act 2014, the Data Protection Act 2018 or GDPR.

Is don seolaí / do na seolaithe thuasluaite amháin an ríomhphost seo. D’fhéadfadh an t-eolas atá ann a bheith rúnda agus faoi phribhléid. Mura seolaí tú, tá cosc iomlán ar aon eolas atá sa ríomhphost seo a úsáid, a scaipeadh, a dháileadh, a fhoilsiú nó a chóipeáil. Má fuair tú an ríomhphost seo trí thimpiste, cuir sin in iúl dúinn láithreach trí ríomhphost a chur chuig  dataprotection@mu.ie  agus scrios an ríomhphost seo ó do chóras.

Tabhair faoi deara go bhfuil Ollscoil Mhá Nuad faoi réir dhlíthe um Shaoráil Faisnéise agus um Chosaint Sonraí. D’fhéadfadh ceangal a bheith orainn ábhar ríomhphoist a nochtadh faoin Acht um Shaoráil Faisnéise 2014, faoin Acht um Chosaint Sonraí 2018 nó faoi GDPR.

Registered charity number 20037130

 


Date2026-11-16 16:07
FromAlessandro Petrolati
Subject[Csnd-dev] Possible Csound bug: chnget() and portk() inside oscili()

Hi everyone,

I think I may have encountered a possible issue with the following Csound expression:


asig = oscili(portk(chnget("amp"), 0.05), portk(chnget("freq"), 0.05))


I'm using portk() to smooth the amplitude and frequency values received via chnget().

However, while the amplitude channel seems to work as expected, no data appear to be received from chnget("freq"). 

This is unexpected, since both channels are handled in the same way.

Could this be a syntax or implementation issue, or am I missing something?

Any suggestions or insights would be greatly appreciated.

Thanks in advance for your help!

Best regards,


Date2026-11-16 16:30
FromSteven Yi
SubjectRe: [Csnd-dev] Metadata in .csd
I think that's appropriate and should not be self-contained. Would also work for non-CSD projects. 

On Mon, Nov 16, 2026 at 11:02 AM Victor Lazzarini <000010b17ddd988e-dmarc-request@listserv.heanet.ie> wrote:
The only issue then it's that it's not self contained.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 16 Nov 2026, at 15:57, Steven Yi <stevenyi@gmail.com> wrote:


Seems to me that this should just be maintained in a separate project.toml file instead of adding to CSD. (Thinking of package.json for npm, Cargo.toml for Rust projects, pyproject.toml).toml for uv and Python, etc.). 

On Mon, Nov 16, 2026 at 4:42 AM Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:
In csoundqt we are including support for managing plugin dependencies. It would be nice to have a standard way of declaring dependencies and metadata in general.

I propose a new tag "CsMeta", which includes toml-formatted text inside. This was chosen because it is the same format used in .csound7rc. This ends up looking like:

<CsMeta>
plugins = ["plugin1", "plugin2"]
</CsMeta>

Where "plugin1" might also include versions, like "plugin1>=1.0", etc. 

This tag could be used as a hub for already existing tags like CsVersion or CsLicence, which could be included here 

<CsMeta>
plugins = ["plugin1", "plugin2"]
version = ">=7.0,<8.0"
license = "..."
</CsMeta>


The information contained in this email may be confidential and privileged. It is intended only for the addressee(s) stated above. If you are not an addressee any use, dissemination, distribution, publication or copying of the information contained in this email is strictly prohibited. If you have received this email in error, please immediately notify us by email at dataprotection@mu.ie and delete this email from your system.

Please note that Maynooth University is subject to Freedom of Information and Data Protection laws. We may be required to disclose the content of emails under the FOI Act 2014, the Data Protection Act 2018 or GDPR.

Is don seolaí / do na seolaithe thuasluaite amháin an ríomhphost seo. D’fhéadfadh an t-eolas atá ann a bheith rúnda agus faoi phribhléid. Mura seolaí tú, tá cosc iomlán ar aon eolas atá sa ríomhphost seo a úsáid, a scaipeadh, a dháileadh, a fhoilsiú nó a chóipeáil. Má fuair tú an ríomhphost seo trí thimpiste, cuir sin in iúl dúinn láithreach trí ríomhphost a chur chuig  dataprotection@mu.ie  agus scrios an ríomhphost seo ó do chóras.

Tabhair faoi deara go bhfuil Ollscoil Mhá Nuad faoi réir dhlíthe um Shaoráil Faisnéise agus um Chosaint Sonraí. D’fhéadfadh ceangal a bheith orainn ábhar ríomhphoist a nochtadh faoin Acht um Shaoráil Faisnéise 2014, faoin Acht um Chosaint Sonraí 2018 nó faoi GDPR.

Registered charity number 20037130

 


Date2026-11-16 16:37
Fromvlz
SubjectRe: [Csnd-dev] Possible Csound bug: chnget() and portk() inside oscili()
Try chnget:k() and see if it fixes your issue.
Prof. Victor Lazzarini
Maynooth University
Ireland

On 16 Nov 2026, at 16:08, Alessandro Petrolati <info@apesoft.it> wrote:



Hi everyone,

I think I may have encountered a possible issue with the following Csound expression:


asig = oscili(portk(chnget("amp"), 0.05), portk(chnget("freq"), 0.05))


I'm using portk() to smooth the amplitude and frequency values received via chnget().

However, while the amplitude channel seems to work as expected, no data appear to be received from chnget("freq"). 

This is unexpected, since both channels are handled in the same way.

Could this be a syntax or implementation issue, or am I missing something?

Any suggestions or insights would be greatly appreciated.

Thanks in advance for your help!

Best regards,


Date2026-11-16 16:39
Fromvlz
SubjectRe: [Csnd-dev] Metadata in .csd
We have support for containment of soundfiles, for example. No requirement to use it but it's handy, so I think containers for metadata are a fair proposal.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 16 Nov 2026, at 16:31, Steven Yi <stevenyi@gmail.com> wrote:


I think that's appropriate and should not be self-contained. Would also work for non-CSD projects. 

On Mon, Nov 16, 2026 at 11:02 AM Victor Lazzarini <000010b17ddd988e-dmarc-request@listserv.heanet.ie> wrote:
The only issue then it's that it's not self contained.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 16 Nov 2026, at 15:57, Steven Yi <stevenyi@gmail.com> wrote:


Seems to me that this should just be maintained in a separate project.toml file instead of adding to CSD. (Thinking of package.json for npm, Cargo.toml for Rust projects, pyproject.toml).toml for uv and Python, etc.). 

On Mon, Nov 16, 2026 at 4:42 AM Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:
In csoundqt we are including support for managing plugin dependencies. It would be nice to have a standard way of declaring dependencies and metadata in general.

I propose a new tag "CsMeta", which includes toml-formatted text inside. This was chosen because it is the same format used in .csound7rc. This ends up looking like:

<CsMeta>
plugins = ["plugin1", "plugin2"]
</CsMeta>

Where "plugin1" might also include versions, like "plugin1>=1.0", etc. 

This tag could be used as a hub for already existing tags like CsVersion or CsLicence, which could be included here 

<CsMeta>
plugins = ["plugin1", "plugin2"]
version = ">=7.0,<8.0"
license = "..."
</CsMeta>


The information contained in this email may be confidential and privileged. It is intended only for the addressee(s) stated above. If you are not an addressee any use, dissemination, distribution, publication or copying of the information contained in this email is strictly prohibited. If you have received this email in error, please immediately notify us by email at dataprotection@mu.ie and delete this email from your system.

Please note that Maynooth University is subject to Freedom of Information and Data Protection laws. We may be required to disclose the content of emails under the FOI Act 2014, the Data Protection Act 2018 or GDPR.

Is don seolaí / do na seolaithe thuasluaite amháin an ríomhphost seo. D’fhéadfadh an t-eolas atá ann a bheith rúnda agus faoi phribhléid. Mura seolaí tú, tá cosc iomlán ar aon eolas atá sa ríomhphost seo a úsáid, a scaipeadh, a dháileadh, a fhoilsiú nó a chóipeáil. Má fuair tú an ríomhphost seo trí thimpiste, cuir sin in iúl dúinn láithreach trí ríomhphost a chur chuig  dataprotection@mu.ie  agus scrios an ríomhphost seo ó do chóras.

Tabhair faoi deara go bhfuil Ollscoil Mhá Nuad faoi réir dhlíthe um Shaoráil Faisnéise agus um Chosaint Sonraí. D’fhéadfadh ceangal a bheith orainn ábhar ríomhphoist a nochtadh faoin Acht um Shaoráil Faisnéise 2014, faoin Acht um Chosaint Sonraí 2018 nó faoi GDPR.

Registered charity number 20037130

 


Date2026-11-16 16:40
FromPasquale Mainolfi
SubjectRe: [Csnd-dev] Metadata in .csd
Hi all,

I've already been working on this, and I think this discussion is a great starting point.

First, I think we should split the problem in two: the single file and the project. A shared .csd and a multi-file project have different needs, and much of the "tag vs. TOML" disagreement comes from mixing the two.
For projects, a manifest plus a lockfile is the natural choice. We could consider cspm (https://github.com/PasqualeMainolfi/cspm), which I've been developing. It's still a work in progress, but it already has a TOML manifest, a lockfile with checksums, dependency resolution, a UDO module registry and plugin installation via risset.
I also think we need to bring some order to plugins. They are currently spread across several repositories, so a single, certified index under the csound organization would help a lot. It should include checksums, per-platform builds made by CI from source, and the list of opcodes each package exports, so that name collisions can be detected.
For the single file, I think the tag is the best solution. The .csd stays self-contained, and no change to the C source is needed because Csound already skips unknown tags. The tag should use the same schema as the project manifest, so the two never diverge. This would make the tag work in both directions with cspm. When reading a .csd, cspm could automatically install the required plugins and modules before running it. It could also export a project as a single .csd, generating the tag from the manifest and lockfile, so a project can be shared as one file whenever needed.



Pasquale Mainolfi
Composer and Computer Scientist

Professor of Computer Music
Dep. of New Technologies and Musical Languages, 
"G. Martucci” State Conservatoire of Musica (Salerno, IT).
Professor of Electroacoustic Music Analysis at School of Electronic Music, 
“N. Sala” State Conservatoire of Music (Benevento, IT).



Le informazioni contenute nella presente comunicazione e i relativi allegati possono essere riservate e sono, comunque, destinate esclusivamente ai destinatari sopraindicati. La diffusione, distribuzione e/o copiatura del documento trasmesso da parte di qualsiasi soggetto diverso da destinatario è proibita, sia ai sensi dell’art. 616 c.p., che ai sensi del D.Lgs. n. 196/2003.

The information contained in this communication and its attachments may be confidential and is, in any case, intended solely for the recipients indicated above. The dissemination, distribution, and/or copying of the transmitted document by party other than the intended recipient is prohibited, pursuant to Article 616 of the Penal Code and Legislative Decree no. 196/2003.

Il giorno 16 nov 2026, alle ore 17:30, Steven Yi <stevenyi@GMAIL.COM> ha scritto:

I think that's appropriate and should not be self-contained. Would also work for non-CSD projects. 

On Mon, Nov 16, 2026 at 11:02 AM Victor Lazzarini <000010b17ddd988e-dmarc-request@listserv.heanet.ie> wrote:
The only issue then it's that it's not self contained.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 16 Nov 2026, at 15:57, Steven Yi <stevenyi@gmail.com> wrote:


Seems to me that this should just be maintained in a separate project.toml file instead of adding to CSD. (Thinking of package.json for npm, Cargo.toml for Rust projects, pyproject.toml).toml for uv and Python, etc.). 

On Mon, Nov 16, 2026 at 4:42 AM Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:
In csoundqt we are including support for managing plugin dependencies. It would be nice to have a standard way of declaring dependencies and metadata in general.

I propose a new tag "CsMeta", which includes toml-formatted text inside. This was chosen because it is the same format used in .csound7rc. This ends up looking like:

<CsMeta>
plugins = ["plugin1", "plugin2"]
</CsMeta>

Where "plugin1" might also include versions, like "plugin1>=1.0", etc. 

This tag could be used as a hub for already existing tags like CsVersion or CsLicence, which could be included here 

<CsMeta>
plugins = ["plugin1", "plugin2"]
version = ">=7.0,<8.0"
license = "..."
</CsMeta>


The information contained in this email may be confidential and privileged. It is intended only for the addressee(s) stated above. If you are not an addressee any use, dissemination, distribution, publication or copying of the information contained in this email is strictly prohibited. If you have received this email in error, please immediately notify us by email at dataprotection@mu.ie and delete this email from your system.

Please note that Maynooth University is subject to Freedom of Information and Data Protection laws. We may be required to disclose the content of emails under the FOI Act 2014, the Data Protection Act 2018 or GDPR.

Is don seolaí / do na seolaithe thuasluaite amháin an ríomhphost seo. D’fhéadfadh an t-eolas atá ann a bheith rúnda agus faoi phribhléid. Mura seolaí tú, tá cosc iomlán ar aon eolas atá sa ríomhphost seo a úsáid, a scaipeadh, a dháileadh, a fhoilsiú nó a chóipeáil. Má fuair tú an ríomhphost seo trí thimpiste, cuir sin in iúl dúinn láithreach trí ríomhphost a chur chuig  dataprotection@mu.ie  agus scrios an ríomhphost seo ó do chóras.

Tabhair faoi deara go bhfuil Ollscoil Mhá Nuad faoi réir dhlíthe um Shaoráil Faisnéise agus um Chosaint Sonraí. D’fhéadfadh ceangal a bheith orainn ábhar ríomhphoist a nochtadh faoin Acht um Shaoráil Faisnéise 2014, faoin Acht um Chosaint Sonraí 2018 nó faoi GDPR.

Registered charity number 20037130

 


Date2026-11-16 16:49
FromAlessandro Petrolati
SubjectRe: [Csnd-dev] Possible Csound bug: chnget() and portk() inside oscili()
Yes, it worked. 
Sorry for the confusion, and thank you!
Best regards,
Alessandro


Il giorno 16 nov 2026, alle ore 17:37, vlz <viclazzarini@GMAIL.COM> ha scritto:

Try chnget:k() and see if it fixes your issue.
Prof. Victor Lazzarini
Maynooth University
Ireland

On 16 Nov 2026, at 16:08, Alessandro Petrolati <info@apesoft.it> wrote:



Hi everyone,

I think I may have encountered a possible issue with the following Csound expression:


asig = oscili(portk(chnget("amp"), 0.05), portk(chnget("freq"), 0.05))


I'm using portk() to smooth the amplitude and frequency values received via chnget().

However, while the amplitude channel seems to work as expected, no data appear to be received from chnget("freq"). 

This is unexpected, since both channels are handled in the same way.

Could this be a syntax or implementation issue, or am I missing something?

Any suggestions or insights would be greatly appreciated.

Thanks in advance for your help!

Best regards,



Date2026-11-16 18:06
FromEduardo Moguillansky
SubjectRe: [Csnd-dev] Metadata in .csd
So, can we agree on a tag? This seems the simplest way forward. I proposed <CsMeta>, to follow the pattern of existing tags. The easiest markup format seems toml, it includes comments and multiline strings. Since an .orc file can be #included in a .csd, the .csd can be used to declare dependencies, etc.

On Mon, Nov 16, 2026 at 5:40 PM Pasquale Mainolfi <mnlpql@gmail.com> wrote:
Hi all,

I've already been working on this, and I think this discussion is a great starting point.

First, I think we should split the problem in two: the single file and the project. A shared .csd and a multi-file project have different needs, and much of the "tag vs. TOML" disagreement comes from mixing the two.
For projects, a manifest plus a lockfile is the natural choice. We could consider cspm (https://github.com/PasqualeMainolfi/cspm), which I've been developing. It's still a work in progress, but it already has a TOML manifest, a lockfile with checksums, dependency resolution, a UDO module registry and plugin installation via risset.
I also think we need to bring some order to plugins. They are currently spread across several repositories, so a single, certified index under the csound organization would help a lot. It should include checksums, per-platform builds made by CI from source, and the list of opcodes each package exports, so that name collisions can be detected.
For the single file, I think the tag is the best solution. The .csd stays self-contained, and no change to the C source is needed because Csound already skips unknown tags. The tag should use the same schema as the project manifest, so the two never diverge. This would make the tag work in both directions with cspm. When reading a .csd, cspm could automatically install the required plugins and modules before running it. It could also export a project as a single .csd, generating the tag from the manifest and lockfile, so a project can be shared as one file whenever needed.



Pasquale Mainolfi
Composer and Computer Scientist

Professor of Computer Music
Dep. of New Technologies and Musical Languages, 
"G. Martucci” State Conservatoire of Musica (Salerno, IT).
Professor of Electroacoustic Music Analysis at School of Electronic Music, 
“N. Sala” State Conservatoire of Music (Benevento, IT).



Le informazioni contenute nella presente comunicazione e i relativi allegati possono essere riservate e sono, comunque, destinate esclusivamente ai destinatari sopraindicati. La diffusione, distribuzione e/o copiatura del documento trasmesso da parte di qualsiasi soggetto diverso da destinatario è proibita, sia ai sensi dell’art. 616 c.p., che ai sensi del D.Lgs. n. 196/2003.

The information contained in this communication and its attachments may be confidential and is, in any case, intended solely for the recipients indicated above. The dissemination, distribution, and/or copying of the transmitted document by party other than the intended recipient is prohibited, pursuant to Article 616 of the Penal Code and Legislative Decree no. 196/2003.

Il giorno 16 nov 2026, alle ore 17:30, Steven Yi <stevenyi@GMAIL.COM> ha scritto:

I think that's appropriate and should not be self-contained. Would also work for non-CSD projects. 

On Mon, Nov 16, 2026 at 11:02 AM Victor Lazzarini <000010b17ddd988e-dmarc-request@listserv.heanet.ie> wrote:
The only issue then it's that it's not self contained.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 16 Nov 2026, at 15:57, Steven Yi <stevenyi@gmail.com> wrote:


Seems to me that this should just be maintained in a separate project.toml file instead of adding to CSD. (Thinking of package.json for npm, Cargo.toml for Rust projects, pyproject.toml).toml for uv and Python, etc.). 

On Mon, Nov 16, 2026 at 4:42 AM Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:
In csoundqt we are including support for managing plugin dependencies. It would be nice to have a standard way of declaring dependencies and metadata in general.

I propose a new tag "CsMeta", which includes toml-formatted text inside. This was chosen because it is the same format used in .csound7rc. This ends up looking like:

<CsMeta>
plugins = ["plugin1", "plugin2"]
</CsMeta>

Where "plugin1" might also include versions, like "plugin1>=1.0", etc. 

This tag could be used as a hub for already existing tags like CsVersion or CsLicence, which could be included here 

<CsMeta>
plugins = ["plugin1", "plugin2"]
version = ">=7.0,<8.0"
license = "..."
</CsMeta>


The information contained in this email may be confidential and privileged. It is intended only for the addressee(s) stated above. If you are not an addressee any use, dissemination, distribution, publication or copying of the information contained in this email is strictly prohibited. If you have received this email in error, please immediately notify us by email at dataprotection@mu.ie and delete this email from your system.

Please note that Maynooth University is subject to Freedom of Information and Data Protection laws. We may be required to disclose the content of emails under the FOI Act 2014, the Data Protection Act 2018 or GDPR.

Is don seolaí / do na seolaithe thuasluaite amháin an ríomhphost seo. D’fhéadfadh an t-eolas atá ann a bheith rúnda agus faoi phribhléid. Mura seolaí tú, tá cosc iomlán ar aon eolas atá sa ríomhphost seo a úsáid, a scaipeadh, a dháileadh, a fhoilsiú nó a chóipeáil. Má fuair tú an ríomhphost seo trí thimpiste, cuir sin in iúl dúinn láithreach trí ríomhphost a chur chuig  dataprotection@mu.ie  agus scrios an ríomhphost seo ó do chóras.

Tabhair faoi deara go bhfuil Ollscoil Mhá Nuad faoi réir dhlíthe um Shaoráil Faisnéise agus um Chosaint Sonraí. D’fhéadfadh ceangal a bheith orainn ábhar ríomhphoist a nochtadh faoin Acht um Shaoráil Faisnéise 2014, faoin Acht um Chosaint Sonraí 2018 nó faoi GDPR.

Registered charity number 20037130

 


Date2026-11-16 18:29
FromHlöðver Sigurðsson
SubjectRe: [Csnd-dev] Metadata in .csd
yes CsMeta sounds ok to me, I would propose to design a specification we can validate, and push that into docs. Or if it's both in single PR, it's ok to me.

I also like self contained, machine readable csound files. Reading more on PEP 723, I think what python did wasn't too bad of an idea. And to Steven's concern, the goal of PEP 723 does not cross paths with pypi, uv, pipx, hatch, poetry etc.

The specification can piggyback on much of the philosophy behind PEP 723, because I dislike re-inventing the wheel, and I'm sure we'll have a moment where we'll say "if we only designed it this way and not the other we could support this and that feature". So some period of beta testing before we lock in would make sense to me as well.

On Mon, 16 Nov 2026 at 20:06, Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:
So, can we agree on a tag? This seems the simplest way forward. I proposed <CsMeta>, to follow the pattern of existing tags. The easiest markup format seems toml, it includes comments and multiline strings. Since an .orc file can be #included in a .csd, the .csd can be used to declare dependencies, etc.

On Mon, Nov 16, 2026 at 5:40 PM Pasquale Mainolfi <mnlpql@gmail.com> wrote:
Hi all,

I've already been working on this, and I think this discussion is a great starting point.

First, I think we should split the problem in two: the single file and the project. A shared .csd and a multi-file project have different needs, and much of the "tag vs. TOML" disagreement comes from mixing the two.
For projects, a manifest plus a lockfile is the natural choice. We could consider cspm (https://github.com/PasqualeMainolfi/cspm), which I've been developing. It's still a work in progress, but it already has a TOML manifest, a lockfile with checksums, dependency resolution, a UDO module registry and plugin installation via risset.
I also think we need to bring some order to plugins. They are currently spread across several repositories, so a single, certified index under the csound organization would help a lot. It should include checksums, per-platform builds made by CI from source, and the list of opcodes each package exports, so that name collisions can be detected.
For the single file, I think the tag is the best solution. The .csd stays self-contained, and no change to the C source is needed because Csound already skips unknown tags. The tag should use the same schema as the project manifest, so the two never diverge. This would make the tag work in both directions with cspm. When reading a .csd, cspm could automatically install the required plugins and modules before running it. It could also export a project as a single .csd, generating the tag from the manifest and lockfile, so a project can be shared as one file whenever needed.



Pasquale Mainolfi
Composer and Computer Scientist

Professor of Computer Music
Dep. of New Technologies and Musical Languages, 
"G. Martucci” State Conservatoire of Musica (Salerno, IT).
Professor of Electroacoustic Music Analysis at School of Electronic Music, 
“N. Sala” State Conservatoire of Music (Benevento, IT).



Le informazioni contenute nella presente comunicazione e i relativi allegati possono essere riservate e sono, comunque, destinate esclusivamente ai destinatari sopraindicati. La diffusione, distribuzione e/o copiatura del documento trasmesso da parte di qualsiasi soggetto diverso da destinatario è proibita, sia ai sensi dell’art. 616 c.p., che ai sensi del D.Lgs. n. 196/2003.

The information contained in this communication and its attachments may be confidential and is, in any case, intended solely for the recipients indicated above. The dissemination, distribution, and/or copying of the transmitted document by party other than the intended recipient is prohibited, pursuant to Article 616 of the Penal Code and Legislative Decree no. 196/2003.

Il giorno 16 nov 2026, alle ore 17:30, Steven Yi <stevenyi@GMAIL.COM> ha scritto:

I think that's appropriate and should not be self-contained. Would also work for non-CSD projects. 

On Mon, Nov 16, 2026 at 11:02 AM Victor Lazzarini <000010b17ddd988e-dmarc-request@listserv.heanet.ie> wrote:
The only issue then it's that it's not self contained.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 16 Nov 2026, at 15:57, Steven Yi <stevenyi@gmail.com> wrote:


Seems to me that this should just be maintained in a separate project.toml file instead of adding to CSD. (Thinking of package.json for npm, Cargo.toml for Rust projects, pyproject.toml).toml for uv and Python, etc.). 

On Mon, Nov 16, 2026 at 4:42 AM Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:
In csoundqt we are including support for managing plugin dependencies. It would be nice to have a standard way of declaring dependencies and metadata in general.

I propose a new tag "CsMeta", which includes toml-formatted text inside. This was chosen because it is the same format used in .csound7rc. This ends up looking like:

<CsMeta>
plugins = ["plugin1", "plugin2"]
</CsMeta>

Where "plugin1" might also include versions, like "plugin1>=1.0", etc. 

This tag could be used as a hub for already existing tags like CsVersion or CsLicence, which could be included here 

<CsMeta>
plugins = ["plugin1", "plugin2"]
version = ">=7.0,<8.0"
license = "..."
</CsMeta>


The information contained in this email may be confidential and privileged. It is intended only for the addressee(s) stated above. If you are not an addressee any use, dissemination, distribution, publication or copying of the information contained in this email is strictly prohibited. If you have received this email in error, please immediately notify us by email at dataprotection@mu.ie and delete this email from your system.

Please note that Maynooth University is subject to Freedom of Information and Data Protection laws. We may be required to disclose the content of emails under the FOI Act 2014, the Data Protection Act 2018 or GDPR.

Is don seolaí / do na seolaithe thuasluaite amháin an ríomhphost seo. D’fhéadfadh an t-eolas atá ann a bheith rúnda agus faoi phribhléid. Mura seolaí tú, tá cosc iomlán ar aon eolas atá sa ríomhphost seo a úsáid, a scaipeadh, a dháileadh, a fhoilsiú nó a chóipeáil. Má fuair tú an ríomhphost seo trí thimpiste, cuir sin in iúl dúinn láithreach trí ríomhphost a chur chuig  dataprotection@mu.ie  agus scrios an ríomhphost seo ó do chóras.

Tabhair faoi deara go bhfuil Ollscoil Mhá Nuad faoi réir dhlíthe um Shaoráil Faisnéise agus um Chosaint Sonraí. D’fhéadfadh ceangal a bheith orainn ábhar ríomhphoist a nochtadh faoin Acht um Shaoráil Faisnéise 2014, faoin Acht um Chosaint Sonraí 2018 nó faoi GDPR.

Registered charity number 20037130

 


Date2026-11-16 18:35
Fromjoachim heintz
SubjectRe: [Csnd-dev] Metadata in .csd
i'd also vote for a CsMeta tag as a concrete step for now.

On 16/11/2026 19:29, Hlöðver Sigurðsson wrote:
> yes CsMeta sounds ok to me, I would propose to design a specification we 
> can validate, and push that into docs. Or if it's both in single PR, 
> it's ok to me.
> 
> I also like self contained, machine readable csound files. Reading more 
> on PEP 723, I think what python did wasn't too bad of an idea. And to 
> Steven's concern, the goal of PEP 723 does not cross paths with pypi, 
> uv, pipx, hatch, poetry etc.
> 
> The specification can piggyback on much of the philosophy behind PEP 
> 723, because I dislike re-inventing the wheel, and I'm sure we'll have a 
> moment where we'll say "if we only designed it this way and not the 
> other we could support this and that feature". So some period of beta 
> testing before we lock in would make sense to me as well.
> 
> On Mon, 16 Nov 2026 at 20:06, Eduardo Moguillansky 
> > 
> wrote:
> 
>     So, can we agree on a tag? This seems the simplest way forward. I
>     proposed , to follow the pattern of existing tags. The
>     easiest markup format seems toml, it includes comments and multiline
>     strings. Since an .orc file can be #included in a .csd, the .csd can
>     be used to declare dependencies, etc.
> 
>     On Mon, Nov 16, 2026 at 5:40 PM Pasquale Mainolfi      > wrote:
> 
>         Hi all,
> 
>         I've already been working on this, and I think this discussion
>         is a great starting point.
> 
>         First, I think we should split the problem in two: the single
>         file and the project. A shared .csd and a multi-file project
>         have different needs, and much of the "tag vs. TOML"
>         disagreement comes from mixing the two.
>         For projects, a manifest plus a lockfile is the natural choice.
>         We could consider cspm (https://github.com/PasqualeMainolfi/cspm
>         ), which I've been
>         developing. It's still a work in progress, but it already has a
>         TOML manifest, a lockfile with checksums, dependency resolution,
>         a UDO module registry and plugin installation via risset.
>         I also think we need to bring some order to plugins. They are
>         currently spread across several repositories, so a single,
>         certified index under the csound organization would help a lot.
>         It should include checksums, per-platform builds made by CI from
>         source, and the list of opcodes each package exports, so that
>         name collisions can be detected.
>         For the single file, I think the tag is the best solution.
>         The .csd stays self-contained, and no change to the C source is
>         needed because Csound already skips unknown tags. The tag should
>         use the same schema as the project manifest, so the two never
>         diverge. This would make the tag work in both directions with
>         cspm. When reading a .csd, cspm could automatically install the
>         required plugins and modules before running it. It could also
>         export a project as a single .csd, generating the tag from the
>         manifest and lockfile, so a project can be shared as one file
>         whenever needed.
> 
> 
> 
>         Pasquale Mainolfi
>         Composer and Computer Scientist
> 
>         Professor of Computer Music
>         Dep. of New Technologies and Musical Languages,
>         "G. Martucci” State Conservatoire of Musica (Salerno, IT).
>         Professor of Electroacoustic Music Analysis at School of
>         Electronic Music,
>         “N. Sala” State Conservatoire of Music (Benevento, IT).
> 
> 
> 
>         Le informazioni contenute nella presente comunicazione e
>         i relativi allegati possono essere riservate e sono,
>         comunque, destinate esclusivamente ai destinatari sopraindicati.
>         La diffusione, distribuzione e/o copiatura
>         del documento trasmesso da parte di qualsiasi soggetto diverso
>         da destinatario è proibita, sia ai sensi dell’art. 616 c.p., che
>         ai sensi del D.Lgs. n. 196/2003.
> 
>         The information contained in this communication and its
>         attachments may be confidential and is, in any case, intended
>         solely for the recipients indicated above. The dissemination,
>         distribution, and/or copying of the transmitted document by
>         party other than the intended recipient is prohibited, pursuant
>         to Article 616 of the Penal Code and Legislative Decree no.
>         196/2003.
> 
>>         Il giorno 16 nov 2026, alle ore 17:30, Steven Yi
>>         > ha scritto:
>>
>>         I think that's appropriate and should not be self-contained.
>>         Would also work for non-CSD projects.
>>
>>         On Mon, Nov 16, 2026 at 11:02 AM Victor Lazzarini
>>         <000010b17ddd988e-dmarc-request@listserv.heanet.ie
>>         > wrote:
>>
>>             The only issue then it's that it's not self contained.
>>
>>             Prof. Victor Lazzarini
>>             Maynooth University
>>             Ireland
>>
>>>             On 16 Nov 2026, at 15:57, Steven Yi >>             > wrote:
>>>
>>>             
>>>             Seems to me that this should just be maintained in a
>>>             separate project.toml file instead of adding to CSD.
>>>             (Thinking of package.json for npm, Cargo.toml for Rust
>>>             projects, pyproject.toml).toml for uv and Python, etc.).
>>>
>>>             On Mon, Nov 16, 2026 at 4:42 AM Eduardo Moguillansky
>>>             >>             > wrote:
>>>
>>>                 In csoundqt we are including support for managing
>>>                 plugin dependencies. It would be nice to have a
>>>                 standard way of declaring dependencies and metadata
>>>                 in general.
>>>
>>>                 I propose a new tag "CsMeta", which includes toml-
>>>                 formatted text inside. This was chosen because it is
>>>                 the same format used in .csound7rc. This ends up
>>>                 looking like:
>>>
>>>                 
>>>                 plugins = ["plugin1", "plugin2"]
>>>                 
>>>
>>>                 Where "plugin1" might also include versions, like
>>>                 "plugin1>=1.0", etc.
>>>
>>>                 This tag could be used as a hub for already existing
>>>                 tags like CsVersion or CsLicence, which could be
>>>                 included here
>>>
>>>                 
>>>                 plugins = ["plugin1", "plugin2"]
>>>                 version = ">=7.0,<8.0"
>>>                 license = "..."
>>>                 
>>>
>>>
>>             The information contained in this email may be
>>             confidential and privileged. It is intended only for the
>>             addressee(s) stated above. If you are not an addressee any
>>             use, dissemination, distribution, publication or copying
>>             of the information contained in this email is strictly
>>             prohibited. If you have received this email in error,
>>             please immediately notify us by email at
>>             dataprotection@mu.ie  and
>>             delete this email from your system.
>>
>>             Please note that Maynooth University is subject to Freedom
>>             of Information and Data Protection laws. We may be
>>             required to disclose the content of emails under the* FOI
>>             Act 2014*, the* Data Protection Act 2018* or *GDPR*.
>>
>>             Is don seolaí / do na seolaithe thuasluaite amháin an
>>             ríomhphost seo. D’fhéadfadh an t-eolas atá ann a bheith
>>             rúnda agus faoi phribhléid. Mura seolaí tú, tá cosc iomlán
>>             ar aon eolas atá sa ríomhphost seo a úsáid, a scaipeadh, a
>>             dháileadh, a fhoilsiú nó a chóipeáil. Má fuair tú an
>>             ríomhphost seo trí thimpiste, cuir sin in iúl dúinn
>>             láithreach trí ríomhphost a chur chuig
>>             dataprotection@mu.ie  agus
>>             scrios an ríomhphost seo ó do chóras.
>>
>>             Tabhair faoi deara go bhfuil Ollscoil Mhá Nuad faoi réir
>>             dhlíthe um Shaoráil Faisnéise agus um Chosaint Sonraí.
>>             D’fhéadfadh ceangal a bheith orainn ábhar ríomhphoist a
>>             nochtadh faoin *Acht um Shaoráil Faisnéise 2014*, faoin
>>             *Acht um Chosaint Sonraí 2018* nó faoi *GDPR*.
>>
>>             Registered charity number 20037130
>>
>>
> 

Date2026-11-16 18:56
FromPasquale Mainolfi
SubjectRe: [Csnd-dev] Metadata in .csd
CsMeta

> Il giorno 16 nov 2026, alle ore 19:35, joachim heintz  ha scritto:
> 
> i'd also vote for a CsMeta tag as a concrete step for now.
> 
> On 16/11/2026 19:29, Hlöðver Sigurðsson wrote:
>> yes CsMeta sounds ok to me, I would propose to design a specification we can validate, and push that into docs. Or if it's both in single PR, it's ok to me.
>> I also like self contained, machine readable csound files. Reading more on PEP 723, I think what python did wasn't too bad of an idea. And to Steven's concern, the goal of PEP 723 does not cross paths with pypi, uv, pipx, hatch, poetry etc.
>> The specification can piggyback on much of the philosophy behind PEP 723, because I dislike re-inventing the wheel, and I'm sure we'll have a moment where we'll say "if we only designed it this way and not the other we could support this and that feature". So some period of beta testing before we lock in would make sense to me as well.
>> On Mon, 16 Nov 2026 at 20:06, Eduardo Moguillansky > wrote:
>>    So, can we agree on a tag? This seems the simplest way forward. I
>>    proposed , to follow the pattern of existing tags. The
>>    easiest markup format seems toml, it includes comments and multiline
>>    strings. Since an .orc file can be #included in a .csd, the .csd can
>>    be used to declare dependencies, etc.
>>    On Mon, Nov 16, 2026 at 5:40 PM Pasquale Mainolfi >    > wrote:
>>        Hi all,
>>        I've already been working on this, and I think this discussion
>>        is a great starting point.
>>        First, I think we should split the problem in two: the single
>>        file and the project. A shared .csd and a multi-file project
>>        have different needs, and much of the "tag vs. TOML"
>>        disagreement comes from mixing the two.
>>        For projects, a manifest plus a lockfile is the natural choice.
>>        We could consider cspm (https://github.com/PasqualeMainolfi/cspm
>>        ), which I've been
>>        developing. It's still a work in progress, but it already has a
>>        TOML manifest, a lockfile with checksums, dependency resolution,
>>        a UDO module registry and plugin installation via risset.
>>        I also think we need to bring some order to plugins. They are
>>        currently spread across several repositories, so a single,
>>        certified index under the csound organization would help a lot.
>>        It should include checksums, per-platform builds made by CI from
>>        source, and the list of opcodes each package exports, so that
>>        name collisions can be detected.
>>        For the single file, I think the tag is the best solution.
>>        The .csd stays self-contained, and no change to the C source is
>>        needed because Csound already skips unknown tags. The tag should
>>        use the same schema as the project manifest, so the two never
>>        diverge. This would make the tag work in both directions with
>>        cspm. When reading a .csd, cspm could automatically install the
>>        required plugins and modules before running it. It could also
>>        export a project as a single .csd, generating the tag from the
>>        manifest and lockfile, so a project can be shared as one file
>>        whenever needed.
>>        Pasquale Mainolfi
>>        Composer and Computer Scientist
>>        Professor of Computer Music
>>        Dep. of New Technologies and Musical Languages,
>>        "G. Martucci” State Conservatoire of Musica (Salerno, IT).
>>        Professor of Electroacoustic Music Analysis at School of
>>        Electronic Music,
>>        “N. Sala” State Conservatoire of Music (Benevento, IT).
>>        Le informazioni contenute nella presente comunicazione e
>>        i relativi allegati possono essere riservate e sono,
>>        comunque, destinate esclusivamente ai destinatari sopraindicati.
>>        La diffusione, distribuzione e/o copiatura
>>        del documento trasmesso da parte di qualsiasi soggetto diverso
>>        da destinatario è proibita, sia ai sensi dell’art. 616 c.p., che
>>        ai sensi del D.Lgs. n. 196/2003.
>>        The information contained in this communication and its
>>        attachments may be confidential and is, in any case, intended
>>        solely for the recipients indicated above. The dissemination,
>>        distribution, and/or copying of the transmitted document by
>>        party other than the intended recipient is prohibited, pursuant
>>        to Article 616 of the Penal Code and Legislative Decree no.
>>        196/2003.
>>>        Il giorno 16 nov 2026, alle ore 17:30, Steven Yi
>>>        > ha scritto:
>>> 
>>>        I think that's appropriate and should not be self-contained.
>>>        Would also work for non-CSD projects.
>>> 
>>>        On Mon, Nov 16, 2026 at 11:02 AM Victor Lazzarini
>>>        <000010b17ddd988e-dmarc-request@listserv.heanet.ie
>>>        > wrote:
>>> 
>>>            The only issue then it's that it's not self contained.
>>> 
>>>            Prof. Victor Lazzarini
>>>            Maynooth University
>>>            Ireland
>>> 
>>>>            On 16 Nov 2026, at 15:57, Steven Yi >>>            > wrote:
>>>> 
>>>>            
>>>>            Seems to me that this should just be maintained in a
>>>>            separate project.toml file instead of adding to CSD.
>>>>            (Thinking of package.json for npm, Cargo.toml for Rust
>>>>            projects, pyproject.toml).toml for uv and Python, etc.).
>>>> 
>>>>            On Mon, Nov 16, 2026 at 4:42 AM Eduardo Moguillansky
>>>>            >>>            > wrote:
>>>> 
>>>>                In csoundqt we are including support for managing
>>>>                plugin dependencies. It would be nice to have a
>>>>                standard way of declaring dependencies and metadata
>>>>                in general.
>>>> 
>>>>                I propose a new tag "CsMeta", which includes toml-
>>>>                formatted text inside. This was chosen because it is
>>>>                the same format used in .csound7rc. This ends up
>>>>                looking like:
>>>> 
>>>>                
>>>>                plugins = ["plugin1", "plugin2"]
>>>>                
>>>> 
>>>>                Where "plugin1" might also include versions, like
>>>>                "plugin1>=1.0", etc.
>>>> 
>>>>                This tag could be used as a hub for already existing
>>>>                tags like CsVersion or CsLicence, which could be
>>>>                included here
>>>> 
>>>>                
>>>>                plugins = ["plugin1", "plugin2"]
>>>>                version = ">=7.0,<8.0"
>>>>                license = "..."
>>>>                
>>>> 
>>>> 
>>>            The information contained in this email may be
>>>            confidential and privileged. It is intended only for the
>>>            addressee(s) stated above. If you are not an addressee any
>>>            use, dissemination, distribution, publication or copying
>>>            of the information contained in this email is strictly
>>>            prohibited. If you have received this email in error,
>>>            please immediately notify us by email at
>>>            dataprotection@mu.ie  and
>>>            delete this email from your system.
>>> 
>>>            Please note that Maynooth University is subject to Freedom
>>>            of Information and Data Protection laws. We may be
>>>            required to disclose the content of emails under the* FOI
>>>            Act 2014*, the* Data Protection Act 2018* or *GDPR*.
>>> 
>>>            Is don seolaí / do na seolaithe thuasluaite amháin an
>>>            ríomhphost seo. D’fhéadfadh an t-eolas atá ann a bheith
>>>            rúnda agus faoi phribhléid. Mura seolaí tú, tá cosc iomlán
>>>            ar aon eolas atá sa ríomhphost seo a úsáid, a scaipeadh, a
>>>            dháileadh, a fhoilsiú nó a chóipeáil. Má fuair tú an
>>>            ríomhphost seo trí thimpiste, cuir sin in iúl dúinn
>>>            láithreach trí ríomhphost a chur chuig
>>>            dataprotection@mu.ie  agus
>>>            scrios an ríomhphost seo ó do chóras.
>>> 
>>>            Tabhair faoi deara go bhfuil Ollscoil Mhá Nuad faoi réir
>>>            dhlíthe um Shaoráil Faisnéise agus um Chosaint Sonraí.
>>>            D’fhéadfadh ceangal a bheith orainn ábhar ríomhphoist a
>>>            nochtadh faoin *Acht um Shaoráil Faisnéise 2014*, faoin
>>>            *Acht um Chosaint Sonraí 2018* nó faoi *GDPR*.
>>> 
>>>            Registered charity number 20037130
>>> 
>>>