Skip to content

Instantly share code, notes, and snippets.

View QuantumStar's full-sized avatar
💭
Looking for work, updating my GitHub repos and personal page :)

QuantumStar

💭
Looking for work, updating my GitHub repos and personal page :)
View GitHub Profile
@oskay
oskay / pybadge.py
Created November 4, 2018 05:26
A python program to generate a basic program that can display your name on your 2018 supercon badge.
#!/usr/bin/env python
# -*- encoding: utf-8 -#-
'''
Process ASCII art and generate basic program to draw it as
ascii art for hackaday 2018 superconference badge
Exports a basic program that you can upload to the badge.
License: Public domain!!!
@darrylsloan
darrylsloan / music_sequencer.py
Last active October 14, 2020 00:56
Music sequencer for the BBC micro:bit
# MUSIC SEQUENCER by Darryl Sloan (30/11/2017)
# Step 1: press A to toggle the first note of the desired scale, then B to select.
# Step 2: press A to toggle the time signature (3/4, 4/4 or 5/4), then B to select.
# Step 3: press A to toggle the desired number of patterns (1 to 4), then B to select.
# Press A to move the range of notes selected. Press B to randomise the selected notes.
# The direction of tilt determines which scale the random notes conform to:
# Left = minor; right = major; forward = minor pentatonic; backward = major pentatonic.
# While holding A during the first note of the sequence, tilting up/down increases/decreases the tempo,
# tilting left/right selects a lower/higher octave.