Week of 1/21 - 1/27 daily practice post

piano practice
Keeping track of small practice exercises
Author

Matt Crump

Published

January 24, 2024

Show the code
from diffusers import DiffusionPipeline
from transformers import set_seed
from PIL import Image
import torch
import random
import ssl
import os
ssl._create_default_https_context = ssl._create_unverified_context

#locate library
#model_id = "./stable-diffusion-v1-5"
model_id = "dreamshaper-xl-turbo"

pipeline = DiffusionPipeline.from_pretrained(
    pretrained_model_name_or_path = "../../../../bigFiles/huggingface/dreamshaper-xl-turbo/"
)

pipeline = pipeline.to("mps")

# Recommended if your computer has < 64 GB of RAM
pipeline.enable_attention_slicing("max")

prompt = "musical pattern. music wallpaper. intense music trip. music everywhere."

for s in range(30):
  for n in [5,10]:
    seed = s+21
    num_steps = n+1
    set_seed(seed)
    
    image = pipeline(prompt,height = 1024,width = 1024,num_images_per_prompt = 1,num_inference_steps=num_steps)
    
    image_name = "images/synth_{}_{}.jpeg"
    
    image_save = image.images[0].save(image_name.format(seed,num_steps))

musical pattern. music wallpaper. intense music trip. music everywhere. - Dreamshaper v7

Trying out a single post to record daily practice exercises that I will continue to update throughout a week. It’s 1/24 and I will have to reconstruct what might have happened earlier this week.

1/21

  • did a couple of chord reaction time tests
  • got into the 7b5 chords a little bit, playing them in all keys very slowly

1/22

  • Drilled 7b5 chords a bunch

1/23

  • missed a day really oops
  • played “all of me” a couple times

1/24

Major triads

Went through all of the below in all keys, anti-clockwise through circle of fifths

  • play them once
  • played the triad in right hand, with different bass notes from the triad
  • played the triad up through keyboard through the inversions
  • played the triad down through the inversions
  • played the triad once, on the first inversion
  • played the triad once, on the second inversion

I didn’t make too many mistakes, but I was more rusty at this then I thought I would be. I’m still slow on Db and Ab.

Starting on the different inversions is interesting. When I’m really into a jam, I don’t think about what inversions to play and they just happen (on a good day). But, in this case, I’m not used to deliberately trying to play a specific triad in a specific inversion. Playing the second inversion was hardest for some reason.

1/25

Found a lead sheet for Nate Smith’s Retold. Love this song. Challenging 9/8 rhythm. Messed about with this for a while.

1/26

More retold

1/27

Thinking more about symmetry, scales, chords and the circle of fifths.

  • Started on C.
    • add G and F, the next notes going clock-wise or anti-clockwise
      • This creates Csus, F (add 9), Gsus7 (without the iii or V)
    • add D and Bb
      • scale = C D F G Bb (a 5 note scale)
    • add A and Eb
      • scale = C D Eb F G A Bb (7 note scale) Ends up as Bb major (2 fifths down from C)
    • add E and Ab
      • scale = C D Eb E F G Ab A Bb (9 note scale)
      • messed about with building chords here
      • Chords with C (F Bb Eb Ab) are built off the anti-clockwise circle of fifths
      • Chords with C (G D A E) are built off the clockwise circle