This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include "defs.h" | |
#include "map.h" | |
#include "context.h" | |
#include "func.h" | |
#include "err_msg.h" | |
#ifndef GWION_DOC_DIR | |
#define GWION_DOC_DIR "/usr/lib/Gwion/doc/" | |
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5.0 => float songlength; | |
[660.0, 587.0, 440.0, 392.0, 370.0, 392.0] @=> float freqs[]; | |
[0.5, 1.5, 2.5, 3.0, 3.5, 4.0] @=> float soundtimes[]; | |
[0.5, 0.5, 1.0, 1.0, 1.0, 1.0] @=> float amps[]; | |
[20, 20, 20, 20, 20, 20] @=> int num[]; | |
for (0 => int i; i < freqs.size(); 1 +=> i) { | |
SinOsc s[num[i]];//Hold all of the oscillators for this note | |
0.5 / num[i] => float scale; | |
for (0 => int j; j < num[i]; 1 +=> j) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include "defs.h" | |
#include "map.h" | |
#include "context.h" | |
#include "func.h" | |
#include "err_msg.h" | |
#ifndef GWION_DOC_DIR | |
#define GWION_DOC_DIR "/usr/lib/Gwion/doc/" | |
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef SPFLOAT | |
#define SPFLOAT double | |
#endif |
NewerOlder