Skip to content

Instantly share code, notes, and snippets.

View YuuichiAkagawa's full-sized avatar

Yuuichi Akagawa YuuichiAkagawa

View GitHub Profile
Bus 001 Device 024: ID 0944:012f KORG, Inc. SQ-1
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0944 KORG, Inc.
@YuuichiAkagawa
YuuichiAkagawa / USBH_MIDI_PRA32U_bridge
Last active August 20, 2023 12:58
USBH_MIDI: Digital Synth PRA32-U USB MIDI bridge
/*
*******************************************************************************
USBH_MIDI Digital Synth PRA32-U bridge
Copyright (C) 2023 Yuuichi Akagawa
*******************************************************************************
*/
#include <usbh_midi.h>
#include <usbhub.h>
@YuuichiAkagawa
YuuichiAkagawa / UHS2MIDI_PRA32U_bridge
Last active August 20, 2023 12:58
UHS2-MIDI: Digital Synth PRA32-U USB MIDI bridge
/*
*******************************************************************************
UHS2-MIDI Digital Synth PRA32-U bridge
Copyright (C) 2023 Yuuichi Akagawa
*******************************************************************************
*/
#include <UHS2-MIDI.h>
#include <usbhub.h>
USB Usb;
@YuuichiAkagawa
YuuichiAkagawa / USBH_MIDI_2Dev_Kbd_Inst.ino
Last active November 13, 2023 01:46
USBH_MIDI: Example of transmitting keyboard input data to an instrument.
/*
*******************************************************************************
* USBH_MIDI Example of transmitting keyboard input data to an instrument.
*
* Copyright (C) 2023 Yuuichi Akagawa
*******************************************************************************
*/
#include <usbh_midi.h>
#include <usbhub.h>
@YuuichiAkagawa
YuuichiAkagawa / CV-GATE-test.svg
Created May 13, 2023 10:35
CV GATE test circuit
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@YuuichiAkagawa
YuuichiAkagawa / USBH_CVGATE.ino
Created November 23, 2022 22:58
USB MIDI to CV/GATE converter
/*
* USB MIDI to CV/GATE converter
* (C)2022 Yuuichi Akagawa
*/
#include <UHS2-MIDI.h>
#include <Wire.h>
#define MCP4725_ADDRESS 0x60
#define GATE_PIN 2
@YuuichiAkagawa
YuuichiAkagawa / gist:412f8903b442caf147ea217c2ce1e851
Created November 3, 2021 01:06
MPC Studio 2 USB Descriptor
$ lsusb -tv
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M
ID 1d6b:0002 Linux Foundation 2.0 root hub
|__ Port 3: Dev 8, If 0, Class=Audio, Driver=snd-usb-audio, 480M
ID 09e8:004a AKAI Professional M.I. Corp.
$ lsusb -v -d 09e8:004a
Bus 001 Device 008: ID 09e8:004a AKAI Professional M.I. Corp. MPC Studio
Couldn't open device, some information will be missing
/*
*******************************************************************************
* NUX MG-300 CC test
* Copyright (C) 2021 Yuuichi Akagawa
*
* This is sample program. Just sample.
*******************************************************************************
*/
#include <usbh_midi.h>
#include <usbhub.h>
/*
*******************************************************************************
Serial MIDI to USB MIDI bridge
Copyright (C) 2021 Yuuichi Akagawa
for use with Arduino MIDI library
https://github.com/FortySevenEffects/arduino_midi_library/
Note:
- If you want use with Leonardo, you must choose Arduino MIDI library v4.0 or higher.
@YuuichiAkagawa
YuuichiAkagawa / INIT.BAS
Created February 12, 2021 11:11
PC-E500初期設定用
10 AUTOGOTO N+110
20 GOTO 110
80 *ADD:Q=PEEK (P+&2)*&10000+PEEK (P+&1)*&100+PEEK P:RETURN
110 CLS :PRINT "****** マシンゴエリア ノ カクホ ******":N=100
120 MA=&FC
130 POKE &BFE03,&1A,&FD,&B,&0,&0,&2:CALL &FFFD8
210 CLS :PRINT "****** IOCSワ-ク ノ カクホ ******":N=&C8
220 PRINT "キ-ボ-ド バッファ = &100"
230 SI=8
240 P=&BFD1A:GOSUB *ADD:A1=Q