Skip to content

Schema Error in config_neuralpi.json #39

Description

@Max-Bld

Hi,

There is a schema error with the actual config_neuralpi.json. Here are the logs:

[2024-11-16 14:01:26.642] [warning] #############################
[2024-11-16 14:01:26.642] [warning]    Started Sushi Logger!
[2024-11-16 14:01:26.642] [warning] #############################
[2024-11-16 14:01:26.710] [info] [plugin_library] Setting base plugin path to: /home/mind/plugins
[2024-11-16 14:01:26.711] [info] [jsonconfig] Setting engine sample rate to 48000.0
[2024-11-16 14:01:26.711] [info] [main] Setting up Xenomai RASPA frontend
[2024-11-16 14:01:26.713] [error] [jsonconfig] Schema validation failure at /tracks/0
[2024-11-16 14:01:26.713] [error] [jsonconfig] Config file /home/mind/config_files/config_neuralpi.json does not follow schema: 1

According to ELK tracks json schema, a track does not have (anymore) a mode key. It has to be replaced with a channels key and value 2 if you want stereo.

Old config_neuralpi.json:

{
    "host_config" : {
        "samplerate" : 48000
    },
    "tracks" : [
        {
            "name" : "main",
            "mode" : "stereo",
            "inputs" : [
                {
                    "engine_bus" : 0,
                    "track_bus" : 0
                }
            ],
            "outputs" : [
                {
                    "engine_bus" : 0,
                    "track_bus" : 0
                }
            ],
            "plugins" : [
			    {
				    "uid"  : "sushi.testing.mono_summing",
					"name" : "mono_summing",
					"type" : "internal"
				},
                {
                    "uid"  : "NeuralPi",
                    "path" : "/home/mind/plugins/NeuralPi.vst3",
                    "name" : "NeuralPi",
                    "type" : "vst3x"
                }
            ]
        }
    ]
}

New one:

{
    "host_config" : {
        "samplerate" : 48000
    },
    "tracks" : [
        {
            "name" : "main",
            "channels" : 2,
            "inputs" : [
                {
                    "engine_bus" : 0,
                    "track_bus" : 0
                }
            ],
            "outputs" : [
                {
                    "engine_bus" : 0,
                    "track_bus" : 0
                }
            ],
            "plugins" : [
			    {
				    "uid"  : "sushi.testing.mono_summing",
					"name" : "mono_summing",
					"type" : "internal"
				},
                {
                    "uid"  : "NeuralPi",
                    "path" : "/home/mind/plugins/NeuralPi.vst3",
                    "name" : "NeuralPi",
                    "type" : "vst3x"
                }
            ]
        }
    ]
}

And now, the plugin works.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions