10.07.2015 Views

Opcode PatchTalk User Guide - House of Synth

Opcode PatchTalk User Guide - House of Synth

Opcode PatchTalk User Guide - House of Synth

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Strings/ArraysYou can refer to a portion <strong>of</strong> a variable’s contents by typing a range.The range is specified by two numbers in square brackets separatedby a comma (“[<strong>of</strong>fset, length]”) after the variable’s name. The firstvalue is the <strong>of</strong>fset in bytes into the variable. The second is the number<strong>of</strong> bytes to use. You can omit length and it will default to one byte.You can also replace length with “to end” or “end” and the rest <strong>of</strong> thevariable will be used.Some examples <strong>of</strong> Strings and Arrays include:Put “Johnson” into FullName put a string into a newvariablePut FullName[0,4] intoput “John” into anotherShortNamenew variablePut FullName[0] into Initial just the first character:‘J’Put FullName[4,3] into AWord put “son” into another newvariablePut FullName[4,to end] into same thingAWordPut “woo” into AWord[1] change middle characterto “woo”Put “ed” after AWord add “ed”Put “ny” into FullName[4,to change ending; now isend]“Johnny”Put FullName “ ” AWord into “Johnny Swooned”TextPut empty into AnEmptyArray now you can “put...after”with this arrayStrings are characters enclosed in double quotes, such as “Johnson”above. The following characters have special meaning in an ASCIIstring:¬ (Option-L) Continues the string on the next line(all characters to the end <strong>of</strong> the lineincluding the next Return are ignored).Note that typing Option-Return willenter this character.\ (backslash) The escape character. It removes specialmeaning from some characters and addsmeaning to others. The following charactersare given special meaning whenfollowing the escape character. Anycharacters not listed here are insertedliterally (are given no special meaning)when following the backslash.r or n Inserts a Return character into the text(Return) Same as r or n, but also inserts a newline in the scriptt (Tab) Inserts a Tab character into the string(the Tab key may also be pressed)“ (double quote) Terminates the string<strong>Opcode</strong> Publication 1950906 - 23 - <strong>PatchTalk</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!