This file contains 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
<html> | |
<head> | |
<style> | |
* { | |
margin: 0; | |
padding: 0; | |
} | |
table { |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Web Speech API</title> | |
<script> | |
var flag_speech = 0; | |
function vr_function() { |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Web Speech API</title> | |
<script> | |
var flag_speech = 0; | |
function vr_function() { |
This file contains 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
CFILES = driver.c | |
obj-m := mkt.o | |
mkt-objs := $(CFILES:.c=.o) | |
ccflags-y += -std=gnu99 -Wall -Wno-declaration-after-statement | |
all: | |
make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) modules | |
clean: |
This file contains 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
$ amixer cset numid=3 1 | |
numid=3,iface=MIXER,name='PCM Playback Route' | |
; type=INTEGER,access=rw------,values=1,min=0,max=2,step=0 | |
: values=1 | |
$ fluidsynth -a alsa -g 6 /usr/share/sounds/sf2/FluidR3_GM.sf2 | |
FluidSynth version 1.1.6 | |
Copyright (C) 2000-2012 Peter Hanappe and others. | |
Distributed under the LGPL license. | |
SoundFont(R) is a registered trademark of E-mu Systems, Inc. |
This file contains 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
typedef struct _Smf { | |
std::string filepath; | |
Note * notes; | |
Note * endpoint; | |
Note * current; | |
} Smf; | |
typedef struct _Note { | |
int time; | |
unsigned char message[3]; |
This file contains 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 <iostream> | |
#include "midi.hpp" | |
int main () { | |
MidiInterface * p = new MidiInterface("foobar"); | |
p->connect("Midi Through", MidiDirection::OUT); | |
while (true) std::cin.getc(); | |
exit(0); | |
} |
This file contains 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 <iostream> | |
#include <cstdlib> | |
#include <smf.h> | |
#include <algorithm> | |
#include <chrono> | |
#include <thread> | |
#include <unistd.h> | |
#include "RtMidi.h" | |
static std::string outClientName = std::string("MKT Output Client"); |