This is a custom "play sequence" block. Click "see inside" to play with the block. 1. Enter the quality of the scale you'd like to use (major, minor, harmminor, blues, or pentatonic) 2. Enter the sequence of pitches you'd like using the number 1-9 and the hyphen character [-] as a rest. 3. Enter the root pitch as the first number (60 = middle C). Enter a note duration you'd like for each note in your sequence (8 = 4. 8th notes, 16 = 16th notes, 4 = quarter notes, 2 = half notes, etc.) The sequence value "1" is equal to the root pitch that you set. To get this block to work, the program creates a list called "live sequence" and converts the text of the sequence string into the "live sequence" list. The program then takes each item in the "live sequence" list and adds it to an offset in the chosen scale list. It then adds the value of the specified root pitch and then plays that note for you to hear. Click "see inside" to see if you can figure out how it works! Do you have an idea for a scale that's not included in this project? Create a new list, implement it and share it with us!
This is a little algorithmic music composition I made using alexruthmann's play sequence block. It generates a random sequence of 8 notes or rests, then plays it in major, minor, shifted down, and half tempo (all using features of alex's block!). I also modified the block definition to add graphical notation, so you can see what it is playing. If you change the length slider, it will change the length of the note sequence, but only once it generates a new one (after playing the current one).