Skip to content

Instantly share code, notes, and snippets.

"""
This is the launcher package for server launching.
"""
from dataclasses import dataclass
from pathlib import Path
from noggin.launcher.status import LauncherStatus
import subprocess
import nice_logging as logging
from threading import Thread
from observableprops import ObservablesMeta
@reo6
reo6 / react-svg-example-1.jsx
Last active February 27, 2023 18:40
React SVG Example
import {
Button,
Col,
Row,
Container,
Form,
} from "react-bootstrap";
import { useState } from "react";
function App() {
@reo6
reo6 / question.md
Last active January 9, 2023 10:47

I'm working on a Looper project using python and jackclient-python library. Keep a tab open for the code.

Expected Behaviour

If you know what is a loop pedal and how it functions, you'll probably get it. A simple looper, without overdubbing. So there's a button for toggling recorder. User makes connections with a patchbay, hits record, starts playing something, hits it again and the recording is done. So the audio is recorded between two hits. That audio should be looped now.

What I did

@reo6
reo6 / gui.py
Last active January 8, 2023 21:04
#!/usr/bin/env python3
"""
This is a GUI for testing the looper.
Will be replaced with Gtk later.
"""
import tkinter as tk
def tk_gui(on_press):
window = tk.Tk()
import pyglet
from pyglet import shapes
import math
import random
SIZE = (500, 600)
TAU = 2 * math.pi
SIDE_NUMBER = random.randint(3, 8)
# https://gist.github.com/aib/2083288c45b68107454ffb03e977423f
@reo6
reo6 / drench.py
Created May 23, 2022 17:14
Drench Game in pyglet - Not completed yet.
import pyglet
import random
import typing
from pyglet.window import key
SIZE = (600, 700)
BOARD_SIZE = 12
COLORS = [