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
@fennecdjay
fennecdjay / MdrInANutshell.md
Last active March 11, 2019 21:19
Mdr in a Nutshell

MDR in a nutshell

MDR is intented (but not limited) to be a markdown preprocessor.

It only supports a few commands

Snippet/Code

Define a piece of code

  • you'll later include somwhere
  • that you want written in a file
#ifndef __GWION_ALL
#include "gwion_util.h"
#include "gwion_ast.h"
#include "oo.h"
#include "arg.h"
#include "constant.h"
#include "nspc.h"
#include "env.h"
#include "vm.h"
#include "context.h"

PRs Welcome Language grade: C/C++ Build Status

Gwion

gwion is a object-oriented programming language, aimed at making music

strongly inspired by chuck, but adding a bunch high-level features:
templates, first-class functions and more.

Le Massacre des primevères

Rapport d’analyse de l’enregistrement

Enlever les intros sur:

  • Un Printemps
  • Je vous salue
  • Les Chevaux de Marly

Remarques sur les mixs

  • A l‘audition, il s’avère que le niveau de la voix est très
@fennecdjay
fennecdjay / Base.Dockerfile
Last active October 14, 2019 02:08
Some Dockerfiles
FROM archlinux/base:latest
USER root
RUN pacman --noconfirm -Suy
RUN pacman --noconfirm -S base-devel git
USER $NB_USER
CMD bash
@fennecdjay
fennecdjay / Dockerfile
Created February 22, 2020 14:26
(draft) Dockerfile for Gwion
FROM fennecdjay/base
WORKDIR /tmp
USER root
COPY ./ gwion
RUN cd gwion && make install
WORKDIR /home/$NB_USER
USER $NB_USER
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
is-replit-tag-broken-5137:1 Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
is-replit-tag-broken-5137:1 Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
78a1372659115b526d5619ba68627187667ff711.585cf98b770df5047c0f.js:1 Repl.it version 1825617
replEnvironment.js:1 Uncaught (in promise) DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
at https://repl.it/_next/static/etnlDq_CD1-cNUu91YlU8/pages/replEnvironment.js:1:279219
at c (https://repl.it/_next/static/chunks/commons.9feaa24f2d3e7e2b6c75.js:1:53289)
at Generator._invoke (https://repl.it/_next/static/chunks/commons.9feaa24f2d3e7e2b6c75.js:1:53077)
at Generator.forEach.t.<computed> [as next] (https://repl.it/_next/static/chunks/commons.9feaa24f2d3e7e2b6c75.js:1:53712)
at c (https://repl.it/_next/static/chunks/commons.9feaa24f2d3e7e2b6c75.js:1:53289)
at e (https://repl.it/_next/static/chunks/com
#require Std
#require Math
#require Modules
enum Pitch { C, D, E, F, G, A, B }
class MusicObject {
fun UGen update() {}
fun UGen onStart() {}
fun UGen onEnd() {}
@fennecdjay
fennecdjay / tictactoe.c
Last active March 24, 2021 21:56
the code for tictactoe in gwion. The file ends in `.c` instead of `.gw` to get syntax highlight
#require TUI
#require Std
const global Event ev;
[[0, 1, 2], [3, 4, 5], [6, 7, 8], [0, 3, 6], [1, 4, 7], [2, 5, 8], [0, 4, 8], [2, 4, 6]] => const int wins[][];
class TicTacToeBoard extends TUI.User {
var int current;
"X" => var string player;