Skip to content

Default values shall not be pre-divided by sample-rate #17

@JohannesLorenz

Description

@JohannesLorenz

Example from the generated GLAME Butterworth Lowpass ttl:

 :port [
     a :InputPort, :ControlPort ;
     :name "Cutoff Frequency (Hz)" ;
     :index 0 ;
     :symbol "cutoff" ;
     :minimum 0.0001 ;
     :maximum 0.45 ;
     
     :default 0.112575 ;
     :portProperty pprops:logarithmic ;
     :portProperty :sampleRate ;
   ] ;

Here, sampleRate tells us that minimum and maximum shall be multiplied with the processing sample rate, i.e. minimum and maximum in range [0,1] makes sense. However, default will not be multiplied, so the default value must be in range [minimum*sampleRate, maximum*sampleRate].

Thanks for @PhysSong who posted a comment about it, and to @drobilla for confirming that this default value is not valid.

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