English
Source / code snippets

Play Midi Schlagzeug Sound

 

Jörg
Sellmeyer
after I understands have, that the whole Control not horizontal, separate Mouse and Sprite functions, was is not any more so heavy:
there it under older Profanversionen well not runs, have so did i The exe-File appended.
Proc PlayBassDrum

    Parameters Rhythmus&,bit%
    Case TestBit(Rhythmus&,bit%):play 0;0;0;36,0,0

ENDPROC

Proc PlaySnareDrum

    Parameters Rhythmus&,bit%
    Case TestBit(Rhythmus&,bit%):play 0;0;0;41,0,0

ENDPROC

Proc PlayHiHat

    Parameters Rhythmus&,bit%
    Case TestBit(Rhythmus&,bit%):play 0;0;0;43,0,0

ENDPROC

Window Title "Little Drummer"
Cls
Randomize
Declare Puls%
Puls% = 16
here comes now one plainer skirt-rhythm with leichtem Shuffle-Feeling and eingestreuten casually HiHat-Variationen
Print "HiHat 1010101010101010"
Print "Snare 1010101010101010"
Print "Bass  1010101010101010"

While 1

    WhileLoop Puls%

        Locate 5,&Loop + 5
        Print " |"
        PlayHiHat(Val("%0" + Str $(Rnd(2)) + "00000" + Str $(Rnd(2)) + "00000" + Str $(Rnd(2)) + "00"),Puls% - &Loop)
        little chance reinbringen
        PlayHiHat((%1010101010101010),Puls% - &Loop)
        PlaySnareDrum(%0000100000001000,Puls% - &Loop)
        PlayBassDrum(%1000000010100000,Puls% - &Loop)
        Sleep 120 + Rnd(6) - 10
        little Human-Touch

        Select (&Loop Mod 4)

            little Shuffle-Feeling reinbringen

            CaseOf 2

            Sleep 60
            Sleep 120 + Rnd(20) - 10 little Human-Touch
            OtherWise
            Sleep 120 + Rnd(20) - 10

        EndSelect

    Wend

    Locate 5,Puls% + 5
    Print "  "

Wend


Thanks too on Nico Madysa for its umfangreichen code about Play  [...] 

446 kB
Hochgeladen:09/01/08
Downloadcounter311
Download
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/30/08  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.564 Views

Untitledvor 0 min.
H.Brill08/31/24
RudiB.03/08/22
Sven Bader10/14/21
Frank04/16/21
More...

Themeninformationen

this Topic has 1 subscriber:

Jörg Sellmeyer (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie