Skip to content

Instantly share code, notes, and snippets.

View fennecdjay's full-sized avatar
🎵
Star Gwion, You'll make my day

Jérémie Astor fennecdjay

🎵
Star Gwion, You'll make my day
  • France
View GitHub Profile
#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
@fennecdjay
fennecdjay / rissetbeats.ck
Last active March 23, 2017 01:21
Reworked from electro-music.
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) {
@fennecdjay
fennecdjay / doc.c
Last active November 22, 2017 00:29
Base for Stat and Snfile plugin.
#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
@fennecdjay
fennecdjay / soundpipe.h
Last active February 7, 2017 00:11
use this to compile ff2spa without soundpipe
#ifndef SPFLOAT
#define SPFLOAT double
#endif