Sean Walker | 5 Dec 07:42 2011
Picon

[CLAM] Beginner basics

I'm attempting to do some Spectral Analysis and I've found the SpectralAnalysis class and have been playing with the Network Editor as well as libclam and associated classes. I'm now trying to make sense out of the Spectrum class and the data produced by it. What I am looking to discover is what frequencies have what values and I can't quite make heads nor tails of the output. I've been playing with FFT_example.cxx and Spectrum_example.cxx as starting points. Now, can anyone direct me to a good resource for figuring out what Magnitude and Phase really mean to the uninitiated? Thanks!
_______________________________________________
clam-users mailing list
clam-users@...
http://clam-project.org
Jean-Luc Menut | 5 Dec 15:27 2011
Picon

[CLAM] note/chord scoring

Hello all,

Inspired by Rocksmith (http://rocksmith.ubi.com/rocksmith/en-US/home/) 
and JamOrigin tools (http://www.jamorigin.com/main/), I was wondering 
how difficult it could be to implement, with clam, a system of "scoring" 
single notes and chords made by a guitar plugged on a computer (without 
any effect added).

The goal would be to display notes/chords to a player, to record him, 
and to compare the recording to what was supposed to be played to know 
if it was correct or not.

It seems to be easier than recognize chords from a song because 1) there 
is no other instrument/voice/effect playing at the same time 2) we know 
what is supposed to be played.

Any opinion or advice is welcome

best regards,
Jean-Luc

PS : If you aware of another framework/library more suitable for my 
needs, I'm also interested.
David García Garzón | 5 Dec 18:41 2011

Re: [CLAM] Beginner basics

On Monday 05 December 2011 07:42:08 Sean Walker wrote:
> I'm attempting to do some Spectral Analysis and I've found the
> SpectralAnalysis class and have been playing with the Network Editor as
> well as libclam and associated classes. I'm now trying to make sense out of
> the Spectrum class and the data produced by it. What I am looking to
> discover is what frequencies have what values and I can't quite make heads
> nor tails of the output. I've been playing with FFT_example.cxx and
> Spectrum_example.cxx as starting points. Now, can anyone direct me to a
> good resource for figuring out what Magnitude and Phase really mean to the
> uninitiated? Thanks!

The spectrum is an array of coefficients which are not just simple real numbers 
but complex numbers. So they have a real part and an imaginary part. They can 
be plotted as a point in the XY plane being the X the real and the Y the 
imaginary part. See: http://en.wikipedia.org/wiki/Complex_number
If you had a vector to that point, the complex magnitude is the length of the 
vector and the phase is the angle from the X axis.

What you usually see in an spectrum view is just the magnitude. Not enough to 
reconstruct the original sound but it gives a nice idea of the 'energy' that 
the sound provides for such frequency.

Much more on fft: http://www.dsprelated.com/dspbooks/mdft/

David.
David García Garzón | 5 Dec 18:44 2011

Re: [CLAM] note/chord scoring


On Monday 05 December 2011 15:27:48 Jean-Luc Menut wrote:
> Hello all,
> 
> Inspired by Rocksmith (http://rocksmith.ubi.com/rocksmith/en-US/home/)
> and JamOrigin tools (http://www.jamorigin.com/main/), I was wondering
> how difficult it could be to implement, with clam, a system of "scoring"
> single notes and chords made by a guitar plugged on a computer (without
> any effect added).
> 
> The goal would be to display notes/chords to a player, to record him,
> and to compare the recording to what was supposed to be played to know
> if it was correct or not.
> 
> It seems to be easier than recognize chords from a song because 1) there
> is no other instrument/voice/effect playing at the same time 2) we know
> what is supposed to be played.
> 
> Any opinion or advice is welcome
> 
> best regards,
> Jean-Luc
> 
> PS : If you aware of another framework/library more suitable for my
> needs, I'm also interested.
> _______________________________________________
> clam-users mailing list
> clam-users@...
> http://clam-project.org

Take a look to the Voice2Midi application in the CLAM subversion. It should be 
something quite similar.
David.
Gerald Mwangi | 6 Dec 11:58 2011
Picon
Picon

