Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PoroCYon
oidos
Commits
c1bb2393
Commit
c1bb2393
authored
Feb 03, 2019
by
Aske Simon Christensen
Browse files
Renamed a camelCase method
parent
182dee18
Changes
1
Hide whitespace changes
Inline
Side-by-side
synth/src/synth.rs
View file @
c1bb2393
...
...
@@ -24,7 +24,7 @@ pub enum MidiCommand {
}
impl
MidiCommand
{
fn
from
D
ata
(
data
:
&
[
u8
;
3
])
->
MidiCommand
{
fn
from
_d
ata
(
data
:
&
[
u8
;
3
])
->
MidiCommand
{
match
data
[
0
]
&
0xF0
{
0x80
=>
MidiCommand
::
NoteOff
{
channel
:
data
[
0
]
&
0x0F
,
key
:
data
[
1
],
velocity
:
data
[
2
]
},
0x90
=>
MidiCommand
::
NoteOn
{
channel
:
data
[
0
]
&
0x0F
,
key
:
data
[
1
],
velocity
:
data
[
2
]
},
...
...
@@ -233,7 +233,7 @@ impl<G: SoundGenerator, S: SynthInfo> Plugin for SynthPlugin<G, S> {
Event
::
Midi
(
MidiEvent
{
delta_frames
,
ref
data
,
..
})
=>
{
self
.events
.push_back
(
TimedMidiCommand
{
time
:
self
.time
+
(
delta_frames
as
usize
),
command
:
MidiCommand
::
from
D
ata
(
data
)
command
:
MidiCommand
::
from
_d
ata
(
data
)
});
}
_
=>
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment