Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define schema for scalar parameters #4

Open
eirikblekesaune opened this issue Jun 13, 2013 · 0 comments
Open

Define schema for scalar parameters #4

eirikblekesaune opened this issue Jun 13, 2013 · 0 comments

Comments

@eirikblekesaune
Copy link

The Jamoma style schema would IMO be too implementation specific. E.g. 'value/default' points to 'default' being an attribute of 'value', which in the context of defining a scalar value is redundant.

What keys do you find are generic, and which a more implementation specific?

Here is one suggestion:

{
type: "decimal",
value: 0.1, //the current value
default: 0.5, // to which value the parameter is reset to
range: {
    bounds: [0.0, 1.0],
    clipmode: "both" // "both" | "none" | "high" | "low"
    },
filterRepetitions: 1,
stepsize: 0.01,
description: "This is a description of my parameter",
}

This is the schema for a scalar decimal value. In addition one can add implementation specific keys. The resulting, full-fledged description would then be (when communicating between my system and Jamoma):

{
volume: {
type: "decimal",
value: 0.1, //the current value
default: 0.5, // to which value the parameter is reset to
range: {
    bounds: [0.0, 1.0],
    clipmode: "both" // "both" | "none" | "high" | "low"
    },
filterRepetitions: 1,
stepsize: 0.01,
description: "This is a description of my parameter",
dataspace: {
    type: "gain",
    uinit: "linear"
    },
priority: 0,
tag: "vol",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant