Play note length 1/4- 1/8- 1/16 with midi

Everything else that doesn't fall into one of the other PB categories.
Cor
Enthusiast
Enthusiast
Posts: 124
Joined: Fri Apr 25, 2003 7:52 pm
Location: Netherlands
Contact:

Play note length 1/4- 1/8- 1/16 with midi

Post by Cor »

How to play note length 1/4- 1/8- 1/16 with midi without using the delay function

Is there a standard control to play e.g. 1/8 note

I'm now using

Code: Select all

PlayNote(#Channel4,$40,90)

Delay (200)
StopNote(#Channel2,$39)
But this will make my timing fail if e.g. I want to play 80 bpm
Cor de Visser

Registered PureBasic user

Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com
User avatar
einander
Enthusiast
Enthusiast
Posts: 744
Joined: Thu Jun 26, 2003 2:09 am
Location: Spain (Galicia)

Post by einander »

How to play note length 1/4- 1/8- 1/16 with midi without using the delay function
Cor:
I use Delay with no trouble.

Try: Delay (60000/BPM)
BPM=Beats per minute
Beats=quarter note

Example:
For 80 quarter notes in 1 minute: Delay(60000/80)
Cor
Enthusiast
Enthusiast
Posts: 124
Joined: Fri Apr 25, 2003 7:52 pm
Location: Netherlands
Contact:

Post by Cor »

Thanks :D
Cor de Visser

Registered PureBasic user

Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com
Post Reply