- changed status to resolved
deep_equal operator doesn't exist in 3.4 (and is not needed at all)
Issue #73
resolved
I made a patch but couldn’t open a pull request (maybe it's not enabled on this repo)?
The deep_equal operator is not required. Since this is an array == works just fine. See my code below.
Great project by the way! It worked like a champ and your documentation is great for English speakers. I will definitely be making a donation when I get the next game out.
# deep_equalが成功しないので、一端Arrayにしておく
var event_data:Array = Array( event_args.data )
match event_args.manifacture_id:
SMF.manufacture_id_universal_nopn_realtime_sys_ex:
#if deep_equal( event_data, [0x7f,0x09,0x01,0xf7] ):
if event_data == [0x7f,0x09,0x01,0xf7]:
self.sys_ex.gm_system_on = true
self.emit_signal( "appeared_gm_system_on" )
self._process_track_sys_ex_reset_all_channels( )
SMF.manufacture_id_roland_corporation:
#if deep_equal( event_data, [-1,0x42,0x12,0x40,0x00,0x7f,0x00,0x41,0xf7] ):
if event_data == [-1,0x42,0x12,0x40,0x00,0x7f,0x00,0x41,0xf7]:
self.sys_ex.gs_reset = true
self.emit_signal( "appeared_gs_reset" )
self._process_track_sys_ex_reset_all_channels( )
SMF.manufacture_id_yamaha_corporation:
#if deep_equal( event_data, [-1,0x4c,0x00,0x00,0x7E,0x00,0xf7] ):
if event_data == [-1,0x4c,0x00,0x00,0x7E,0x00,0xf7]:
self.sys_ex.xg_system_on = true
self.emit_signal( "appeared_xg_system_on" )
self._process_track_sys_ex_reset_all_channels( )
Comments (1)
-
repo owner - Log in to comment
Thanks for report. I fixed at c472ba773d6277076e844446593257ee2842c3ff.
I don’t disabled pull requests for this repo, but I will check repo settings.