Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / wip- a dll with a some useful functions(including midi)

Author
Message
Three Score
19
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 15th Feb 2005 05:09 Edited at: 15th Feb 2005 07:52
not done yet but after finally finishing the basic midi part i decided to let people see my work
no stringtable yet though so you will need to use call dll
the qsound is a bti messed up(for some reason there is a delay in the time the sound is played)

currently have no name for it so the functions are not custumized yet(like x network plugin-x_function)

so far i dont have a help file btu here is a function list

open_file_dialog(dir$,filter$,title$,flags -returns string
save_file_dialog(dir$,filter$,title$,flags) -returns string
mesgbox(msg$,title$,buttons) -returns string
getsysdir() -returns string
gettmpdir() returns string
getwindir() returns string
FindWindowText(text$) returns dword
CenterWindow() -centers the current window with the desktop
hex2int(hexstring$) returns int

...
dont have itme to post the rest
will eidt when i get time


edit:
-edited 2 times to make more readable


(grr my friggin mouse has a special button on it that goes back and i keep accidentally presisng it so i have doen this 3 times already)
bin2int(binarystring$) as int
removedir(dir$)
set_attr(file$,attribs) -sets file attributes on ntfs
get_attr(file$)
mid_qsound(note,duration,volume,voice,tempo as float) -puts a midi note in the que to be played-does not pause the program
mid_lsound(note,duration,volume,voice,tempo as float) -plays a midi note immediantly and clears the que(pauses the program)
infbox(caption$,info$) creates a infobox with scrollbars and everythign and an ok button(pauses the program)
edit_style(addstyle,removestyle,styletype) as int -for all those gurus at the windows api htis is for you i am not even sure how to use it -returns 1 if success


a few charts from a faq on return values and such


my avatar is working for the first time since free-space went down
http://hck83.tophernet.net (things are startign to look up)

Attachments

Login to view attachments
Mr Underhill
20
Years of Service
User Offline
Joined: 23rd Apr 2003
Location: The Forgotten Worlds...
Posted: 15th Feb 2005 06:48 Edited at: 20th Feb 2005 06:53
This looks very nice so far.
Keep it up!

My name is Underhill...commit it to memory.
"Vee vill drive zhem from zee peer-to-peer sites, vee vill beat zhem vith a stick!" ~Leo Laporte, mocking the RIAA
Three Score
19
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 15th Feb 2005 10:58
so is anyone going to comment

also my C(nto c++) code so far

and i am always welcome to stringtable help

my avatar is working for the first time since free-space went down
http://hck83.tophernet.net (things are startign to look up)

Attachments

Login to view attachments
dj chainz
19
Years of Service
User Offline
Joined: 25th Sep 2004
Location: England
Posted: 20th Feb 2005 06:23
Looks nice. Is there any way you could make a plugin that actually creates a midi file... like you transmit note data etc to it, and it will compile it? Or is that too much?

Anyhow, keep up the good work.

I am the lead programmer at red spark studios
I also have a blog on how to make a game enginehttp://dbgame.blogspot.com
http://www.brazilianhotties.tk
Three Score
19
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 20th Feb 2005 06:50
umm u can do that even in dbp i just provide the raw functions to play midi notes
and yes it is too much cause i am too lazy to learn the whole midi format but fo course u are always welcome to writing your own aligorathym(or however u spell it) in dbp

and also this includes registry functions but they arent workign yet :-(

quit hiting the computer; computers can only do what they are told so we must be telling them to do wrong things
NoteJam
19
Years of Service
User Offline
Joined: 11th Apr 2005
Location:
Posted: 19th Apr 2005 03:24
Sounds like its just what I need. But I did not see any port command in there, or did my tired eyes slide past it? It would be nice to allow the user to pick what midi port they want to send the midi out or in on.

Login to post a reply

Server time is: 2024-04-19 22:10:50
Your offset time is: 2024-04-19 22:10:50