Shift a note pattern up an octave?

Hi,
So I've written a pattern of notes and let's say I want to quickly shift the entire pattern up or down an octave, how would I do that?

    d7 $ slow 9 $ note " [[ds0,ds1,e2] ~ [ds0,ds1,as2] ~ ]*4 [[e0,e1,fs2] ~ [e0,e1,b2] ~ ]*4 [[fs0,fs1,fs2] ~ [fs0,fs1,b2] ~ ]*2 [[gs0,gs1,gs2] ~ [gs0,gs1,b2] ~ ]*2 [[ds0,ds1,e2] ~ [ds0,ds1,as2] ~ ]*4 [[e0,e1,fs2] ~ [e0,e1,b2] ~ ]*4 [[fs0,fs1,fs2] ~ [fs0,fs1,b2] ~ ] [[fs0,fs1,fs2] ~ [fs0,fs1,ds3] ~ ] [[gs0,gs1,gs2] ~ [gs0,gs1,ds3] ~ ]*2 [[ds0,ds1,gs2] ~ [ds0,ds1,ds3] ~ ]*4 [[e0,e1,fs2] ~ [e0,e1,b2] ~ ]*4 [[fs0,fs1,as2] ~ [fs0,fs1,b2] ~ ]*2 [[gs0,gs1,as2] ~ [gs0,gs1,b2] ~ ]*2" # s "Decepticon" # crush "< 16 14 10 >" # room 0.3 # orbit 3

Is there something I could add before the "$ note" command like "$ up 12" for 12 semitones or something like that?

My favorite way to do this is by actually enclosing the note pattern in parenthesis and then adding 12 (or any note displacement amount) to the end of that pattern, like so...

d7 
  $ slow 9
  $ note ("[[ds0,ds1,e2] ~ [ds0,ds1,as2] ~ ]*4 [[e0,e1,fs2] ~ [e0,e1,b2] ~ ]*4 [[fs0,fs1,fs2] ~ [fs0,fs1,b2] ~ ]*2 [[gs0,gs1,gs2] ~ [gs0,gs1,b2] ~ ]*2 [[ds0,ds1,e2] ~ [ds0,ds1,as2] ~ ]*4 [[e0,e1,fs2] ~ [e0,e1,b2] ~ ]*4 [[fs0,fs1,fs2] ~ [fs0,fs1,b2] ~ ] [[fs0,fs1,fs2] ~ [fs0,fs1,ds3] ~ ] [[gs0,gs1,gs2] ~ [gs0,gs1,ds3] ~ ]*2 [[ds0,ds1,gs2] ~ [ds0,ds1,ds3] ~ ]*4 [[e0,e1,fs2] ~ [e0,e1,b2] ~ ]*4 [[fs0,fs1,as2] ~ [fs0,fs1,b2] ~ ]*2 [[gs0,gs1,as2] ~ [gs0,gs1,b2] ~ ]*2"
          |+ 12) -- this is what you want to add to the code, as well as enclosing the pattern in parenthesis so that it is all passed as 1 input to note
    # s "Decepticon"
    # crush "< 16 14 10 >"
    # room 0.3
    # orbit 3

you can also pattern the note offset as well if you want.

This is brilliant, thank you!

Also you can do:

note pat
# s "arpy" 
|+ up 12

Which I think is synonymous with:

note pat
# s "arpy" 
|+ note 12

Less flexible (and more characters to type) :

note pat
# s "arpy" 
# octave 6
1 Like

i like octave, although it does get messy sometimes between samples and synths. you are expecting a c6 for example but you sample was already pitched 1 octave up so you get a c7 that's harsh af. but still, i like it. i have it abbreviated as oc