I hereby claim:
- I am tomoyanonymous on github.
- I am tomoya_nonymous (https://keybase.io/tomoya_nonymous) on keybase.
- I have a public key ASCxfT961oPp5K40zaX_IfEKbcKIjuDioodZouZwy6KY9go
To claim this, I am signing this object:
| #include <Servo.h> | |
| constexpr int instrument_pins[] = { 3, 5, 6, 9, 10, 11 }; // Expected to be used in Uno R3/R4 | |
| constexpr int numbers = sizeof(instrument_pins) / sizeof(int); | |
| Servo instruments[numbers]; | |
| void setup() { | |
| for (int i = 0; i < numbers; i++) { | |
| instruments[i].attach(instrument_pins[i]); | |
| } | |
| Serial.begin(115200); |
| /* | |
| Boards.h - Hardware Abstraction Layer for Firmata library | |
| Copyright (c) 2006-2008 Hans-Christoph Steiner. All rights reserved. | |
| Copyright (c) 2013 Norbert Truchsess. All rights reserved. | |
| Copyright (c) 2013-2016 Jeff Hoefs. All rights reserved. | |
| This library is free software; you can redistribute it and/or | |
| modify it under the terms of the GNU Lesser General Public | |
| License as published by the Free Software Foundation; either | |
| version 2.1 of the License, or (at your option) any later version. |
I hereby claim:
To claim this, I am signing this object:
Example: https://godbolt.org/z/KxY5Gz8Wx
Consider about making ADT for describing simple abstract syntax tree(AST) like below in haskell.
data Expr = FloatLit Float |
Symbol String |Example is on https://godbolt.org/z/9x8WT5zhT
#include <vector>
#include <list>
#include <iostream>Translated with www.DeepL.com/Translator (free version) from Japanese. Original Article https://zenn.dev/tomoyanonymous/articles/c4e9dc8e26f78a2093e8
https://www.electro-smith.com/daisy It's a microcontroller board that can be developed with Arduino IDE based on STM32 and various other microcontroller boards such as DSP libraries and Eurolac modules.
| var samplerate; | |
| var stereo = 1; | |
| var audioif; | |
| var audiomix; | |
| var outbufsize = 1024; | |
| var outbufsize2 = outbufsize * 2; | |
| var outquenum = 5; | |
| var app; | |
| var ctx; | |
| var imgpanel; |
| #send | |
| ffmpeg -f avfoundation -re -i \"none:BlackHole 16ch\" -c:a pcm_s16le -ac:a 4 -f rtp rtp://localhost:30000 -sdp_file test.sdp | |
| #receive | |
| ffplay -protocol_whitelist "rtp,udp,file" -i "rtp://127.0.0.1:30000" |
| #include <stdio.h> | |
| int main(){ | |
| int a = 540; | |
| float b = 460.1; | |
| auto fun = [&](int x){ | |
| putchar(a); | |
| putchar((int)b); | |
| putchar(x); | |
| }; | |
| fun(1); |
| declare name "reversedelay"; | |
| declare version "1.0"; | |
| declare author "Tomoya Matsuura"; | |
| declare license "MIT"; | |
| declare copyright "(c)Tomoya Matsuura 2019"; | |
| import("stdfaust.lib"); | |
| MAX_DELAY = 48000; | |
| phasor_phase(dtime,phase)= ((os.lf_rawsaw(dtime)+phase)% dtime) :int; //phase shift in sample | |
| indexphasor(dtime,phase) = phasor_phase(dtime*2,phase)<: <=(dtime),(*(-1)+dtime*2),_ : select2; //folded triangle |