File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,25 @@ _ipatch_unit_sf2_init(void)
195
195
(IPATCH_UNIT_TYPE_PERCENT , IPATCH_UNIT_TYPE_TENTH_PERCENT ,
196
196
ipatch_unit_percent_to_tenth_percent_value );
197
197
198
+ /* Register converter for IPATCH_UNIT_TYPE_SEMITONES and
199
+ IPATCH_UNIT_TYPE_CENTS. These mapping must be registered
200
+ in the unit domain IPATCH_UNIT_CLASS_USER.
201
+ */
202
+ /* semitones => semitones */
203
+ ipatch_unit_class_register_map (IPATCH_UNIT_CLASS_USER ,
204
+ IPATCH_UNIT_TYPE_SEMITONES ,
205
+ IPATCH_UNIT_TYPE_SEMITONES );
206
+ ipatch_unit_conversion_register
207
+ (IPATCH_UNIT_TYPE_SEMITONES , IPATCH_UNIT_TYPE_SEMITONES ,
208
+ NULL );
209
+
210
+ /* Cents => Cents */
211
+ ipatch_unit_class_register_map (IPATCH_UNIT_CLASS_USER ,
212
+ IPATCH_UNIT_TYPE_CENTS ,
213
+ IPATCH_UNIT_TYPE_CENTS );
214
+ ipatch_unit_conversion_register
215
+ (IPATCH_UNIT_TYPE_CENTS , IPATCH_UNIT_TYPE_CENTS ,
216
+ NULL );
198
217
199
218
ipatch_unit_class_register_map (IPATCH_UNIT_CLASS_USER ,
200
219
IPATCH_UNIT_TYPE_SF2_ABS_PITCH ,
You can’t perform that action at this time.
0 commit comments