sfizz icon indicating copy to clipboard operation
sfizz copied to clipboard

Allowing = for #define

Open kinwie opened this issue 3 years ago • 1 comments

This is working in sforzando and Cakewalk DropZone, DP and RP

#define $rootkey pitch_keycenter=64
#define $lokey lokey=64
#define $hikey hikey=64

<region>
sample=snare.wav
loop_mode=one_shot
$rootkey
$lokey
$hikey

kinwie avatar May 23 '21 12:05 kinwie

There are some worse cases documented in the parser issue #225, on which this must be a subset probably. The conclusion which I come to, it's that the # elements of SFZ and $ variables should be be preprocessed in a first step. Then one must take special care to preserve the line and column positions for diagnostics.

jpcima avatar May 23 '21 13:05 jpcima