[CLAM] Analogsignal to Midi and Qt Stuff

Hi Guys,
First i would like to say that I'm very impressed of CLAM. It seems to just what i was looking for.
I started developing a program that take a Guitarsignal (monophone) and transforms it to a midi/control message to drive oscillators and external Synths. To do this I use the SMSAnalysisCore for Peak and Fundamental detection followed by the Fund2Control(2Midi) processing.
This work quit well for monophone signal (single notes on the Guitar), but i would like to explore the possibility of transforming polyphone signal with up to 6 notes to get the 6 Fundamentals. Therefore the question: is there anyway of building a network to do this in CLAM with the current processings,
or would I have to write my own processing.
I have some basic knowledge in signal processing since i work in the image processing field, so I could develope such a processing if you could give the literature.

My second question is rather technical: My application is in Qt so how can I expose the controls of a network to the layout managers (QLayout, QScrollArea) I use. Right now I' ve subclassed QWidget the following way

using namespace CLAM; class SynthControl : public QWidget { Q_OBJECT public: explicit SynthControl(QWidget *parent = 0,FloatInControl* control=0); ~SynthControl(); ... signals: public slots: void valChanged(int val); // Connected to valChanged Signal of mknob private: QSynthKnob* mknob; QLabel* mknoblabel; FloatInControl* mControl; ... }; The FloatInControl I get from the specific processing I want to control. Does CLAM actually expose such widgets directly through the CLAM::Network class? Thanx in advance, Gerald
_______________________________________________
clam-users mailing list
clam-users@...
http://clam-project.org
Sean Walker | 5 Dec 07:40 2011
Picon

[CLAM] Beginner basics

I'm attempting to do some Spectral Analysis and I've found the SpectralAnalysis class and have been playing with the Network Editor as well as libclam and associated classes. I'm now trying to make sense out of the Spectrum class and the data produced by it. What I am looking to discover is what frequencies have what values and I can't quite make heads nor tails of the output. I've been playing with FFT_example.cxx and Spectrum_example.cxx as starting points. Now, can anyone direct me to a good resource for figuring out what Magnitude and Phase really mean to the uninitiated? Thanks!

_______________________________________________
clam-users mailing list
clam-users@...
http://clam-project.org
Cliff Chen | 13 Dec 23:08 2011
Picon

[CLAM] Audio Speed Up

Hi all, I had a quick question about how to speed up and slow down audio playback on the fly. I've built a network in NetworkEditor that uses a MonoAudioFileReader to read in a wave file. I'm trying to find out how to programmatically control the playback speed in code. Can this be done, and if so how?
Thanks for your time

- Cliff

_______________________________________________
clam-users mailing list
clam-users@...
http://clam-project.org
Francisco Tufró | 27 Dec 19:52 2011
Picon

Re: [CLAM] Audio Speed Up

With or without pitch modification?

See Time stretching:

Skipping frames will speed up with pitch augmentation and reading on a slower sample rate will result on slowed down sounds with pitch reduction.


On Tue, Dec 13, 2011 at 7:08 PM, Cliff Chen <cliff.chen-UCMPtG0cbvw3uPMLIKxrzw@public.gmane.org> wrote:
Hi all, I had a quick question about how to speed up and slow down audio playback on the fly. I've built a network in NetworkEditor that uses a MonoAudioFileReader to read in a wave file. I'm trying to find out how to programmatically control the playback speed in code. Can this be done, and if so how?
Thanks for your time

- Cliff

_______________________________________________
clam-users mailing list
clam-users-1k/dSJ7MB0Z7+ZU2EHDb4Q@public.gmane.orgproject.org
http://clam-project.org



--
Francisco Tufró
contacto-RJTR44VeiGNKp2va8JtdhU7EXpO/VAb1@public.gmane.org
http://www.franciscotufro.com.ar
http://quov.is
http://www.elevenstories.com
http://music.elevenstories.com
_______________________________________________
clam-users mailing list
clam-users@...
http://clam-project.org

Gmane