## This will create an empty PTCell (equivalent
## to new("PTCell"):
PTCell(raw(4))
## Use a character representation to create
## a new PTCell object. A cell with note
## B in octave 2, sample number 10 and with
## effect '105':
cell <- PTCell("B-2 0A 105")
data("mod.intro")
## replace PTCell at pattern number 1, track
## number 2, and row number 3:
PTCell(mod.intro, 3, 2, 1) <- cell
Run the code above in your browser using DataLab