Skip to content

Commit b675431

Browse files
committed
修各种音高问题
框架跟进
1 parent 6d8b4da commit b675431

File tree

3 files changed

+26
-27
lines changed

3 files changed

+26
-27
lines changed

assets/gamefunc.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ function playSample(...)
6969
local len=l[i][3] or 420
7070
local rel=l[i][4] or 620
7171
local event=FMOD.effect(inst,{
72-
tune=note>=0 and note-26 or nil,
72+
tune=note>=0 and note-50 or nil,
7373
pitch=note<0 and -note or nil,
7474
volume=vol,
75-
param={'release',rel*1.0594630943592953^(note-26)},
75+
param={'release',rel*1.0594630943592953^(note-50)},
7676
})
7777
if not event then return end
7878
TASK.new(function()
@@ -208,10 +208,10 @@ gameSoundFunc.combo=setmetatable({__register=true,
208208
else
209209
playSample('complex',{'A4',.626-.01*combo,430-10*combo})
210210
local phase=(combo-21)%12
211-
playSample('square',{40+phase,1-((11-phase)/12)^2,400-10*combo,700+20*combo}) -- E4+
212-
playSample('square',{45+phase,1-((11-phase)/12)^2,400-10*combo,700+20*combo}) -- A4+
213-
playSample('square',{52+phase,1-(phase/12)^2,400-10*combo,700+20*combo}) -- E5+
214-
playSample('square',{57+phase,1-(phase/12)^2,400-10*combo,700+20*combo}) -- A5+
211+
playSample('square',{16+phase,1-((11-phase)/12)^2,400-10*combo,700+20*combo}) -- E4+
212+
playSample('square',{21+phase,1-((11-phase)/12)^2,400-10*combo,700+20*combo}) -- A4+
213+
playSample('square',{28+phase,1-(phase/12)^2,400-10*combo,700+20*combo}) -- E5+
214+
playSample('square',{33+phase,1-(phase/12)^2,400-10*combo,700+20*combo}) -- A5+
215215
end
216216
end,__metatable=true})
217217
gameSoundFunc.chain=gameSoundFunc.combo

assets/scene/lang_out.lua

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -58,29 +58,29 @@ local dialModeData={
5858
['#']={text='#',notes={{-941/220,1,160,62},{-1477/220,1,160,62}}},
5959
},
6060
chord={
61-
['1']={text='D' ,notes={{'F#4',1,355,2600},{'A4',1,355,2600},{'D5',1,355,2600}}},
62-
['2']={text='C' ,notes={{'G4',1,355,2600},{'C5',1,355,2600},{'E5',1,355,2600}}},
63-
['3']={text='A' ,notes={{'A4',1,355,2600},{'C#5',1,355,2600},{'E5',1,355,2600}}},
64-
['4']={text='F' ,notes={{'F4',1,355,2600},{'A4',1,355,2600},{'C5',1,355,2600}}},
65-
['5']={text='G' ,notes={{'G4',1,355,2600},{'B4',1,355,2600},{'D5',1,355,2600}}},
66-
['6']={text='Am',notes={{'A4',1,355,2600},{'C5',1,355,2600},{'E5',1,355,2600}}},
67-
['7']={text='Dm',notes={{'F4',1,355,2600},{'A4',1,355,2600},{'D5',1,355,2600}}},
68-
['8']={text='Em',notes={{'G4',1,355,2600},{'B4',1,355,2600},{'E5',1,355,2600}}},
69-
['9']={text='E' ,notes={{'G#4',1,355,2600},{'B4',1,355,2600},{'E5',1,355,2600}}},
61+
['1']={text='D' ,notes={{'F#3',1,355,2600},{'A3',1,355,2600},{'D4',1,355,2600}}},
62+
['2']={text='C' ,notes={{'G3',1,355,2600},{'C4',1,355,2600},{'E4',1,355,2600}}},
63+
['3']={text='A' ,notes={{'A3',1,355,2600},{'C#4',1,355,2600},{'E4',1,355,2600}}},
64+
['4']={text='F' ,notes={{'F3',1,355,2600},{'A3',1,355,2600},{'C4',1,355,2600}}},
65+
['5']={text='G' ,notes={{'G3',1,355,2600},{'B3',1,355,2600},{'D4',1,355,2600}}},
66+
['6']={text='Am',notes={{'A3',1,355,2600},{'C4',1,355,2600},{'E4',1,355,2600}}},
67+
['7']={text='Dm',notes={{'F3',1,355,2600},{'A3',1,355,2600},{'D4',1,355,2600}}},
68+
['8']={text='Em',notes={{'G3',1,355,2600},{'B3',1,355,2600},{'E4',1,355,2600}}},
69+
['9']={text='E' ,notes={{'G#3',1,355,2600},{'B3',1,355,2600},{'E4',1,355,2600}}},
7070
['*']={text='Inst.'},
7171
['0']={text='8va'},
7272
['#']={text='Notes'},
7373
},
7474
simple={
75-
['1']={text='F4',notes={{'F4',1,260,1260}}},
76-
['2']={text='G4',notes={{'G4',1,260,1260}}},
77-
['3']={text='A4',notes={{'A4',1,260,1260}}},
78-
['4']={text='B4',notes={{'B4',1,260,1260}}},
79-
['5']={text='C5',notes={{'C5',1,260,1260}}},
80-
['6']={text='D5',notes={{'D5',1,260,1260}}},
81-
['7']={text='E5',notes={{'E5',1,260,1260}}},
82-
['8']={text='F5',notes={{'F5',1,260,1260}}},
83-
['9']={text='G5',notes={{'G5',1,260,1260}}},
75+
['1']={text='F3',notes={{'F3',1,260,1260}}},
76+
['2']={text='G3',notes={{'G3',1,260,1260}}},
77+
['3']={text='A3',notes={{'A3',1,260,1260}}},
78+
['4']={text='B3',notes={{'B3',1,260,1260}}},
79+
['5']={text='C4',notes={{'C4',1,260,1260}}},
80+
['6']={text='D4',notes={{'D4',1,260,1260}}},
81+
['7']={text='E4',notes={{'E4',1,260,1260}}},
82+
['8']={text='F4',notes={{'F4',1,260,1260}}},
83+
['9']={text='G4',notes={{'G4',1,260,1260}}},
8484
['*']={text='Inst.'},
8585
['0']={text='8va'},
8686
['#']={text='Chords'},
@@ -101,7 +101,6 @@ local codes={
101101
'7126',
102102
'63232',
103103
'6323',
104-
'123456',
105104
'1155665',
106105
'1235789',
107106
'22884646',
@@ -144,7 +143,7 @@ function scene.load()
144143
rec,recTimer='',2.6
145144
if SCN.stackChange>0 then
146145
dialMode,transTimer=false,PROGRESS.getSecret('dial_enter') and 6.26 or 26
147-
mode,instrument,octave_plus='normal','organ',false
146+
mode,instrument,octave_plus='normal','complex',false
148147
end
149148
scene.widgetList.musicroom:setVisible(mode~='normal' and mode~='dial')
150149
BG.set('none')

0 commit comments

Comments
 (0)