This GitLab instance reached the end of its service life. It won't be possible to create new users or projects.

Please read the deprecation notice for more information concerning the deprecation timeline

Visit migration.git.tu-berlin.de (internal network only) to import your old projects to the new GitLab platform 📥

Commit 805368ee by Henrik von Coler

Starting with AM stuff!

parent 604dff2e
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
#include <iostream> #include <iostream>
#include "midi_sine_example.h" #include "midi_sine_example.h"
using std::cout; using std::cout;
using std::endl; using std::endl;
......
...@@ -112,7 +112,10 @@ int MidiSineExample::process (jack_nframes_t nframes) ...@@ -112,7 +112,10 @@ int MidiSineExample::process (jack_nframes_t nframes)
// set alll partial frequencies and amplitudes // set alll partial frequencies and amplitudes
for (int i=0; i<nPartials; i++) for (int i=0; i<nPartials; i++)
{ {
sines[i].amplitude(0.1 * 1/(i+1)); sines[i].amplitude(0.1 * 1/(i+1));
sines[i].frequency(f0* (double) (i+1)); sines[i].frequency(f0* (double) (i+1));
} }
} }
......
...@@ -42,7 +42,7 @@ class MidiMan ...@@ -42,7 +42,7 @@ class MidiMan
public: public:
typedef struct { typedef struct {
int byte1 = -1; int byte1 = -1;
int byte2 = -1; int byte2 = -1;
double byte3 = -1; double byte3 = -1;
bool hasBeenProcessed = false; bool hasBeenProcessed = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment