Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Semitone Spectrogram

Post any examples or modules that you want to share here

Re: Semitone Spectrogram

Postby martinvicanek » Thu Dec 31, 2015 11:29 am

Refer to Wikipedia's article on heterodyne. Basically what I do is the following;

1. For each note generate sine(wt) and cosine(wt) with the corresponding angular frequency w.
2. Multiply the input with sine and cosine, respectively.
3. Lowpass-filter products to remove the sum frequency and keep only the difference frequency components, call them x and y.
4. Evalueate x^2 + y^2 to get the squared amplitude of that semitone. Assumption is that within the semitone frequency band only one sinusoid is present else you get beats.

Note that in contrast to straight bandpass-filtering the input, with heterodyning you eliminate the need for an envelope follower. ;)
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm

Re: Semitone Spectrogram

Postby francoisreme » Fri Mar 19, 2021 10:16 am

Huge work as usual martin...
francoisreme
 
Posts: 29
Joined: Wed Feb 15, 2017 4:01 pm

Previous

Return to User Examples

Who is online

Users browsing this forum: Google [Bot] and 40 guests