Automated Audio Transcription (AAT) / Automated Music Transcription (AMT) (aka: converting audio to midi)
Some notes on Automated Audio Transcription (AAT) / Automated Music Transcription (AMT) (aka: converting audio to midi)
#!/bin/bash | |
# Install required packages if not present | |
check_and_install_dependencies() { | |
local packages=("inotify-tools" "texlive" "texlive-latex-extra" "biber") | |
echo "Checking and installing dependencies..." | |
for package in "${packages[@]}"; do | |
if ! dpkg -l | grep -q "^ii $package "; then | |
sudo apt-get install -y "$package" |
import "./App.css"; | |
import { useEffect, useState } from "react"; | |
import { useCompletion } from "ai/react"; | |
function App() { | |
const [apiResponse, setApiResponse] = useState(""); | |
useEffect(() => { | |
fetch("/api/reply?value=Hello from React App!") | |
.then((response) => response.json()) |
import ai.djl.modality.nlp.DefaultVocabulary; | |
import ai.djl.modality.nlp.Vocabulary; | |
import ai.djl.modality.nlp.bert.BertToken; | |
import ai.djl.modality.nlp.bert.BertTokenizer; | |
import ai.djl.modality.nlp.qa.QAInput; | |
import ai.djl.ndarray.NDArray; | |
import ai.djl.ndarray.NDList; | |
import ai.djl.ndarray.NDManager; | |
import ai.djl.translate.Batchifier; | |
import ai.djl.translate.Translator; |
/* FOR THE BROWSER | |
Utility function to read a ND-JSON HTTP stream. | |
`processLine` is a function taking a JSON object. It will be called with each element of the stream. | |
`response` is the result of a `fetch` request. | |
See usage example in the next file. | |
*/ | |
const readStream = processLine => response => { | |
const stream = response.body.getReader(); | |
const matcher = /\r?\n/; |
const _m1 = new THREE.Matrix4(); | |
const _obj = new THREE.Object3D(); | |
const _offset = new THREE.Vector3(); | |
class Geometry extends THREE.EventDispatcher { | |
constructor() { | |
super(); |
import * as x from './xstate-fp'; | |
export enum EditableTextState { | |
idle = 'idle', | |
editing = 'editing', | |
} | |
export enum EditableTextEvent { | |
mouseenter = 'mouseenter', | |
mouseleave = 'mouseleave', |
import { | |
useReducerWithEffects, | |
// hand-wavey, but meant to be used by React to create something | |
// external will produce async values sent to components | |
createEffect | |
} from 'react'; | |
function fetchUserEffect(id, parentRef) { | |
const controller = new AbortController(); | |
const signal = controller.signal; |
See the following links for further updates to Github Desktop for Ubuntu. These are official instructions. (also mentioned by fetwar on Nov 3, 2023)
For the sake of "maintaining the tradition" here is the updated version.