Staccato Drum set

OLYMPUS DIGITAL CAMERA

OLYMPUS DIGITAL CAMERA

OLYMPUS DIGITAL CAMERA

OLYMPUS DIGITAL CAMERA

OLYMPUS DIGITAL CAMERA

OLYMPUS DIGITAL CAMERA

OLYMPUS DIGITAL CAMERA

OLYMPUS DIGITAL CAMERA

OLYMPUS DIGITAL CAMERA

OLYMPUS DIGITAL CAMERA

OLYMPUS DIGITAL CAMERA

OLYMPUS DIGITAL CAMERA

OLYMPUS DIGITAL CAMERA

OLYMPUS DIGITAL CAMERA

OLYMPUS DIGITAL CAMERA

OLYMPUS DIGITAL CAMERA

OLYMPUS DIGITAL CAMERA

OLYMPUS DIGITAL CAMERA

neopixel party lights

import board
import neopixel
import time

# Define the number of pixels in the strip and the pin it is connected to
num_pixels = 60
pixels = neopixel.NeoPixel(board.D18, num_pixels)

# Define the party LED sequence
sequence = [
(255, 0, 0), # Red
(0, 255, 0), # Green
(0, 0, 255), # Blue
(255, 255, 0), # Yellow
(255, 0, 255), # Purple
(0, 255, 255) # Cyan
]

while True:
for color in sequence:
for i in range(num_pixels):
pixels[i] = color
pixels.show()
time.sleep(0.05)

Python: move a fader in protools using Avid pro tools SDK

import pro_tools_sdk

# Connect to Pro Tools
session = pro_tools_sdk.Session()

# Get a reference to the fader you want to control
fader = session.get_fader("Fader 1")

# Set the fader's level to -12 dB
fader.set_level(-12)

# Close the Pro Tools session
session.close()

  • Pan: You can use the set_pan() method to control the pan position of a channel.
    Mute: You can use the set_mute() method to mute or unmute a channel.
    Solo: You can use the set_solo() method to solo or unsolo a channel.
    Input or output routing: You can use the set_input_routing() and set_output_routing() methods to control the input and output routing of a channel.
    Inserts: You can use the get_inserts() method to get a list of inserts on a channel, and then use the enable() and set_parameter() methods to control the settings of each insert.
    Automation: You can use the get_automation_parameters() method to get a list of automation parameters on a channel, and then use the enable() and set_value() methods to control the settings of each automation parameter.

  • CSV with a time and label to the reaper time line markers

    python script that sends a CSV with a time (in seconds) and labels to the reaper API and converts them into timeline markers

    import csv
    from reaper_python import *

    # Open the CSV file
    with open('markers.csv', 'r') as csvfile:
    # Read the CSV file
    reader = csv.reader(csvfile)
    next(reader) # skip the header
    # Iterate through the rows
    for row in reader:
    time = float(row[0])
    label = row[1]
    # Convert the time to a Reaper time format
    reaper_time = int(time * 1000)
    # Create a new marker at the specified time
    RPR_AddProjectMarker2(0, False, reaper_time, 0, label, -1, 0)