Favorite text editor for mac?

hi everyone,

What’s your favorite text editor for copy pasting inst. def. codes? I tried with apple’s textedit, and when loading the file on the hapax i get: syntax error line 2

Thanks in advance!

Here is the code:

############# DIGITAKT2 #############

VERSION 1 # Currently, this should only be 1.

DEFINITIONS

Supports all alphanumeric ASCII, and ’ ', ‘_’, ‘-’, ‘+’ - can also be NULL

TRACKNAME Digitakt2 FX

Can be POLY, DRUM, MPE, or NULL

TYPE POLY

Can be A, B, C, D, USBD, USBH, CVGx (x between 1&4), CVx, Gx, or NULL

OUTPORT NULL

Can be x (between 1-16), or NULL – this is ignored if output port is not MIDI

OUTCHAN 15

Can be NONE, ALLACTIVE, A, B, USBH, USBD, CVG, or NULL

ALLACTIVE

Can be x (between 1-16), ALL, or NULL. This definition will be ignored if INPORT is NONE, ALLACTIVE or CVG

INCHAN NULL

DRUMLANES

Syntax: ROW:TRIG:CHAN:NOTENUMBER NAME

ROW must be between 1 and 8

TRIG can be between 0 and 127, or NULL

CHAN can be a number between 1 and 16, Gx, CVx, CVGx (x between 1 and 4), or NULL

NOTENUMBER can be between 0 and 127, or NULL

NAME supports all alphanumeric ASCII, and ’ ', ‘_’, ‘-’, ‘+’ - can also be NULL

Please note this section will be discarded for tracks which are not DRUM tracks

[DRUMLANES]

[/DRUMLANES]

PC

Syntax: NUMBER NAME

number must be either:

- A number (for simple PC)

- Three numbers, delimited by ‘:’, which represent PC:MSB:LSB. You can put ‘NULL’ to not set the MSB/LSB.

PC must be between 1…128

MSB/LSB must be between 0…127

[PC]

[/PC]

CC

Syntax: CC_NUMBER NAME or CC_NUMBER:DEFAULT=xx NAME

DEFAULT_VALUE must be a valid number between 0 and 127

[CC]

SEND FX PARAMETERS

21 Dly Time

22 Pingpong On/Off

23 Dly Wdth

24 Dly Feed

25 Dly Hipas

26 Dly Lopas

27 Dly RvbSnd

28 Dly Vol

29 Rvb Predly

30 Rvb Decay

31 Rvb Freq

89 Rvb Shelv

90 Rvb Hipass

91 Rvb Lopass

92 Rvb Vol

16 Chrs Depth

9 Chrs Speed

70 Chrs HiPass

71 Chrs Wdth

12 Chrs DlySnd

13 Chrs RvbSnd

14 Chrs Vol

MIXER PARAMETERS

111 Cmp Thshld

112 Cmp Attk

113 Cmp Release

114 Cmp Gain

119 Cmp Pttn Vol

115 Cmp Ratio

116 Cmp Sidechain

117 Cmp SideFlt

118 Cmp Mix

MISC PARAMETERS

110 Pttn Mute

19 Smpl Slot

24 Smpl Bank

17 Mst Ovrdrv

[/CC]

ASSIGN

Syntax: POT_NUMBER TYPE:VALUE or POT_NUMBER TYPE:VALUE DEFAULT=DEFAULT_VALUE

POT_NUMBER must be between 1 and 8

TYPE can be “CC”, “PB” (pitchbend), “AT” (aftertouch), “CV”, “NRPN”, or “NULL” (this won’t assign the pot).

Non explicitly-defined pots will be considered “NULL”

VALUE VALIDATION

For CC: Value must be a valid number between 0 and 119

For PB and AT, any text after the TYPE will be ignored

For CV, value must be between 1 and 4

For NRPN, value must be MSB:LSB:DEPTH, with both lsb & msb bebtween 0 and 127, and DEPTH being either 7 or 14

DEFAULT VALUE

For CC: DEFAULT_VALUE must be a valid number between 0 and 127

For PB: DEFAULT_VALUE must be a valid number between 0 and 16383

For NRPN: DEFAULT_VALUE must be a valid number, either between 0 and 127 (for 7 bit NRPNs) or between 0 and 16383 (for 14bit NRPNs)

For CV: DEFAULT_VALUE must be either a valid number between 0 and 65535, or a voltage between -5V and 5V, e.g. “-4.25V” or “1.7V”

Please note default value will be ignored for PB and AT messages.

[ASSIGN]

[/ASSIGN]

AUTOMATION

Syntax: TYPE:VALUE

TYPE can be “CC”, “PB” (pitchbend), “AT” (aftertouch), “CV”, or “NRPN”

VALUE VALIDATION

For CC: Value must be a valid number between 0 and 119

For PB and AT, any text after the TYPE will be ignored

For CV, value must be between 1 and 4

For NRPN, value must be MSB:LSB:DEPTH, with both lsb & msb bebtween 0 and 127, and DEPTH being either 7 or 14

[AUTOMATION]

[/AUTOMATION]

This section will be readable from Hapax.

[COMMENT]

Digitakt2 FX

[/COMMENT]

PS: it actually does not look like the way it got posted above.

Not sure why you are getting the syntax error but I use Mac textedit for instrument definitions without any issue.

The mac text editor save as rich text (rtf) by default
You need to change the default to plain text (txt)
Once that is done its perfect

1 Like

Alright thanks! I will try it and update the topic here :slight_smile:

vscode

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.