— Scott McNealy, Sun Microsystems Chairman, President and ceo



Download 40,57 Mb.
Pdf ko'rish
bet324/555
Sana26.05.2022
Hajmi40,57 Mb.
#609235
1   ...   320   321   322   323   324   325   326   327   ...   555
Bog'liq
Head First Java (Kathy Sierra, Bert Bates) (z-lib.org)

change the 
instrument 
and 
note
File Edit Window Help Attenuate
%java MiniMusicCmdLine 102 30
%java MiniMusicCmdLine 80 20
%java MiniMusicCmdLine 40 70 
Run it with two int args from 0 
to 127. Try these for starters:


you are here
4
exception 
handling
347
When we’re done, we’ll have a working 
BeatBox that’s also a Drum Chat Client. 
We’ll need to learn about GUIs (includ-
ing event handling), I/O, networking, and 
threads. The next three chapters (12, 13, 
and 14) will get us there.
Where we’re headed with the rest 
of the CodeKitchens
Andy: groove #2
Chris: groove2 revised
Nigel: dance beat
dance beat
Chapter 15: the goal
beat one
beat two
beat three
beat four ...
This CodeKitchen lets us build a little 
“music video” (bit of a stretch to call it 
that...) that draws random rectangles to 
the beat of the MIDI music. We’ll learn 
how to construct and play a lot of MIDI 
events (instead of just a couple, as we do 
in the current chapter).
Chapter 12: MIDI events
Now we’ll actually build the real BeatBox, 
GUI and all. But it’s limited—as soon as you 
change a pattern, the previous one is lost. 
There’s no Save and Restore feature, and 
it doesn’t communicate with the network. 
(But you can still use it to work on your 
drum pattern skills.)
Chapter 13: Stand-alone 
BeatBox
You’ve made the perfect pattern, and 
now you can save it to a file, and reload it 
when you want to play it again. This gets 
us ready for the final version (chapter 15), 
where instead of writing the pattern to a 
file, we send it over a network to the chat 
server.
Chapter 14: Save and 
Restore



Download 40,57 Mb.

Do'stlaringiz bilan baham:
1   ...   320   321   322   323   324   325   326   327   ...   555




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish