Can anyone explain to me how I add a logarithmic label to an array. Right now I'm using the internale message (; array1 xlabel 0 1 2 3 ...) to add labels to my array. But this only gives me a linear scale.

My scenario is as follows: I display a frequency spectrum with an array. The standard is of course a linear view if the bins. I already managed it to display my spectrum in a logarithmic scale. Now I also want to add a label to the x-axis with a logarithmic scale.

Thanks for your help.

Best,

Matthias

Can anyone explain to me how I add a logarithmic label to an array. Right now I'm using the internale message (; array1 xlabel 0 1 2 3 ...) to add labels to my array. But this only gives me a linear scale.

My scenario is as follows: I display a frequency spectrum with an array. The standard is of course a linear view if the bins. I already managed it to display my spectrum in a logarithmic scale. Now I also want to add a label to the x-axis with a logarithmic scale.

Thanks for your help.

Best,

Matthias

here is a patch demonstrating what I try to do:

abstract_spec2.pd

It writes the magnitudes of an audio input (the one inlet) in two arrays. One with a linear frequency scale on the x-axis and one with a log frequency scale. My goal is it to label the x-axis with the matching frequencies in Hz and not just the indices of the array (aka the bin numbers).

Thanks for your help.

best,

Matthias

It is probably easier just to calculate them by hand and enter them in the y-label message....

David. ]]>

@LiamG I never used data structures in PD before, though I read this manual real quick and it looks like it might be possible but it's a hell of a workaround

Would be great if we had logarithmic representations of arrays in PD.

]]>You might try bringing this question up on the list, where the PD developers can respond.

]]>an idea gleaned from Help Browser 13.sliderule.pd in 4.data.structures

log-label.pd ]]>