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.

DarkBASIC Professional Discussion / idea for improvements

Author
Message
Freddix
AGK Developer
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 22nd Sep 2002 04:32
I'd like to see a group of functions that should allow to play single midi instruments , something like :

GENERAL :
check for midi device()
select midi device(MIDI_DEVICE_ID)

SINGLE INSTRUMENT :
set midi instrument CHANNEL,MIDI_INSTRUMENT
set midi channel volume CHANNEL,VOL
set midi channel detune CHANNEL,DET
set midi channel effect CHANNEL,EFFECT
play midi CHANNEL,FREQUENCY,DURATION
play midi CHANNEL,FREQUENCY,DURATION,VOLUME
play midi CHANNEL,FREQUENCY,DURATION,VOLUME,DETUNE
stop midi CHANNEL
stop sound on next event on CHANNEL
stop sound on next event off CHANNEL

MUSIC :
load midi sound FILENAME$,MUSIC_NUMBER
delete midi sound MUSIC_NUMBER
play midi sound MUSIC_NUMBER
stop midi sound
general midi volume VOL

here is the style
( it could help make a tracker style midi song editor )
and midi player
SamotH
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Greece
Posted: 22nd Sep 2002 13:24
That is a great idea, but i would appreciate a save command too... It's very useful. I don't think DBpro will have such things from the beginning, but i feel they will be added sometime in the future

Freddix
AGK Developer
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 22nd Sep 2002 16:57
Yes there are also others commands that could be important :

EXIST=midi exist(MUSIC_NUMBER)
MIDI_INSTRUMENT=midi instrument(CHANNEL)
CHANNEL_VOLUME=midi volume(CHANNEL)
CHANNEL_DETUNE=midi detune(CHANNEL)
CHANNEL_EFFECT=midi effect(CHANNEL)

and I'm sure we can foun others usefuls command for MIDI ENVIRONMENT set ofn commands.
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 23rd Sep 2002 02:40
Or even better:

CREATE MIDI MUSIC SCORE(BestEver,HappyMood,"score.mid")

what is a signature?

Login to post a reply

Server time is: 2024-04-24 06:05:00
Your offset time is: 2024-04-24 06:05:00