Waveform analysis/Doh ray me: Difference between revisions

From Rosetta Code
Content added Content deleted
m ({{omit from|UNIX Shell}})
m ({{omit from|HTML}})
Line 8: Line 8:
{{omit from|AWK}}
{{omit from|AWK}}
{{omit from|GUISS}}
{{omit from|GUISS}}
{{omit from|HTML}}
{{omit from|Lotus 123 Macro Scripting}}
{{omit from|Lotus 123 Macro Scripting}}
{{omit from|Openscad}}
{{omit from|Openscad}}

Revision as of 16:35, 20 August 2011

Waveform analysis/Doh ray me is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

Analyse a given section of monophonic audio waveform, for average pitch and output one of the sol-fa trigraphs (like these, except each has three letters) corresponding to average pitch level: Doh, Ray, Mee, Fah, Soh, Lah, Tee, doh.

Optionally, follow the trigraph with a plus or minus symbol, to indicate whether the note falls above or below the solfa. Extend the scale to cover 21 notes: DOH, RAY, MEE, FAH, SOH, LAH, TEE, Doh, Ray, Mee, Fah, Soh, Lah, Tee, doh, ray, mee, fah, soh, lah, tee.

A calibration parameter can be provided to suit different voices. This can be provided as a variable defined within the code.