Search found 30 matches

by jerome42
Tue Jun 04, 2013 8:04 pm
Forum: General Audio Programming
Topic: how FFT output is encoded in the single variable 'value' ?
Replies: 2
Views: 5244

Re: how FFT output is encoded in the single variable 'value'

I doubt that the frequency is encoded in this variable - only the Amplitude (or Magnitude). The frequency is always known, it is just the bin index multiplied by the fixed bin distance. It is possible that 2 Bytes make up the index but a float is rather short for that, isn't it? I don't know much a...
by jerome42
Mon May 13, 2013 8:06 pm
Forum: General Audio Programming
Topic: how FFT output is encoded in the single variable 'value' ?
Replies: 2
Views: 5244

how FFT output is encoded in the single variable 'value' ?

The Audacity file TrackArtist.cpp contains a method TrackArtist::DrawClipSpectrum(...) which is responsible for the FFT conversion of a waveform and the drawing on screen of the Spectrum of that waveform. The amplitudes of the different frequencies in the spectrum are displayed on screen by differen...
by jerome42
Fri May 03, 2013 9:58 am
Forum: General Audio Programming
Topic: switch to Spectogram display by code
Replies: 31
Views: 22314

Re: switch to Spectogram display by code

Hi Gale, Thanks for your profound reaction... Hower you are miles ahead. I am just putting the first steps on a long road to maybe nothing, each step of which takes hours of struggling through the Audacity sources and you are asking all sorts of detailed questions about a far future, some of which I...
by jerome42
Thu May 02, 2013 9:16 am
Forum: General Audio Programming
Topic: switch to Spectogram display by code
Replies: 31
Views: 22314

Re: switch to Spectogram display by code

Hello Steve, Edgar, Gale and all other occasional readers - if any-, This is a sort of progress report. Switching between Wave and Spectrum display and vv by code, isn't a problem anymore. Under preferences::keyboard::view I added a command 'Spectrum or Wave toggle' which is activated by pressing th...
by jerome42
Tue Apr 09, 2013 8:02 pm
Forum: General Audio Programming
Topic: switch to Spectogram display by code
Replies: 31
Views: 22314

Re: switch to Spectogram display by code

Here are a couple of examples of functions I have added for my own personal use (see menu.cpp) My goodness, Edgar, sóóó simple..., I wouldn't have found this in days, expected it to be much more complicated! Thanks a lot, also for your quick respons. Maybe you have also some code on the shelve for ...
by jerome42
Tue Apr 09, 2013 10:37 am
Forum: General Audio Programming
Topic: switch to Spectogram display by code
Replies: 31
Views: 22314

Re: switch to Spectogram display by code

Hello Edgar, Our last contact was about a month ago already. Hope everything has gone well with you? In the meantime I spend days in searching through the Audicity source code, with an efficiency of one day searching to find just one codeline or one function that would solve my needs of that moment....
by jerome42
Tue Mar 12, 2013 7:39 pm
Forum: General Audio Programming
Topic: switch to Spectogram display by code
Replies: 31
Views: 22314

Re: switch to Spectogram display by code

Don't worry Edgar, you and Gale gave me enough new stuff (.patch, audacity-cvs) to dive into and keep me busy at least for the next 14 days! Hope you don't mind Edgar, that I did things a little on my own way today. I preferred to postpone being involved in dealing with .patch and /or audacity-cvs ...
by jerome42
Tue Mar 12, 2013 9:38 am
Forum: General Audio Programming
Topic: switch to Spectogram display by code
Replies: 31
Views: 22314

Re: switch to Spectogram display by code

I am going to be out of town on business for the next 14 days with limited access to this forum and email and probably no access to the source code so don't be bummed out if you reply and see nothing from me for a while! Don't worry Edgar, you and Gale gave me enough new stuff (.patch, audacity-cvs...
by jerome42
Mon Mar 11, 2013 9:11 pm
Forum: General Audio Programming
Topic: switch to Spectogram display by code
Replies: 31
Views: 22314

Re: switch to Spectogram display by code

Code: Select all void ClickRemovalDialog::PopulateOrExchange(ShuttleGui & S) { Effect * baseEffect = (Effect *)mEffect; wxWindow * baseWindow = baseEffect->GetParent();//new public method of Effect class AudacityProject * currentProject = (AudacityProject *)baseWindow; //or to save a few steps but ...
by jerome42
Fri Mar 08, 2013 8:21 am
Forum: General Audio Programming
Topic: switch to Spectogram display by code
Replies: 31
Views: 22314

Re: switch to Spectogram display by code

@Jerome, although it's not very mentally stimulating, one way to do what you want without programming would be to duplicate the track then have one view as waveform and one view as spectrogram. This was in fact similar to what Vaughan did in his Thinklabs modification of Audacity 1.2.6, where click...