ModusCreateOrg / trackerEditor

Create 8-bit tracker music for ATMLib2
http://labs.moduscreate.com/trackerEditor/
MIT License
0 stars 3 forks source link

ATM Song produces ATM_CMD_M_NOISE_RETRIG_ON command #22

Closed jaygarcia closed 6 years ago

jaygarcia commented 6 years ago

The attached auto-generated ATM file causes the following type of exception:


In file included from sketch/Sound.cpp:12:0:
sketch/src/ATMLib2/atm_cmd_constants.h:166:39: error: 'ATM_CMD_P_NOISE_RETRIG_ON' was not declared in this scope
 #define ATM_CMD_M_NOISE_RETRIG_ON(p1) ATM_CMD_P_NOISE_RETRIG_ON, (p1)
                                       ^
sketch/sound/evade2_00_intro.h:15:73: note: in definition of macro 'DEFINE_PATTERN'
 #define DEFINE_PATTERN(pattern_id, values) const uint8_t pattern_id[] = values;
                                                                         ^
sketch/sound/evade2_04_stage_2_boss.h:64:5: note: in expansion of macro 'ATM_CMD_M_NOISE_RETRIG_ON'
     ATM_CMD_M_NOISE_RETRIG_ON(4), \
     ^
sketch/sound/evade2_04_stage_2_boss.h:71:55: note: in expansion of macro 'evade2_04_stage_2_boss_pattern5_data'
 DEFINE_PATTERN(evade2_04_stage_2_boss_pattern5_array, evade2_04_stage_2_boss_pattern5_data);
                                                       ^
In file included from sketch/src/ATMLib2/atm_synth.h:6:0,
                 from sketch/src/ATMLib2/ATMlib.h:5,
                 from sketch/Sound.cpp:8:
sketch/src/ATMLib2/atm_cmd_constants.h:166:39: error: 'ATM_CMD_P_NOISE_RETRIG_ON' was not declared in this scope
 #define ATM_CMD_M_NOISE_RETRIG_ON(p1) ATM_CMD_P_NOISE_RETRIG_ON, (p1)
                                       ^
sketch/sound/evade2_04_stage_2_boss.h:64:5: note: in expansion of macro 'ATM_CMD_M_NOISE_RETRIG_ON'
     ATM_CMD_M_NOISE_RETRIG_ON(4), \
     ^
sketch/sound/evade2_04_stage_2_boss.h:251:38: note: in expansion of macro 'evade2_04_stage_2_boss_pattern5_data'
   .evade2_04_stage_2_boss_pattern5 = evade2_04_stage_2_boss_pattern5_data,

evade2_04_stage2_boss.mid.atm.txt

dxxb commented 6 years ago

Fixed by https://github.com/moduscreate/ATMlib/commit/660e6e89004fc05dc77ce62a5c302883c8598751

jaygarcia commented 6 years ago

thank you @dxxb