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 <Adafruit_NeoPixel.h> | |
#include <misakiUTF16.h> | |
#include <M5StickCPlus2.h> | |
// Neopixelの設定 | |
#define NUMPIXELS 256 // Neopixel ピクセル数(LED数) 32x8に変更 | |
#define PIN 26 // Neopixel 制御用ピン番号 | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); |
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 <Adafruit_NeoPixel.h> | |
#include <misakiUTF16.h> | |
#include <M5StickCPlus2.h> | |
// Neopixelの設定 | |
#define NUMPIXELS 64 // Neopixel ピクセル数(LED数) | |
#define PIN 26 // Neopixel 制御用ピン番号 | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); |
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
import random | |
import copy | |
from music21 import * | |
def init(): | |
# get environment | |
env = environment.Environment() | |
# check the path |
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
import random | |
import copy | |
from music21 import * | |
def f_major(melo, baseNote): | |
fn = note.Note(baseNote) | |
fn.quarterLength = 1 / 6 | |
melo.append(fn) |
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
import javax.sound.midi.*; | |
import processing.svg.PGraphicsSVG; | |
class Note { | |
long tick; | |
int noteNo; | |
} | |
String titleName = "Musicbox"; | |
String midiFileName = "Musicbox.mid"; |
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
import javax.sound.midi.*; | |
import processing.svg.PGraphicsSVG; | |
class Note { | |
long tick; | |
int noteNo; | |
} | |
ArrayList<Note> notes = new ArrayList<Note>(); |
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
{ | |
"patcher" : { | |
"fileversion" : 1, | |
"appversion" : { | |
"major" : 8, | |
"minor" : 1, | |
"revision" : 10, | |
"architecture" : "x64", | |
"modernui" : 1 | |
} |
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
# -*- coding: utf-8 -*- | |
import requests | |
import json | |
text = open('text.txt', encoding='utf-8').read() | |
#text = 'あいうえお' | |
query1 = requests.post('http://localhost:50021/audio_query', params={'speaker': '1', 'text': text}) | |
#print(json.dumps(query1.json(), indent=2)) |
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
for /R "C:/test" %%f in (*.SDIR) do ffmpeg -i "%%f" -acodec pcm_s16le -f wav "C:/test/out/%%~nf.wav" | |
for /R "C:/test" %%f in (*.aif) do ffmpeg -i "%%f" -acodec pcm_s16le -f wav "C:/test/out/%%~nf.wav" |
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
import processing.video.*; | |
import gab.opencv.*; | |
import java.awt.Rectangle; | |
Capture video; | |
OpenCV opencv; | |
Rectangle[] faces; | |
import themidibus.*; |
NewerOlder