View Issue Details

IDProjectCategoryView StatusLast Update
0002611ardourbugspublic2010-05-02 00:04
Reporterobleak Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status feedbackResolutionopen 
Product VersionSVN/2.0-ongoing 
Summary0002611: LV2 ':sampleRate' Port Property ignored
DescriptionArdour does not interpret LV2 plugin control ports with the 'sampleRate' port property set properly. The UI shows the unscaled values and the control port values provided to the plugin are also unscaled.

For example, a port defined as below with a sample rate of 44100:

a lv2:InputPort, lv2:ControlPort ;
lv2:index 7 ;
lv2:symbol "hpf" ;
lv2:name "HPF" ;
lv2:default 0.001 ;
lv2:minimum 0.001 ;
lv2:maximum 0.05 ;
lv2:portProperty :sampleRate ;

results in a control with a range of 0.001 -> 0.05, whereas the equivalent LADSPA definition:

psPortRangeHints[IERR_HPF].HintDescriptor =
  (LADSPA_HINT_BOUNDED_BELOW |
   LADSPA_HINT_BOUNDED_ABOVE |
   LADSPA_HINT_SAMPLE_RATE |
   LADSPA_HINT_DEFAULT_MINIMUM);

psPortRangeHints[IERR_HPF].LowerBound = 0.001;
psPortRangeHints[IERR_HPF].UpperBound = 0.05;

results in a port with a range of 44.1 -> 2205
Additional Information$uname -a
Linux arch-lv2 2.6.28-ARCH 0000001 SMP PREEMPT Tue Mar 17 07:22:53 CET 2009 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ AuthenticAMD GNU/Linux

ardour version: 2.8
slv2: version 0.6.2
TagsNo tags attached.

Activities

cth103

2010-05-02 00:04

administrator   ~0007726

What plugin are you using to test this?

Issue History

Date Modified Username Field Change
2009-04-03 06:58 obleak New Issue
2010-04-24 10:28 cth103 Category bugs => bugs2
2010-04-24 10:31 cth103 Category bugs2 => bugs
2010-05-02 00:04 cth103 Note Added: 0007726
2010-05-02 00:04 cth103 Status new => feedback