Fix break stars
This commit is contained in:
parent
4deb5f416f
commit
372e72c82e
|
@ -323,20 +323,19 @@ class RGT:
|
||||||
n = n.substr(2)
|
n = n.substr(2)
|
||||||
|
|
||||||
match ntype:
|
match ntype:
|
||||||
't': # tap
|
't', 'b': # tap
|
||||||
note_hits.append(Note.NoteTap.new(time, column))
|
note_hits.append(Note.NoteTap.new(time, column, ntype=='b'))
|
||||||
num_taps += 1
|
|
||||||
'b': # break
|
|
||||||
note_hits.append(Note.NoteTap.new(time, column, true))
|
|
||||||
num_taps += 1
|
num_taps += 1
|
||||||
'h': # hold
|
'h': # hold
|
||||||
var duration = float(n) * beats_per_measure
|
var duration = float(n) * beats_per_measure
|
||||||
note_hits.append(Note.NoteHold.new(time, column, duration))
|
note_hits.append(Note.NoteHold.new(time, column, duration))
|
||||||
num_holds += 1
|
num_holds += 1
|
||||||
's': # slide star
|
's', 'x': # slide star
|
||||||
var star = Note.NoteStar.new(time, column)
|
var star = Note.NoteStar.new(time, column, ntype=='z')
|
||||||
note_hits.append(star)
|
note_hits.append(star)
|
||||||
|
num_slides += 1
|
||||||
last_star[column] = star
|
last_star[column] = star
|
||||||
|
if len(n) > 1: # Not all stars have proper slide info
|
||||||
var slide_type = n[0] # hex digit
|
var slide_type = n[0] # hex digit
|
||||||
var slide_id = int(n.substr(1))
|
var slide_id = int(n.substr(1))
|
||||||
if slide_id > 0:
|
if slide_id > 0:
|
||||||
|
@ -344,7 +343,6 @@ class RGT:
|
||||||
var slide = Note.NoteSlide.new(time, column)
|
var slide = Note.NoteSlide.new(time, column)
|
||||||
slide_ids[slide_id] = slide
|
slide_ids[slide_id] = slide
|
||||||
note_nonhits.append(slide)
|
note_nonhits.append(slide)
|
||||||
num_slides += 1
|
|
||||||
'e': # slide end
|
'e': # slide end
|
||||||
var slide_type = n[0] # numeric digit, left as str just in case
|
var slide_type = n[0] # numeric digit, left as str just in case
|
||||||
var slide_id = int(n.substr(1))
|
var slide_id = int(n.substr(1))
|
||||||
|
@ -389,8 +387,8 @@ class RGT:
|
||||||
var note = Note.NoteSlide.new(time, column)
|
var note = Note.NoteSlide.new(time, column)
|
||||||
slide_ids[slide_id] = note
|
slide_ids[slide_id] = note
|
||||||
note_nonhits.append(note)
|
note_nonhits.append(note)
|
||||||
'x': # not sure
|
'_':
|
||||||
pass
|
print_debug('Unknown note type: ', ntype)
|
||||||
|
|
||||||
if len(note_hits) > 1:
|
if len(note_hits) > 1:
|
||||||
for note in note_hits: # Set multihit on each one
|
for note in note_hits: # Set multihit on each one
|
||||||
|
|
Loading…
Reference in New Issue