26 May '13 - 08:05
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Un4seen Developments Forum
>
Developments
>
BASS
> Topic:
BASS_MIDI_StreamEvent: What is DWORD HIBYTE LOBYTE
Pages: [
1
]
« previous
|
next »
Reply
|
Print
Author
Topic: BASS_MIDI_StreamEvent: What is DWORD HIBYTE LOBYTE (Read 450 times)
Bellhop
Posts: 30
BASS_MIDI_StreamEvent: What is DWORD HIBYTE LOBYTE
«
on:
27 Feb '12 - 15:29 »
Quote
For BASS_MIDI_StreamEvent MIDI_EVENT_NOTE, param is given as LOBYTE and HIBYTE. Could you give examples of what this DWORD should look like? I'm working in vb.NET. I can make this DWORD whatever it needs to be, but I have to know what that is. For example, if I have key number = 24 and velocity = 127, what should DWORD look like?
Thanks.
You may have already addressed this question on the forum, and I'm sorry to trouble you if you have, but searching the forum can be a frustrating task and I'm not getting anywhere.
Logged
radio42
Posts: 4012
Re: BASS_MIDI_StreamEvent: What is DWORD HIBYTE LOBYTE
«
Reply #1 on:
27 Feb '12 - 16:43 »
Quote
Just take a look to the "BASSMIDIEvent" documentation:
MIDI_EVENT_NOTE:
param : LOBYTE = key number (0-127), HIBYTE = velocity (0-127).
Logged
Ian @ un4seen
Administrator
Posts: 15276
Re: BASS_MIDI_StreamEvent: What is DWORD HIBYTE LOBYTE
«
Reply #2 on:
27 Feb '12 - 17:03 »
Quote
"LOBYTE" is the lowest byte and "HIBYTE" is the next lowest byte, ie. together they make a 16-bit value. The MAKEWORD macro ("MakeWord" in BASS.Net) can be used to build the MIDI_EVENT_NOTE event parameter, like this: MAKEWORD(note, velocity)
Logged
Bellhop
Posts: 30
Re: BASS_MIDI_StreamEvent: What is DWORD HIBYTE LOBYTE
«
Reply #3 on:
27 Feb '12 - 19:19 »
Quote
Thanks, Ian! It works now. I was assuming a 32 bit word. By the way, the compiler tells me that "MakeWord" is undeclared.
Logged
radio42
Posts: 4012
Re: BASS_MIDI_StreamEvent: What is DWORD HIBYTE LOBYTE
«
Reply #4 on:
28 Feb '12 - 08:37 »
Quote
In Bass.Net "MakeWord" is a static method contained in the "Un4seen.Bass.Utils" class.
Logged
Bellhop
Posts: 30
Re: BASS_MIDI_StreamEvent: What is DWORD HIBYTE LOBYTE
«
Reply #5 on:
28 Feb '12 - 13:57 »
Quote
Thank you "radio42" for the clarification!
Logged
Pages: [
1
]
Reply
|
Print
Un4seen Developments Forum
>
Developments
>
BASS
> Topic:
BASS_MIDI_StreamEvent: What is DWORD HIBYTE LOBYTE
« previous
|
next »
Jump to:
Please select a destination:
-----------------------------
Developments
-----------------------------
=> BASS
=> XMPlay
=> MO3
-----------------------------
Off Topic
-----------------------------
=> General Discussion
Loading...