Rockbox Technical Forums

Rockbox Development => Feature Ideas => Topic started by: BdN3504 on July 13, 2008, 08:11:42 AM

Title: Conditional pitch display in wps
Post by: BdN3504 on July 13, 2008, 08:11:42 AM
i tried using the pitch tag as a conditional but it did not work.

I want to have it like the volume tag:

%?pv<1|2|3|4|5|6|42> (you know how volume display works...)
%?Sp<pitch low|pitch high> (this always displays "pitch low" on the screen)

and it must also be usable with images.
As this already works for volume, i don't think it will be that hard to implement, will it?
Title: Re: Conditional pitch display in wps
Post by: PaulJam on July 13, 2008, 10:10:08 AM
In your example
%?Sp<pitch low|pitch high>
which condition should be true in the case of neutral pitch?
Title: Re: Conditional pitch display in wps
Post by: BdN3504 on July 13, 2008, 10:33:29 AM
sorry, i didn't mean that as in true/false but as an enumeration. just like volume.
%?Sp<full octave down|semi octave down|quarter ocatve down|normal|quarter ocatve up|semi octave up|full octave up> So enum starts at pitch 50% and goes up to 200%. i don't know if the corresponding octaves i've given are right but it's just to clarify what i want.
but being able to use images is more important.
PS using this%?Sp as an enumeration only displayed the first entry of the enumeration list, that's why i only posted two options in the first post.