n = [:d, :g,:g,:a,:g,:f, :e,:e,:e, :g,:g,:a,:g,:f] #notes
d = [1, 1,0.5,0.5,0.5,0.5, 1,1,1, 1,0.5,0.5,0.5,0.5] #duration
now I want to transpose this part [:e,:e,:e] to [:f,:f:f] inside the array n.
This is what I mean:
n = [:d, :g,:g,:a,:g,:f, :e,:e,:e, :g,:g,:a,:g,:f , (:e,:e,:e) + 1] #notes
d = [1, 1,0.5,0.5,0.5,0.5, 1,1,1, 1,0.5,0.5,0.5,0.5, 1,1,1] #duration
What is the correct syntax for this.